Ask Your Question
1

Cannot create live snapshot with error: virDomain instance has no attribute 'blockRebase'

asked 2013-12-07 21:02:34 -0500

danny xin gravatar image

I am running Havava with KVM/Ubuntu 12.04 LTS Server x86_64. Cold snapshot succeeds either from Horizon or nova CLI. But live snapshot from a running server fails with error like below. "virsh snapshot-create" to create a disk snapshot works fine. Anybody helps me out?

2013-12-07 21:37:00.446 4175 AUDIT nova.compute.manager [req-d4a7083c-0151-4f0d-a54a-7ac45f7bf12a d17f4021d84e456499fb6047f666db25 87dcb9bfd1624940a642fdfa3d1d456e] [instance: eff82154-bd75-40a7-bc83-60ba0f5b2ac4] instance snapshotting
2013-12-07 21:37:00.600 4175 INFO nova.virt.libvirt.driver [req-d4a7083c-0151-4f0d-a54a-7ac45f7bf12a d17f4021d84e456499fb6047f666db25 87dcb9bfd1624940a642fdfa3d1d456e] [instance: eff82154-bd75-40a7-bc83-60ba0f5b2ac4] Beginning live snapshot process
2013-12-07 21:41:07.512 4175 AUDIT nova.compute.resource_tracker [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Auditing locally available compute resources
2013-12-07 21:41:07.515 4175 WARNING nova.openstack.common.loopingcall [-] task run outlasted interval by 40.387403 sec
2013-12-07 21:48:13.065 4175 WARNING nova.openstack.common.loopingcall [-] task run outlasted interval by 415.54833 sec
2013-12-07 21:48:56.754 4175 INFO nova.virt.libvirt.driver [req-d4a7083c-0151-4f0d-a54a-7ac45f7bf12a d17f4021d84e456499fb6047f666db25 87dcb9bfd1624940a642fdfa3d1d456e] [instance: eff82154-bd75-40a7-bc83-60ba0f5b2ac4] Snapshot extracted, beginning image upload
2013-12-07 21:48:56.761 4175 WARNING nova.openstack.common.loopingcall [-] task run outlasted interval by 33.693528 sec
2013-12-07 21:48:57.104 4175 INFO nova.openstack.common.rpc.common [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Connected to AMQP server on 192.168.122.1:5672
2013-12-07 21:48:57.240 4175 AUDIT nova.compute.resource_tracker [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Free ram (MB): 1378
2013-12-07 21:48:57.240 4175 AUDIT nova.compute.resource_tracker [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Free disk (GB): 5
2013-12-07 21:48:57.241 4175 AUDIT nova.compute.resource_tracker [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Free VCPUS: 3
2013-12-07 21:48:57.316 4175 INFO nova.compute.resource_tracker [req-4fc72a67-bd0d-4cbe-8112-e717d97bcd95 None None] Compute_service record updated for mngn-support:mngn-support
2013-12-07 21:48:57.418 4175 ERROR nova.openstack.common.rpc.amqp [req-d4a7083c-0151-4f0d-a54a-7ac45f7bf12a d17f4021d84e456499fb6047f666db25 87dcb9bfd1624940a642fdfa3d1d456e] Exception during message handling
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp     **args)
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 353, in decorated_function
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 90, in wrapped
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp     payload)
2013-12-07 21:48:57.418 4175 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-08 12:06:12 -0500

sgordon gravatar image

updated 2013-12-08 12:07:51 -0500

Ubuntu 12.04 LTS currently ships Libvirt 0.9.8 [1], it appears that the blockRebase attribute it is looking for was enabled in a later release, at least libvirt 0.9.10 [2]. Consider upgrading to a newer Ubuntu release or obtaining a newer version of libvirt from the Cloud Archive.

Note that virsh snapshot-create is likely exercising a different variant of the snapshotting logic in libvirt to that being called by OpenStack Nova (my guess is Nova is effectively calling the newer snapshot-create-as which virsh on your system will likely not even show as an option).

edit flag offensive delete link more

Comments

Gordon, thanks for your feedback.
I ever googled out that nova live snapshot can only work properly with Qemu1.3/Libvirt1.0 or newer. So these packages had been upgraded to newer level, see below.

ii  qemu-common                            1.5.0+dfsg-3ubuntu5~cloud0
ii  qemu-keymaps                           1.5.0+dfsg-3ubuntu5~cloud0
ii  qemu-kvm                               1.5.0+dfsg-3ubuntu5~cloud0
ii  qemu-system-common                     1.5.0+dfsg-3ubuntu5~cloud0
ii  qemu-system-x86                        1.5.0+dfsg-3ubuntu5~cloud0
ii  qemu-utils                             1.5.0+dfsg-3ubuntu5~cloud0
ii  libvirt-bin                            1.1.1-0ubuntu8~cloud2
ii  libvirt0                               1.1.1-0ubuntu8~cloud2

Only python-libvirt shows 0.9.8. Not sure whether there is newer one, will find out.
ii  python-libvirt                         0.9.8-2ubuntu17.10

danny xin gravatar imagedanny xin ( 2013-12-08 19:12:05 -0500 )edit

Good news! After I upgraded python-libvirt to 1.1.1, the problem resolved! Really appreciate your help, gordon

danny xin gravatar imagedanny xin ( 2013-12-09 01:10:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-07 21:02:34 -0500

Seen: 982 times

Last updated: Dec 08 '13