OpenStack MItaka Problems starting openstack-nova-consoleauth service "oslo_service.service NotAllowed: Connection.open: (530) NOT_ALLOWED - access to vhost '/' refused for user 'openstack'"
The Problem: (Which was a result of mis-configuration)
This issue was faced when starting the Openstack Nova Consoleauth service. The service was not starting on the controller node.
For issues related to Nova see the logs /var/log/nova/* on the controller node also. The controller node in the setup is controller1.example.com
The Main error to look in the file /var/log/nova/nova-consoleauth.log was
2016-07-06 06:40:25.496 28338 ERROR oslo_service.service NotAllowed: Connection.open: (530) NOT_ALLOWED - access to vhost '/' refused for user 'openstack'
==> nova-consoleauth.log <==
2016-07-06 06:41:14.877 28418 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-07-06 06:41:15.173 28418 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-07-06 06:41:15.288 28418 INFO nova.service [-] Starting consoleauth node (version 13.1.0-1.el7)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service [req-205c36a5-c723-4688-a78f-fc46089b5a6a - - - - -] Error starting thread.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service Traceback (most recent call last):
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 680, in run_service
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service service.start()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/service.py", line 231, in start
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self.rpcserver.start()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_messaging/server.py", line 267, in wrapper
.
.
.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service return fun(*args, **kwargs)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 507, in __call__
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self.revive(create_channel())
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 242, in channel
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service chan = self.transport.create_channel(self.connection)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 741, in connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self._connection = self._establish_connection()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 696, in _establish_connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service conn = self.transport.establish_connection()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service conn = self.Connection(**opts)
.
.
.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service NotAllowed: Connection.open: (530) NOT_ALLOWED - access to vhost '/' refused for user 'openstack'
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service
The Fix:
To get around this ensure that the user mentioned (in my case this rabbitmq_user is opestack) has been allowed the permission to all the rabbitmq things
If not run the command
rabbitmqctl set_permissions <rabbitmq_user> ".*" ".*" ".*"
The Problem: (Which was a result of mis-configuration)
This issue was faced when starting the Openstack Nova Consoleauth service. The service was not starting on the controller node.
For issues related to Nova see the logs /var/log/nova/* on the controller node also. The controller node in the setup is controller1.example.com
The Main error to look in the file /var/log/nova/nova-consoleauth.log was
2016-07-06 06:40:25.496 28338 ERROR oslo_service.service NotAllowed: Connection.open: (530) NOT_ALLOWED - access to vhost '/' refused for user 'openstack'
==> nova-consoleauth.log <==
2016-07-06 06:41:14.877 28418 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-07-06 06:41:15.173 28418 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-07-06 06:41:15.288 28418 INFO nova.service [-] Starting consoleauth node (version 13.1.0-1.el7)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service [req-205c36a5-c723-4688-a78f-fc46089b5a6a - - - - -] Error starting thread.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service Traceback (most recent call last):
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 680, in run_service
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service service.start()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/service.py", line 231, in start
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self.rpcserver.start()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_messaging/server.py", line 267, in wrapper
.
.
.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service return fun(*args, **kwargs)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 507, in __call__
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self.revive(create_channel())
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 242, in channel
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service chan = self.transport.create_channel(self.connection)
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 741, in connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service self._connection = self._establish_connection()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 696, in _establish_connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service conn = self.transport.establish_connection()
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service conn = self.Connection(**opts)
.
.
.
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service NotAllowed: Connection.open: (530) NOT_ALLOWED - access to vhost '/' refused for user 'openstack'
2016-07-06 06:41:16.719 28418 ERROR oslo_service.service
The Fix:
To get around this ensure that the user mentioned (in my case this rabbitmq_user is opestack) has been allowed the permission to all the rabbitmq things
If not run the command
rabbitmqctl set_permissions <rabbitmq_user> ".*" ".*" ".*"
No comments:
Post a Comment