Bug 718483

Summary: missing SPUuid and HostId calling atachSD
Product: Red Hat Enterprise Linux 6 Reporter: Roy Golan <rgolan>
Component: vdsmAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED INSUFFICIENT_DATA QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0CC: abaron, bazulay, danken, fsimonce, hateya, iheim, srevivo, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-20 12:56:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
vdsm.log none

Description Roy Golan 2011-07-03 11:42:01 UTC
Description of problem:
During an import of an export-domain rhevm throws an error.
In VDSM logs you see the call for /usr/libexec/vdsm/spmprotect.sh with missing params

Version-Release number of selected component (if applicable):
vdsm-4.9-79.el6.x86_64

How reproducible:
Allways

Steps to Reproduce:
1.Import an export-domain
2.
3.
  
Actual results:
failed to import

Expected results:


Additional info:


Thread-1717::INFO::2011-07-03 08:41:14,908::sp::637::Storage.StoragePool::(attachSD) sdUUID=16d6afce-80c1-452d-9262-9fd4ae861f8a spUUID=f234cd83-0e3e-4ed7-9a2a-b479737e40ba
Thread-1717::DEBUG::2011-07-03 08:41:14,909::safelease::52::ClusterLock::(acquire) Acquiring cluster lock for domain 
Thread-1717::DEBUG::2011-07-03 08:41:14,909::safelease::61::Storage.Misc.excCmd::(acquire) '/usr/bin/sudo -n /usr/bin/setsid /usr/bin/ionice -c1 -n0 /bin/su vdsm -s /bin/sh -c "/usr/libexec/vdsm/spmprotect.sh start \\"\\" 1 5 /rhev/data-center/mnt/orion.qa.lab.tlv.redhat.com:_export_mgoldboi_export/dom_md/leases 30000 1000 3"' (cwd /usr/libexec/vdsm/)
Thread-1717::DEBUG::2011-07-03 08:41:14,939::safelease::61::Storage.Misc.excCmd::(acquire) FAILED: <err> = ''; <rc> = 1
Thread-1717::ERROR::2011-07-03 08:41:14,940::task::865::TaskManager.Task::(_setError) Unexpected error

Comment 2 Roy Golan 2011-07-03 11:44:27 UTC
Created attachment 511046 [details]
vdsm.log

Comment 3 Federico Simoncelli 2011-07-14 09:40:39 UTC
Looks like the SDUUID value in the metadata was cleared by vdsm (the _SHA_CKSUM was correct). Once it's cleared you can't attach the SD anymore.
I believe the corruption happened on an other host since there's no other evidence of 16d6afce-80c1-452d-9262-9fd4ae861f8a in all the logs on pluto-vdsd.

Comment 8 Federico Simoncelli 2011-07-20 12:56:29 UTC
Apparently we can't find more information about when and how the metadata was modified. Closing for insufficient data.