Unable to spin up new instance - HTTP 401

asked 2017-08-28 04:13:39 -0500

gumis gravatar image

I have installed OpenStack with HAProxy/Pacemaker (on the controller) and Galera MariaDB cluster, but I'm unable to spin up any VMs on it. Every time when I try, I get the following error message:

openstack server create --image ca0c65f9-ed4d-4dab-898e-37ee519bd3c9 --flavor 83636eda-d761-4037-bfb2-f64239180015 --nic net-id=e3b63592-76ff-4512-a67b-4f1de5452b60 --security-group default --key-name kp-01 instance-01
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required. (HTTP 401) (Request-ID: req-796ae049-95eb-4c8a-aa15-54d8900a7262)

Also environment variables:

OS_USER_DOMAIN_NAME=Default
OS_IMAGE_API_VERSION=2
OS_PROJECT_NAME=demo
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=demo
OS_AUTH_URL=http://crl.cloud.local:5000/v3
OS_USERNAME=demo
OS_PROJECT_DOMAIN_NAME=Default

Nova-API log is spitting out the following error:

2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack [req-81016aa8-a4e7-495d-aa87-fcf0f73d5c19 15dacba9268046ebbc4d3b90bbb0c066 7892aba61208441db82dc2b37e8
bf69a - default default] Caught error: Not authorized.
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack Traceback (most recent call last):
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 88, in __call__
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     return req.get_response(self.application)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     application, catch_exc_info=False)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     app_iter = application(self.environ, start_response)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     return resp(environ, start_response)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     return self.func(req, *args, **kwargs)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/osprofiler/web.py", line 108, in __call__
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     return request.get_response(self.application)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     application, catch_exc_info=False)
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
2017-08-28 08:39:43.901 3514 ERROR nova.api.openstack     app_iter = application(self.environ ...
(more)
edit retag flag offensive close merge delete