Can't create instance, The request you have made requires authentication. (HTTP 401) [solved]

asked 2018-04-26 06:19:06 -0500

pkt gravatar image

updated 2018-05-03 04:49:09 -0500

I installed openstack via packstack in Centos VM.

When I was trying to launch an instance from dashboard, , I received the error message:

Message: Instance construction b177472c-00ac-4fad-8e2a-356f9f283dfe aborted: The request you have made requires authentication. (HTTP 401)
Code: 500
Details: File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1840, in _do_build_and_run_instance filter_properties, request_spec) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2062, in _build_and_run_instance bdms=block_device_mapping) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2014, in _build_and_run_instance block_device_mapping) as resources: File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2221, in _build_resources reason=e.format_message())

edit: The mistake was that I had to open port 5672, but now it's been Block Device Mapping for 24 hours

edit2: Check port 5672 is open

sudo netstat -plnt | grep 5672

If the error "The error message AMQP server on controller:5672 Socket closed. Trying again in x seconds" continue.

sudo rabbitmqctl change_password guest new_password

Change the RabbitMQ password in /etc/nova/nova.conf and restart all services.

edit retag flag offensive close merge delete

Comments

It looks like authentication is misconfigured in nova.conf on the compute node. See https://docs.openstack.org/nova/lates....

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-29 17:07:52 -0500 )edit

The mistake was that I had to open port 5672, but now it's been Block Device Mapping for 24 hours

pkt gravatar imagepkt ( 2018-05-01 05:13:24 -0500 )edit

There should be information in the Nova compute log and Cinder api log. You may also have log files for the Cinder backend you are using.

Bernd Bausch gravatar imageBernd Bausch ( 2018-05-01 06:11:18 -0500 )edit