[ubuntu 1.20-49~icehouse]Unable to take snapshot

Bug #1379271 reported by Ganesha HV
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
Critical
saravanan purushothaman
R2.0
Fix Committed
Critical
saravanan purushothaman
Trunk
Fix Committed
Critical
saravanan purushothaman

Bug Description

1]. On a setup running ubuntu 1.20-49~icehouse, attempting to take a snapshot of a running VM throws the following error :
The snapshot immediately goes to 'Deleted' state.

2014-10-09 03:03:58.280 1732 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2014-10-09 03:03:58.511 1732 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 23190
2014-10-09 03:03:58.511 1732 AUDIT nova.compute.resource_tracker [-] Free disk (GB): -2
2014-10-09 03:03:58.512 1732 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 0
2014-10-09 03:03:58.533 1732 INFO nova.compute.resource_tracker [-] Compute_service record updated for nodeg16:nodeg16.englab.juniper.net
2014-10-09 03:04:42.065 1732 AUDIT nova.compute.manager [req-b11fc3b6-2179-474b-ac4f-d641eace1fb2 118f1ea990ab45369d59d732be4365d6 889ed9351e0f4946894061d59deb293e] [instance: 470c7a98-1280-42e4-a148-6c66b76919e7] instance snapshotting
2014-10-09 03:04:42.332 1732 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: snapshot() takes at least 3 arguments (3 given)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher payload)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 277, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher pass
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 263, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 306, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher e, sys.exc_info())
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 293, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 356, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher % image_id, instance=instance)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 346, in decorated_function
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher *args, **kwargs)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2715, in snapshot_instance
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher task_states.IMAGE_SNAPSHOT)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2746, in _snapshot_instance
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher update_task_state)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1549, in snapshot
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher image_type=source_format)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher TypeError: snapshot() takes at least 3 arguments (3 given)
2014-10-09 03:04:42.332 1732 TRACE oslo.messaging.rpc.dispatcher
2014-10-09 03:04:42.335 1732 ERROR oslo.messaging._drivers.common [-] Returning exception snapshot() takes at least 3 arguments (3 given) to caller
2014-10-09 03:04:42.335 1732 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 277, in decorated_function\n pass\n', ' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 263, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 306, in decorated_function\n e, sys.exc_info())\n', ' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 293, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 356, in decorated_function\n % image_id, instance=instance)\n', ' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 346, in decorated_function\n *args, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2715, in snapshot_instance\n task_states.IMAGE_SNAPSHOT)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2746, in _snapshot_instance\n update_task_state)\n', ' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1549, in snapshot\n image_type=source_format)\n', 'TypeError: snapshot() takes at least 3 arguments (3 given)\n']
2014-10-09 03:04:58.560 1732 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources

Ganesha HV (ganeshahv)
tags: added: config openstack
tags: added: blocker
Revision history for this message
saravanan purushothaman (spuru) wrote :

imagebackend snapshot requires "instance" to be passed.

Revision history for this message
Ashish Ranjan (aranjan-n) wrote :
information type: Proprietary → Public
Revision history for this message
saravanan purushothaman (spuru) wrote :

Fixed commited in 2.0 and mainline

commit id: 06eebcad93146e9d823a47e186e1d2f06d4db364

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.