Ask Your Question
1

[Juno] Nova auth error

asked 2014-11-14 11:07:00 -0500

AmitA gravatar image

updated 2014-11-17 10:55:41 -0500

Hi all,

So after configuring both my controller and compute node (controller seems to be just fine now) I start the openstack-nova-compute.service on the compute node and I get errors. In the log files on the controller node I see errors:

2014-11-13 18:40:12.629 6540 INFO oslo.messaging._drivers.impl_rabbit [req-f4362edb-7a43-438c-8457-cbc712beba3a ] Connecting to AMQP server on localhost:5672

2014-11-13 18:40:15.639 6540 ERROR oslo.messaging._drivers.impl_rabbit [req-f4362edb-7a43-438c-8457-cbc712beba3a ] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed

And on the compute nova logs:

2014-11-13 18:43:00.225 3347 INFO oslo.messaging._drivers.impl_rabbit [req-df63effc-0731-43c6-a77a-a0290f211bcb ] Connecting to AMQP server on controller:5672

2014-11-13 18:43:00.237 3347 INFO oslo.messaging._drivers.impl_rabbit [req-df63effc-0731-43c6-a77a-a0290f211bcb ] Connected to AMQP server on controller:5672

2014-11-13 18:43:10.249 3347 WARNING nova.conductor.api [req-df63effc-0731-43c6-a77a-a0290f211bcb None] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...

2014-11-13 18:43:20.264 3347 WARNING nova.conductor.api [req-df63effc-0731-43c6-a77a-a0290f211bcb None] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...

Im pretty certain the password and config files are correct (Im using the same password for everything as this is just a test environment) so I have no clue whats going on. I can telnet to port 5672. This is what showing up when do nova service list:

controller nova]# nova service-list

+----+------------------+------------+----------+---------+-------+------------+-----------------+

| Id | Binary           | Host       | Zone     | Status  | State | Updated_at | Disabled Reason |

+----+------------------+------------+----------+---------+-------+------------+-----------------+

| 1  | nova-consoleauth | controller | internal | enabled | down  | -          | -               |

| 2  | nova-conductor   | controller | internal | enabled | down  | -          | -               |

| 3  | nova-cert        | controller | internal | enabled | down  | -          | -               |

| 4  | nova-scheduler   | controller | internal | enabled | down  | -          | -               |

+----+------------------+------------+----------+---------+-------+------------+-----------------+

Anyone have any ideas on what maybe wrong? Im fairly certain the password is correct everywhere (nova.conf, database, etc) as I am using the same password for everything in this test environment. Thanks!

UPDATE:

This is error I am seeing in RabbitMQ logs:

=INFO REPORT==== 17-Nov-2014::11:06:34 ===

accepting AMQP connection <0.20421.10> (127.0.0.1:53830 -> 127.0.0.1:5672)

=INFO REPORT==== 17-Nov-2014::11:06:35 ===

accepting AMQP connection <0.20425.10> (127.0.0.1:53831 -> 127.0.0.1:5672)

=INFO REPORT==== 17-Nov-2014::11:06:36 === accepting AMQP connection <0.20429.10> (127.0.0.1:53832 -> 127.0.0.1:5672)

=ERROR REPORT==== 17-Nov-2014::11:06:37 ===

closing AMQP connection <0.20421.10> (127.0.0.1:53830 -> 127.0.0.1:5672): {handshake_error,starting,0, {amqp_error,access_refused, "AMQPLAIN login refused: user 'guest' - invalid credentials", 'connection.start_ok'}}

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-17 13:46:52 -0500

AmitA gravatar image

updated 2014-11-17 13:47:44 -0500

NEW UPDATE: Ok well this is really weird - I went ahead and changed the password back to 'guest' for rabbitmq and changed the config files and now its working. I then went and tried to change it back to the password I originally used and change the config files and then I get the same errors?! Its working now when I leave password as guest in the config files and change_password command. I have no idea why thats happening as I have searched all over nova.conf on both machines to see if there is place other than rabbit_userid and rabbit_password where I would have to change it and dont see anything....

Dont know if this is answered as correct per se but it is working...

edit flag offensive delete link more

Comments

This worked for me. I changed my password to guest and it worked. Looks like somewhere in the code the password guest is hard-coded?

chappavarapu gravatar imagechappavarapu ( 2016-05-30 19:55:02 -0500 )edit
0

answered 2016-02-01 05:49:45 -0500

pjb gravatar image

updated 2016-02-01 05:53:46 -0500

Hi, I had the same issue in Liberty. My openstack user was removed from the list of users in rabbitmq. Check this by using the following command:

$ rabbitmq list_users

If there is no user named "openstack" then do the following:

$rabbitmqctl add_user openstack rabbit_pwd 
$rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Please note that rabbit_pwd is the rabbit mq password that you have set in the configuration files for Nova and Neutron.

Restart all the services
edit flag offensive delete link more
0

answered 2014-11-14 21:51:44 -0500

rajiv-kumar gravatar image

Looking at the log provided there are different possibilities of getting the this error. Please make sure your rabbitmq-server is running. Because in most guide people install rabbitmq-server on the controller node. From your log i can see that controller node is trying to connect rabbtmq-server on localhost. If it is not password issue then your rabbitmq-server is not running on controller or you have installed it on other node.

By default most rabbitmq-server has "guest" user and "guest" password. May be during installation you gave different password therefore you are getting this error. Make sure password of user on the rabbtimq-server matched with rabbit-password field of coniguration file of controller and compute node. For changing password of guest user on rabbitmq-server you can following command

                         rabbitmqctl change_password guest RABBIT_PASS

If the above explanation does not solve problem please provide log of rabbitmq-server in /var/log/rabbit* directory. These logs can explain better explanation of the problem.

edit flag offensive delete link more

Comments

Hi Rajiv thanks. Rabbit is running and Im pretty sure the password is the same on both controller and compute. I ran the change password command and still not working. The error I am getting in Rabbit logs I have put above in updated section of original question. Thanks!!

AmitA gravatar imageAmitA ( 2014-11-17 10:54:10 -0500 )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

3 followers

Stats

Asked: 2014-11-14 11:07:00 -0500

Seen: 5,334 times

Last updated: Feb 01 '16