Public bug reported: $ nova list +--------------------------------------+------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------------+ | 543d9625-2523-4a7f-af47-50c8e6b44981 | vm1 | ACTIVE | - | Running | private=10.0.0.23 | +--------------------------------------+------+--------+------------+-------------+-------------------+
$ nova shelve vm1 $ nova shelve-offload vm1 $ nova list +--------------------------------------+------+-------------------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+-------------------+------------+-------------+-------------------+ | 543d9625-2523-4a7f-af47-50c8e6b44981 | vm1 | SHELVED_OFFLOADED | - | Shutdown | private=10.0.0.23 | +--------------------------------------+------+-------------------+------------+-------------+-------------------+ $ nova interface-detach vm1 bbabdfa5-7c47-4a67-b8ff-f36249fae8f1 ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-ec251c02-4adb-4c60-8e67-a998a1700ec4) Got exception from nova-api: 2014-03-29 12:06:07.377 ERROR nova.api.openstack [req-ec251c02-4adb-4c60-8e67-a998a1700ec4 admin admin] Caught error: Unable to find host for Instance 543d9625-2523-4a7f-af47-50c8e6b44981 2014-03-29 12:06:07.377 TRACE nova.api.openstack Traceback (most recent call last): 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/__init__.py", line 125, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return req.get_response(self.application) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send 2014-03-29 12:06:07.377 TRACE nova.api.openstack application, catch_exc_info=False) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application 2014-03-29 12:06:07.377 TRACE nova.api.openstack app_iter = application(self.environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 582, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return self.app(env, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack response = self.app(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func 2014-03-29 12:06:07.377 TRACE nova.api.openstack return self.func(req, *args, **kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 917, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack content_type, body, accept) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack 2014-03-29 12:06:07.377 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch 2014-03-29 12:06:07.377 TRACE nova.api.openstack return method(req=request, **action_args) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/compute/contrib/attach_interfaces.py", line 146, in delete 2014-03-29 12:06:07.377 TRACE nova.api.openstack instance, port_id=port_id) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/api.py", line 201, in wrapped 2014-03-29 12:06:07.377 TRACE nova.api.openstack return func(self, context, target, *args, **kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/api.py", line 2870, in detach_interface 2014-03-29 12:06:07.377 TRACE nova.api.openstack port_id=port_id) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/rpcapi.py", line 399, in detach_interface 2014-03-29 12:06:07.377 TRACE nova.api.openstack cctxt = self.client.prepare(server=_compute_host(None, instance), 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/rpcapi.py", line 61, in _compute_host 2014-03-29 12:06:07.377 TRACE nova.api.openstack 'Instance %s') % instance['uuid']) 2014-03-29 12:06:07.377 TRACE nova.api.openstack NovaException: Unable to find host for Instance 543d9625-2523-4a7f-af47-50c8e6b44981 2014-03-29 12:06:07.377 TRACE nova.api.openstack ** Affects: nova Importance: Undecided Assignee: Alex Xu (xuhj) Status: New ** Changed in: nova Assignee: (unassigned) => Alex Xu (xuhj) -- 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/1299333 Title: Unable attach/detach interface for shelve offloaded instance Status in OpenStack Compute (Nova): New Bug description: $ nova list +--------------------------------------+------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------------+ | 543d9625-2523-4a7f-af47-50c8e6b44981 | vm1 | ACTIVE | - | Running | private=10.0.0.23 | +--------------------------------------+------+--------+------------+-------------+-------------------+ $ nova shelve vm1 $ nova shelve-offload vm1 $ nova list +--------------------------------------+------+-------------------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+-------------------+------------+-------------+-------------------+ | 543d9625-2523-4a7f-af47-50c8e6b44981 | vm1 | SHELVED_OFFLOADED | - | Shutdown | private=10.0.0.23 | +--------------------------------------+------+-------------------+------------+-------------+-------------------+ $ nova interface-detach vm1 bbabdfa5-7c47-4a67-b8ff-f36249fae8f1 ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-ec251c02-4adb-4c60-8e67-a998a1700ec4) Got exception from nova-api: 2014-03-29 12:06:07.377 ERROR nova.api.openstack [req-ec251c02-4adb-4c60-8e67-a998a1700ec4 admin admin] Caught error: Unable to find host for Instance 543d9625-2523-4a7f-af47-50c8e6b44981 2014-03-29 12:06:07.377 TRACE nova.api.openstack Traceback (most recent call last): 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/__init__.py", line 125, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return req.get_response(self.application) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send 2014-03-29 12:06:07.377 TRACE nova.api.openstack application, catch_exc_info=False) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application 2014-03-29 12:06:07.377 TRACE nova.api.openstack app_iter = application(self.environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 582, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return self.app(env, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack response = self.app(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack return resp(environ, start_response) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func 2014-03-29 12:06:07.377 TRACE nova.api.openstack return self.func(req, *args, **kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 917, in __call__ 2014-03-29 12:06:07.377 TRACE nova.api.openstack content_type, body, accept) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack 2014-03-29 12:06:07.377 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch 2014-03-29 12:06:07.377 TRACE nova.api.openstack return method(req=request, **action_args) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/compute/contrib/attach_interfaces.py", line 146, in delete 2014-03-29 12:06:07.377 TRACE nova.api.openstack instance, port_id=port_id) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/api.py", line 201, in wrapped 2014-03-29 12:06:07.377 TRACE nova.api.openstack return func(self, context, target, *args, **kwargs) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/api.py", line 2870, in detach_interface 2014-03-29 12:06:07.377 TRACE nova.api.openstack port_id=port_id) 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/rpcapi.py", line 399, in detach_interface 2014-03-29 12:06:07.377 TRACE nova.api.openstack cctxt = self.client.prepare(server=_compute_host(None, instance), 2014-03-29 12:06:07.377 TRACE nova.api.openstack File "/opt/stack/nova/nova/compute/rpcapi.py", line 61, in _compute_host 2014-03-29 12:06:07.377 TRACE nova.api.openstack 'Instance %s') % instance['uuid']) 2014-03-29 12:06:07.377 TRACE nova.api.openstack NovaException: Unable to find host for Instance 543d9625-2523-4a7f-af47-50c8e6b44981 2014-03-29 12:06:07.377 TRACE nova.api.openstack To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1299333/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp