Bug 1087576
Summary: | snapshot (create image) from vm fails | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | satya routray <satroutr> |
Component: | openstack-nova | Assignee: | Pádraig Brady <pbrady> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ami Jeain <ajeain> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.0 | CC: | hrivero, jdonohue, ndipanov, satroutr, sgordon, sreichar, vpopovic, yeylon |
Target Milestone: | --- | ||
Target Release: | 6.0 (Juno) | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-08-14 10:24:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1040649, 1104759 |
Description
satya routray
2014-04-14 16:58:52 UTC
Looking at the code and the trace posted here - it seems that the snapshot code in the the libvirt driver fails to recognize that we are running with rbd disks as it should never get to the _live_snapshot method. The code that checks for this is if self.has_min_version(MIN_LIBVIRT_LIVESNAPSHOT_VERSION, MIN_QEMU_LIVESNAPSHOT_VERSION, REQ_HYPERVISOR_LIVESNAPSHOT) \ and not source_format == "lvm" and not source_format == 'rbd': live_snapshot = True # Abort is an idempotent operation, so make sure any block # jobs which may have failed are ended. This operation also # confims the running instance, as opposed to the system as a # whole, has a new enough version of the hypervisor (bug 1193146). try: virt_dom.blockJobAbort(disk_path, 0) except libvirt.libvirtError as ex: error_code = ex.get_error_code() if error_code == libvirt.VIR_ERR_CONFIG_UNSUPPORTED: live_snapshot = False else: pass Several thing could have gone wrong here - either we don't deduce the source format well, or the version of libvirt we ship does not riase libvirt.VIR_ERR_CONFIG_UNSUPPORTED. @satya It wold be good to get the libvirt xml of the instance that causes this, so that we can rule out the source_format issue. In case it's the error that gets raised by blockJobAbort, we can possibly work around it in the Nova code, but we'll need confirmation from someone in the libvirt team that this is not an actual libvirt issue, so adding Dan to the bug. The error occurred when when running community bits. Still waiting for Inktank and them to get together a redploy the Enterprise versions versus the ceph community bits. Steve I notice you have marked this as a blocker for the reference architecture team, is there any chance you could assist us with reproducing so we can nail this down? Satya, can you attach the output of this command to the bug for us: # rpm -qa We need to nail down exactly which versions of some key packages are installed to isolate the issue and determine whether or not this has already been resolved by other activities. Re-assigning to pbrady. From the Nova side, he's taking a look at ceph integration now. We need a response to my query in comment # 11 and an indication that this is still relevant. works fine with inktank ceph Thanks for the update. |