Ask Your Question
0

ERROR (Unauthorized): Unauthorized (HTTP 401)

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

cristhian gravatar image

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

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: http://paste.openstack.org/show/463416/

edit retag flag offensive close merge delete

Comments

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

avi gravatar imageavi ( 2015-09-16 01:25:02 -0500 )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 -0500 )edit

Yes, i'm running the commands with the admin source, and the log of the Keystone: http://paste.openstack.org/show/464964/

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

Do you get 401 errors for other nova commands?

avi gravatar imageavi ( 2015-09-17 01:09:24 -0500 )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 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

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

cristhian gravatar image

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

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

Comments

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 -0500 )edit

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

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

Thanks for the edit

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

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

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 = nova.network.linux_net.<new line="">LinuxOVSInterfaceDriver. After removing the new line, nova service-list successfully started.

edit flag offensive delete link more

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: 2015-09-15 09:31:32 -0500

Seen: 3,116 times

Last updated: Sep 19 '15