After installing OpenStack Newton controller and nova , when I am quering :'openstack compute service list 'it is returning 'state' as down .

asked 2016-11-02 05:02:08 -0500

Sandipan gravatar image

I checked the log file - /var/log/nova-conductor.log , and found ''AMQP server controller:5672 closed the connection.check login credentials.socket closed. It is pointing towards credential issue and pointing towards RabbitMQ message broker , but username and password found to be OK and the issue is somewhere else . I checked the /var/log/rabbitmq/rabbit@controller.log file and found is is giving the error - "amqp_error,access_refused" äccess to vhost 'nova' refused for user "ópenstack'' .

Workaround :

  1. while installing RabbitMQ ( as per the newton html document published) we are not creating any vhost and assuming the name of the vhost is "/" which is the reason fro this error .
  2. create a vhost name nova through rabbitmq : # rabbitmqctl add_vhost nova
  3. Check if it got created #rabbitmqctl list_vhosts
  4. Then , finally provide the permission # rabbitmqctl set_permissions -p nova openstack ".""."".*"

Now check the # openstack compute service list -->> you will find the "State" as 'up'.

Hope it will help to others who got stuck with this problem.

edit retag flag offensive close merge delete