Ask Your Question

ERROR (Unauthorized): Unauthorized (HTTP 401)

asked 2015-09-15 14:18:37 -0600

cristhian gravatar image

updated 2015-09-16 09:40:43 -0600

I'm trying to install Openstack in three machines, like Openstack documentation says, but i received this message when i run this command in controller node:

nova service-list

ERROR (Unauthorized): Unauthorized (HTTP 401) (Request-ID: req-7abe22f6-650e-4ce5-814b-449ef35a9ce9)

After a some commands, i received this message:

ERROR (ConnectionError): HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2/d2bc74a3e2c647e3b7fd5e4afaa0e1e6/os-services (Caused by <class 'socket.error'>: [Errno 111] Connection refused).

That's the nova-api.log:

edit retag flag offensive close merge delete


Just to note that nova service-list is an admin only cli. Did you source admin credentials (source before invoking it?

avi gravatar imageavi ( 2015-09-16 01:25:02 -0600 )edit

If the admin credentials are sourced, and even if you are getting the same error, you should check the keystone logs.

zekken gravatar imagezekken ( 2015-09-16 01:55:38 -0600 )edit

Yes, i'm running the commands with the admin source, and the log of the Keystone:

cristhian gravatar imagecristhian ( 2015-09-16 12:14:04 -0600 )edit

Do you get 401 errors for other nova commands?

avi gravatar imageavi ( 2015-09-17 01:09:24 -0600 )edit

There are some WARNs in keystone logs that says can't find roles, users, etc. Is keystone properly running and configured? Are you able to use that admin user against others projects like Glance?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-17 03:04:57 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-09-18 14:21:45 -0600

cristhian gravatar image

updated 2015-09-19 09:11:44 -0600

I forgot the tags([database],[keystone_authtoken]), in the nova.conf, so, service Nova-api did not start, i think is because it did not find the arguments connection and auth_uri in the right blocks.

I realized that something was wrong when I checked the nova database, it was empty, then I put the tags, and run #su -s / bin / sh -c "new-manage db sync" nova, and he created the necessary tables.

After that, the new-api service started normally.

edit flag offensive delete link more


Could you explain a little more about what resolves your issue? Maybe that helps another people with the same issue. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-18 20:36:55 -0600 )edit

I edited the answer, I tried to be as clear as possible.

cristhian gravatar imagecristhian ( 2015-09-19 09:19:52 -0600 )edit

Thanks for the edit

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-19 13:34:50 -0600 )edit

answered 2015-10-14 19:49:04 -0600

I have the same problem when running "nova service-list" and exactly the same error logs. the root cause was typo errors in /etc/nova/nova.conf, there was a <new line=""> in linuxnet_interface_driver =<new line="">LinuxOVSInterfaceDriver. After removing the new line, nova service-list successfully started.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-09-15 09:31:32 -0600

Seen: 3,537 times

Last updated: Sep 19 '15