[Openstack-operators] Grizzly and 'nova interface-attach'

Robert Plestenjak robert.plestenjak at xlab.si
Tue May 6 15:04:38 UTC 2014


Hello,

I need to add additional net interface on one of our virtual machines but I have no luck figuring this one out.

nova interface-attach <server ID> --net-id <network ID>

- I get:
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-735092eb-f41b-4acf-9d1b-77ac8909eac7)

- From nova compute.log:
2014-05-06 14:44:39.613 ERROR nova.openstack.common.rpc.amqp [req-735092eb-f41b-4acf-9d1b-77ac8909eac7 openstack-ad
min 559000a8bd79472a855b29675dc7c1bf] Exception during message handling
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/open
stack/common/rpc/amqp.py", line 430, in _process_data
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, meth
od, **args)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/open
stack/common/rpc/dispatcher.py", line 133, in dispatch
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwarg
s)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/comp
ute/manager.py", line 3051, in attach_interface
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     image_meta = _get_image_meta(context, instance
['image_ref'])
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/comp
ute/manager.py", line 268, in _get_image_meta
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     return image_service.show(context, image_id)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/imag
e/glance.py", line 239, in show
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     _reraise_translated_image_exception(image_id)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/imag
e/glance.py", line 237, in show
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     image = self._client.call(context, 1, 'get', i
mage_id)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 182, in call
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     return getattr(client.images, method)(*args, **kwargs)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 104, in get
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     % urllib.quote(image_id))
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 245, in raw_request
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     return self._http_request(url, method, **kwargs)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 206, in _http_request
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp     raise exc.from_response(resp, body_str)
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp ImageNotAuthorized: Not authorized for image ed745e24-8aa9-471e-968d-3eb2ea870939.
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp 
2014-05-06 14:44:39.615 ERROR nova.openstack.common.rpc.common [req-735092eb-f41b-4acf-9d1b-77ac8909eac7 openstack-admin 559000a8bd79472a855b29675dc7c1bf] Returning exception Not authorized for image ed745e24-8aa9-471e-968d-3eb2ea870939. to caller
2014-05-06 14:44:39.615 ERROR nova.openstack.common.rpc.common [req-735092eb-f41b-4acf-9d1b-77ac8909eac7 openstack-admin 559000a8bd79472a855b29675dc7c1bf] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n    return getattr(proxyobj, method)(ctxt, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3051, in attach_interface\n    image_meta = _get_image_meta(context, instance[\'image_ref\'])\n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 268, in _get_image_meta\n    return image_service.show(context, image_id)\n', '  File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 239, in show\n    _reraise_translated_image_exception(image_id)\n', '  File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 237, in show\n    image = self._client.call(context, 1, \'get\', image_id)\n', '  File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 182, in call\n    return getattr(client.images, method)(*args, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 104, in get\n    % urllib.quote(image_id))\n', '  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 245, in raw_request\n    return self._http_request(url, method, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 206, in _http_request\n    raise exc.from_response(resp, body_str)\n', 'ImageNotAuthorized: Not authorized for image ed745e24-8aa9-471e-968d-3eb2ea870939.\n']


In nova.conf I have:

[conductor]
use_local = true


If I omit this, then I get another error:

2014-05-06 13:19:33.656 ERROR nova.compute [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 559000a8bd7947
2a855b29675dc7c1bf] No db access allowed in nova-compute:   File "/usr/lib/python2.6/site-packages/eventlet/greenpo
ol.py", line 80, in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3073, in detach_interface
    self.conductor_api)
  File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 59, in wrapper
    nw_info=res, conductor_api=kwargs.get('conductor_api'))
  File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 83, in update_instance_cache_with_nw_info
    cache)
  File "/usr/lib/python2.6/site-packages/nova/db/api.py", line 736, in instance_info_cache_update
    return IMPL.instance_info_cache_update(context, instance_uuid, values)
  File "/usr/bin/nova-compute", line 66, in __call__
    stacktrace = "".join(traceback.format_stack())

2014-05-06 13:19:33.656 ERROR nova.network.api [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 559000a8bd
79472a855b29675dc7c1bf] [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] Failed storing info cache
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] Traceback (mos
t recent call last):
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]   File "/usr/l
ib/python2.6/site-packages/nova/network/api.py", line 83, in update_instance_cache_with_nw_info
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]     cache)
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]   File "/usr/l
ib/python2.6/site-packages/nova/db/api.py", line 736, in instance_info_cache_update
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]     return IMP
L.instance_info_cache_update(context, instance_uuid, values)
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]   File "/usr/b
in/nova-compute", line 68, in __call__
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]     raise exce
ption.DBNotAllowed('nova-compute')
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] DBNotAllowed: 
nova-compute
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] 
2014-05-06 13:19:34.384 ERROR nova.virt.libvirt.driver [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 55
9000a8bd79472a855b29675dc7c1bf] [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] detaching network adapter failed.
2014-05-06 13:19:34.385 ERROR nova.openstack.common.rpc.amqp [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-ad
min 559000a8bd79472a855b29675dc7c1bf] Exception during message handling
2014-05-06 13:19:34.385 5524 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2014-05-06 13:19:34.385 5524 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/ope
nstack/common/rpc/amqp.py", line 430, in _process_data
....


I have all this set up on Centos 6.5 from RDO Grizzly repo. We're using our cluster for more than 7 months now and this is the only know thing that doesn't work.

- Robert



More information about the OpenStack-operators mailing list