← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1461473] Re: Unable to call neutron v2 API from nova: AuthorizationFailure: No valid authentication is available

 

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1461473

Title:
  Unable to call neutron v2 API from nova: AuthorizationFailure: No
  valid authentication is available

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  When I call neutron v2 API from nova driver, it reported
  AuthorizationFailure, I've no idea about how this happen and in
  previous verion, there is no problem:

  Traceback (most recent call last):
    File "/opt/mydriver/compute/manager.py", line 2006, in _fix_instance_nw_info
      data = self.network_api.list_ports(context, **search_opts)
    File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 724, in list_ports
      return get_client(context).list_ports(**search_opts)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
      ret = self.function(instance, *args, **kwargs)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 535, in list_ports
      **_params)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 307, in list
      for r in self._pagination(collection, path, **params):
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 321, in _pagination
      res = self.get(path, params=params)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
      headers=headers, params=params)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
      headers=headers, params=params)
    File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
      content_type=self.content_type())
    File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request
      return self.request(url, method, **kwargs)
    File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request
      resp = super(SessionClient, self).request(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
      return self.session.request(url, method, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
      return func(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 317, in request
      raise exceptions.AuthorizationFailure(msg)
  AuthorizationFailure: No valid authentication is available

  I checked the /etc/nova/nova.conf and /etc/neutron/neutron.conf, it shows:
  nova.conf:
  [keystone_authtoken]
  auth_uri = http://myip:5000/v2.0
  identity_uri = http://myip:35357/
  auth_version = v2.0
  admin_tenant_name = service
  admin_user = nova
  admin_password = W0lCTTp2MV1iY3JhZmducHgtcGJ6Y2hncg==
  signing_dir = /var/cache/nova/api
  hash_algorithms = md5
  insecure = true

  [neutron]
  url = http://myip:9696
  insecure = true
  auth_strategy = keystone
  admin_tenant_name = service
  admin_username = neutron
  admin_password = W0lCTTp2MV1iY3JhZmducHgtYXJnamJleA==
  admin_auth_url = http://myip:5000/v2.0
  timeout = 30
  region_name =
  ovs_bridge = br-int
  extension_sync_interval = 600
  cafile =
  service_metadata_proxy = true
  metadata_proxy_shared_secret = W0lCTTp2MV1hcmhnZWJhX3pyZ25xbmduX2ZycGVyZw==

  neutron.conf:
  [keystone_authtoken]
  auth_uri = http://myip:5000/v2.0
  identity_uri = http://myip:35357/
  auth_version = v2.0
  admin_tenant_name = service
  admin_user = neutron
  admin_password = W0lCTTp2MV1iY3JhZmducHgtYXJnamJleA==
  signing_dir = /var/lib/neutron/keystone-signing
  hash_algorithms = md5
  insecure = false

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1461473/+subscriptions


References