Bug 716833 - Snapshot creation fails because image is not a leaf
Summary: Snapshot creation fails because image is not a leaf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: beta
: ---
Assignee: Igor Lvovsky
QA Contact: Rami Vaknin
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-27 08:35 UTC by Rami Vaknin
Modified: 2014-01-12 23:53 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:25:09 UTC
Target Upstream Version:


Attachments (Terms of Use)
VDSM Logs (2.58 MB, application/x-gzip)
2011-06-27 08:35 UTC, Rami Vaknin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

Description Rami Vaknin 2011-06-27 08:35:12 UTC
Created attachment 510040 [details]
VDSM Logs

Environment:
RHEVM 3.0 on dev env, backend on RHEL6, last commit 47b2a33cbd4fa2baacace7eab126bac850a793d6, vdsm-4.9-75.el6.x86_64, libvirt-0.9.1-1.el6.x86_64

Scenario:
1. Create VM with two disks on iSCSI storage domain
2. Create template from that VM, create pool from that template
3. Add another disk to the VM that was created from the pool
4. Create snapshots to that VM, the third snapshot probably will fail

From VDSM log:

Traceback (most recent call last):
  File "/usr/share/vdsm/storage/resourceManager.py", line 498, in registerResource
    obj = namespaceObj.factory.createResource(name, lockType)
  File "/usr/share/vdsm/storage/resourceFactories.py", line 161, in createResource
    volResourcesList = self.__getResourceCandidatesList(resourceName, lockType)
  File "/usr/share/vdsm/storage/resourceFactories.py", line 109, in __getResourceCandidatesList
    chain = image.Image(repoPath).getChain(sdUUID=self.sdUUID, imgUUID=resourceName)
  File "/usr/share/vdsm/storage/image.py", line 323, in getChain
    raise se.ImageIsNotLegalChain("Image %s is not a leaf" % imgUUID)
ImageIsNotLegalChain: Image is not a legal chain: ('Image d7f03964-06de-4fdf-b525-725720a2547d is not a leaf',)

Comment 1 Igor Lvovsky 2011-06-28 13:24:38 UTC
http://gerrit.usersys.redhat.com/#change,626

 Command to check MD_ tag uniqueness on every stage is
    lvs -o +tags 'sdUUID' | sed -e 's/.*MD_\(.*\)/\1/g' | sed -e 's/,.*//g' | sed -e 's/^\ .*//g' | grep -v ^$ | sort | uniq -d

Comment 3 Rami Vaknin 2011-07-26 11:27:05 UTC
Verified on vdsm-4.9-84.el6.x86_64

Comment 4 errata-xmlrpc 2011-12-06 07:25:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1782.html


Note You need to log in before you can comment on or make changes to this bug.