Ask Your Question
0

error : The request you have made requires authentication

asked 2017-06-20 19:06:19 -0600

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
0

answered 2017-06-20 20:26:06 -0600

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

Comments

thank you for your response , actually for the authentication options i use the exactly same admin-openrpc as mentioned in the documentation [https://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-openrc.html#using-the-scripts (https://docs.openstack.org/mitaka/ins...)] and verify usernane and password from the horizon dashbord

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

From https://docs.docker.com/machine/drive..., 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 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-06-20 19:06:19 -0600

Seen: 529 times

Last updated: Jun 20 '17