Ask Your Question

error : The request you have made requires authentication

asked 2017-06-20 19:06:19 -0500

hanane gravatar image

Hi, 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 :

docker-machine create -d openstack  --openstack-image-name ubuntu --openstack-domain-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"}}

plz can you help me to Fix it

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-20 20:26:06 -0500

The docker-machine command expects the same authentication options as the various OpenStack CLIs. As for OpenStack CLIs, you can provide the values for those options on the command line or in environment variables.

The error message indicates that your authentication options are either incomplete or incorrect. Perhaps Scott Lowe's blog posts about using docker-machine will help.

edit flag offensive delete link more


thank you for your response , actually for the authentication options i use the exactly same admin-openrpc as mentioned in the documentation [ (] and verify usernane and password from the horizon dashbord

hanane gravatar imagehanane ( 2017-06-21 08:43:20 -0500 )edit

From, it appears that docker-machine uses TENANT instead of PROJECT. Could that be at the root of the problem?

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-21 09:23:31 -0500 )edit

i aded the option OS_TENANT_NAME=default instead of OS_TENANT_PROJECT=default in vaine. i checked nova-compute.log and there is the error bellow

ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 8 seconds.
hanane gravatar imagehanane ( 2017-06-21 14:15:09 -0500 )edit

This can be a temporary situation when starting up, or a permanent problem. It's not clear to me how it affects authentication, but if it's a permanent problem, it needs fixing anyway. Is port 5672 on controller reachable?

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-21 16:54:53 -0500 )edit

By the way, can you successfully run any openstack commands like openstack token issue or openstack network agent list?

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-21 16:56:58 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-06-20 19:06:19 -0500

Seen: 1,229 times

Last updated: Jun 20 '17