Machine: get 401 error when running docker-machine with openstack driver

Created on 24 Jun 2017  路  3Comments  路  Source: docker/machine

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"}}

Most helpful comment

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.

All 3 comments

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

Running against Keystone v3.

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.

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 1507ebcb

Was this page helpful?
0 / 5 - 0 ratings

Related issues

perj picture perj  路  5Comments

BretFisher picture BretFisher  路  5Comments

fsoppelsa picture fsoppelsa  路  5Comments

m-amr picture m-amr  路  5Comments

jimfleming picture jimfleming  路  5Comments