Public bug reported:

Nova throws an HTTP 500 when trying to create an assisted volume
snapshot for Cinder NFS if the instance is shelved.  (Has no "host"
field, presumably.)

To reproduce:

1.  Pull https://review.openstack.org/#/c/147186/48 for Cinder NFS snapshot 
support.
2.  Create instance.
3.  Attach NFS volume to instance.
4.  Shelve instance.
5.  Cinder snapshot-create on the volume.


2017-01-18 16:43:38.002 DEBUG nova.api.openstack.wsgi 
[req-e441340d-8147-4a03-b401-198ecb0e760d nova service] Action: 'create', 
calling method: <bound method AssistedVolumeSnapshotsController.create of 
<nova.api.openstack.compute.assisted_volume_snapshots.AssistedVolumeSnapshotsController
 object at 0x7f0474b1f9d0>>, body: {"snapshot": {"create_info": {"snapshot_id": 
"6e9292a6-ddaf-42f5-9cc7-374f9470e406", "type": "qcow2", "new_file": 
"volume-924ae600-6bfc-47f9-ae48-87eb34fe3c21.6e9292a6-ddaf-42f5-9cc7-374f9470e406"},
 "volume_id": "924ae600-6bfc-47f9-ae48-87eb34fe3c21"}} from (pid=13329) 
_process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:623
2017-01-18 16:43:38.080 ERROR nova.api.openstack.extensions 
[req-e441340d-8147-4a03-b401-198ecb0e760d nova service] Unexpected exception in 
API method
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions Traceback (most 
recent call last):
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/openstack/extensions.py", line 338, in wrapped
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     return f(*args, 
**kwargs)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     return 
func(*args, **kwargs)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/openstack/compute/assisted_volume_snapshots.py", line 
55, in create
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     create_info)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/api.py", line 3935, in volume_snapshot_create
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     volume_id, 
create_info)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/rpcapi.py", line 1044, in volume_snapshot_create
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     
server=_compute_host(None, instance), version=version)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/rpcapi.py", line 53, in _compute_host
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     'Instance %s') 
% instance.uuid)
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions NovaException: 
Unable to find host for Instance 875480c0-8f5e-44e9-9778-b39d6256cfb9
2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1657585

Title:
  HTTP 500 for assisted volume snapshot on shelved instance

Status in OpenStack Compute (nova):
  New

Bug description:
  Nova throws an HTTP 500 when trying to create an assisted volume
  snapshot for Cinder NFS if the instance is shelved.  (Has no "host"
  field, presumably.)

  To reproduce:

  1.  Pull https://review.openstack.org/#/c/147186/48 for Cinder NFS snapshot 
support.
  2.  Create instance.
  3.  Attach NFS volume to instance.
  4.  Shelve instance.
  5.  Cinder snapshot-create on the volume.

  
  2017-01-18 16:43:38.002 DEBUG nova.api.openstack.wsgi 
[req-e441340d-8147-4a03-b401-198ecb0e760d nova service] Action: 'create', 
calling method: <bound method AssistedVolumeSnapshotsController.create of 
<nova.api.openstack.compute.assisted_volume_snapshots.AssistedVolumeSnapshotsController
 object at 0x7f0474b1f9d0>>, body: {"snapshot": {"create_info": {"snapshot_id": 
"6e9292a6-ddaf-42f5-9cc7-374f9470e406", "type": "qcow2", "new_file": 
"volume-924ae600-6bfc-47f9-ae48-87eb34fe3c21.6e9292a6-ddaf-42f5-9cc7-374f9470e406"},
 "volume_id": "924ae600-6bfc-47f9-ae48-87eb34fe3c21"}} from (pid=13329) 
_process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:623
  2017-01-18 16:43:38.080 ERROR nova.api.openstack.extensions 
[req-e441340d-8147-4a03-b401-198ecb0e760d nova service] Unexpected exception in 
API method
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions Traceback (most 
recent call last):
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/openstack/extensions.py", line 338, in wrapped
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     return 
f(*args, **kwargs)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/api/openstack/compute/assisted_volume_snapshots.py", line 
55, in create
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     create_info)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/api.py", line 3935, in volume_snapshot_create
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     volume_id, 
create_info)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/rpcapi.py", line 1044, in volume_snapshot_create
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     
server=_compute_host(None, instance), version=version)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions   File 
"/opt/stack/nova/nova/compute/rpcapi.py", line 53, in _compute_host
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions     'Instance 
%s') % instance.uuid)
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions NovaException: 
Unable to find host for Instance 875480c0-8f5e-44e9-9778-b39d6256cfb9
  2017-01-18 16:43:38.080 TRACE nova.api.openstack.extensions

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1657585/+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

Reply via email to