Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

get 401 error when running docker-machine with openstack driver #4153

Open
hananeglit opened this issue Jun 24, 2017 · 3 comments
Open

get 401 error when running docker-machine with openstack driver #4153

hananeglit opened this issue Jun 24, 2017 · 3 comments

Comments

@hananeglit
Copy link

i want to use docker-machine command in the openstack environement, the docker-machine --version give me docker-machine version 0.10.0, build 76ed2a6 , so i run this command :
sudo docker-machine --debug create -d openstack --openstack-ssh-user ubuntu --openstack-auth-url http://controller:35357/v3 --openstack-image-name ubuntu --openstack-flavor-name m1.small --openstack-domain-name default --openstack-floatingip-pool public --openstack-net-name provider --openstack-username admin --openstack-password **** --openstack-tenant-name default master1

it give me this errors : Error creating machine: Error in driver during machine creation: Expected HTTP response code [201 202] when accessing [POST http://controller:35357/v3/auth/tokens], but got 401 instead {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

@at88mph
Copy link

at88mph commented Aug 23, 2017

+1
docker-machine 0.12.2
Docker 17.06.1-ce
macOS Sierra 10.12.6

Running against Keystone v3.

@at88mph
Copy link

at88mph commented Aug 23, 2017

For anyone else trying to get this working, if you set the --openstack-tenant-id rather than the --openstack-tenant-name it works. This is how I got it working.

@SchuhMichael
Copy link

SchuhMichael commented Aug 1, 2019

I hit this bug, when configuring a node-template in rancher2 for OpenStack Cloud provider. When adding tenant-name, docker-machine falls back to keystone api v2.0, which does not work. When using tenant id, node template is ok and clusters are built.
To be precise:
in container from docker image rancher/rancher:stable 01aed40c0352
we have docker-machine version 0.15.0, build 1507ebc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants