Ask Your Question
1

ERROR The request you made requires authentication while launching vm instance

asked 2014-09-23 20:02:13 -0500

nakul gravatar image

updated 2014-09-23 20:51:10 -0500

I am seeing the following error while launching a VM ( i have a separate controller,Network and compute node). Please help

{"message": "{\"error\": {\"message\": \"The request you have made requires authentication.\", \"code\": 401, \"title\": \"Unauthorized\"}}", "code": 500, "details": "  File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 258, in decorated_function |
|                                      |     return function(self, context, *args, **kwargs)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1630, in run_instance                   |
|                                      |     do_run_instance()                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py\", line 246, in inner                   |
|                                      |     return f(*args, **kwargs)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1629, in do_run_instance                   |
|                                      |     legacy_bdm_in_spec)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 968, in _run_instance                   |
|                                      |     notify(\"error\", msg=unicode(e))  # notify that build failed                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 952, in _run_instance                   |
|                                      |     instance, image_meta, legacy_bdm_in_spec)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1091, in _build_instance                   |
|                                      |     filter_properties, bdms, legacy_bdm_in_spec)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1135, in _reschedule_or_error                   |
|                                      |     self._log_original_error(exc_info, instance_uuid)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1130, in _reschedule_or_error                   |
|                                      |     bdms, requested_networks)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1656, in _shutdown_instance                   |
|                                      |     network_info = self._get_instance_nw_info(context, instance)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 882, in _get_instance_nw_info                   |
|                                      |     instance)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/network/api.py\", line 50, in wrapper                   |
|                                      |     res = f(self, context, *args, **kwargs)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 460, in get_instance_nw_info                  |
|                                      |     result = self._get_instance_nw_info(context, instance, networks)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 467, in _get_instance_nw_info                  |
|                                      |     nw_info = self._build_network_info_model(context, instance, networks)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 993, in _build_network_info_model                  |
|                                      |     data = client.list_ports(**search_opts)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 111, in with_params                   |
|                                      |     ret = self.function(instance, *args, **kwargs)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 306, in list_ports                   |
|                                      |     **_params)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1250, in list                   |
|                                      |     for r in self._pagination(collection, path, **params):                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1263, in _pagination                   |
|                                      |     res = self.get(path, params=params)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get                   |
|                                      |     headers=headers, params=params)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1221, in retry_request                   |
|                                      |     headers=headers, params=params)                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1150, in do_request                   |
|                                      |     self.httpclient.authenticate_and_fetch_endpoint_url()                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/client.py\", line 179, in authenticate_and_fetch_endpoint_url                  |
|                                      |     self.authenticate()                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/client.py\", line 239, in authenticate                   |
|                                      |     content_type=\"application/json\")                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/client.py\", line 163, in _cs_request                   |
|                                      |     raise exceptions.Unauthorized(message=body)                   |
|                                      | ", "created": "2014-09-24T00:57:47Z"}                   |
| flavor                               | m1.medium (3 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-09-23 21:59:45 -0500

neut gravatar image
  • With which tenant are you launching the instance ? via dashboard or CLI?
  • Have you sourced the relevant tenant file containing the environment variables?
  • Whats the output of the following run on your controller node? > env | grep OS_
edit flag offensive delete link more

Comments

I am trying to launch a vm via admin tenant. I get the same error via cli or dashboard. Here is the output : env | grep OS_ OS_PASSWORD=tigris OS_AUTH_URL=http://controller:35357/v2.0 OS_USERNAME=admin OS_TENANT_NAME=admin

nakul gravatar imagenakul ( 2014-09-24 12:59:39 -0500 )edit
0

answered 2015-02-04 03:37:07 -0500

msuchy gravatar image

For the record: I had the same error. In my case it was because controller was routable from compute node only via internal IP and not using public IP. And despite having

auth_uri = http://172.24.0.9:5000

in /etc/nova/nova.conf, the keystone respond back with defined endpoints which had public IP (see keystone endpoint-list). Therefore compute node was unable to authenticate.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2014-09-23 20:02:13 -0500

Seen: 4,046 times

Last updated: Feb 04 '15