<div dir="ltr">I have run into this as well Robert. Don't really want to set conductor to local if I can avoid it.<div><br></div><div>Have you had any luck figuring it out?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, May 6, 2014 at 12:04 PM, Robert Plestenjak <span dir="ltr"><<a href="mailto:robert.plestenjak@xlab.si" target="_blank">robert.plestenjak@xlab.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I need to add additional net interface on one of our virtual machines but I have no luck figuring this one out.<br>
<br>
nova interface-attach <server ID> --net-id <network ID><br>
<br>
- I get:<br>
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-735092eb-f41b-4acf-9d1b-77ac8909eac7)<br>
<br>
- From nova compute.log:<br>
2014-05-06 14:44:39.613 ERROR nova.openstack.common.rpc.amqp [req-735092eb-f41b-4acf-9d1b-77ac8909eac7 openstack-ad<br>
min 559000a8bd79472a855b29675dc7c1bf] Exception during message handling<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/open<br>
stack/common/rpc/amqp.py", line 430, in _process_data<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, meth<br>
od, **args)<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/open<br>
stack/common/rpc/dispatcher.py", line 133, in dispatch<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwarg<br>
s)<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/comp<br>
ute/manager.py", line 3051, in attach_interface<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp image_meta = _get_image_meta(context, instance<br>
['image_ref'])<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/comp<br>
ute/manager.py", line 268, in _get_image_meta<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp return image_service.show(context, image_id)<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/imag<br>
e/glance.py", line 239, in show<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp _reraise_translated_image_exception(image_id)<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/imag<br>
e/glance.py", line 237, in show<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp image = self._client.call(context, 1, 'get', i<br>
mage_id)<br>
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<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp return getattr(client.images, method)(*args, **kwargs)<br>
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<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp % urllib.quote(image_id))<br>
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<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp return self._http_request(url, method, **kwargs)<br>
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<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp raise exc.from_response(resp, body_str)<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp ImageNotAuthorized: Not authorized for image ed745e24-8aa9-471e-968d-3eb2ea870939.<br>
2014-05-06 14:44:39.613 901 TRACE nova.openstack.common.rpc.amqp<br>
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<br>
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']<br>
<br>
<br>
In nova.conf I have:<br>
<br>
[conductor]<br>
use_local = true<br>
<br>
<br>
If I omit this, then I get another error:<br>
<br>
2014-05-06 13:19:33.656 ERROR nova.compute [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 559000a8bd7947<br>
2a855b29675dc7c1bf] No db access allowed in nova-compute: File "/usr/lib/python2.6/site-packages/eventlet/greenpo<br>
ol.py", line 80, in _spawn_n_impl<br>
func(*args, **kwargs)<br>
File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data<br>
rval = self.proxy.dispatch(ctxt, version, method, **args)<br>
File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch<br>
return getattr(proxyobj, method)(ctxt, **kwargs)<br>
File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3073, in detach_interface<br>
self.conductor_api)<br>
File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 59, in wrapper<br>
nw_info=res, conductor_api=kwargs.get('conductor_api'))<br>
File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 83, in update_instance_cache_with_nw_info<br>
cache)<br>
File "/usr/lib/python2.6/site-packages/nova/db/api.py", line 736, in instance_info_cache_update<br>
return IMPL.instance_info_cache_update(context, instance_uuid, values)<br>
File "/usr/bin/nova-compute", line 66, in __call__<br>
stacktrace = "".join(traceback.format_stack())<br>
<br>
2014-05-06 13:19:33.656 ERROR nova.network.api [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 559000a8bd<br>
79472a855b29675dc7c1bf] [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] Failed storing info cache<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] Traceback (mos<br>
t recent call last):<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] File "/usr/l<br>
ib/python2.6/site-packages/nova/network/api.py", line 83, in update_instance_cache_with_nw_info<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] cache)<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] File "/usr/l<br>
ib/python2.6/site-packages/nova/db/api.py", line 736, in instance_info_cache_update<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] return IMP<br>
L.instance_info_cache_update(context, instance_uuid, values)<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] File "/usr/b<br>
in/nova-compute", line 68, in __call__<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] raise exce<br>
ption.DBNotAllowed('nova-compute')<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] DBNotAllowed:<br>
nova-compute<br>
2014-05-06 13:19:33.656 5524 TRACE nova.network.api [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797]<br>
2014-05-06 13:19:34.384 ERROR nova.virt.libvirt.driver [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-admin 55<br>
9000a8bd79472a855b29675dc7c1bf] [instance: fefc3c60-d495-4c6a-90df-db5b59c1a797] detaching network adapter failed.<br>
2014-05-06 13:19:34.385 ERROR nova.openstack.common.rpc.amqp [req-557b938c-a976-441c-a7aa-298b7eee49e2 openstack-ad<br>
min 559000a8bd79472a855b29675dc7c1bf] Exception during message handling<br>
2014-05-06 13:19:34.385 5524 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):<br>
2014-05-06 13:19:34.385 5524 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/ope<br>
nstack/common/rpc/amqp.py", line 430, in _process_data<br>
....<br>
<br>
<br>
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.<br>
<br>
- Robert<br>
<br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</blockquote></div><br></div>