Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 602366[details]
logs
Description of problem:
auto recovery reconstruct + manual reconstruct sent to vdsm will cause two master domains.
engine rolls back and removed one of the domains (master version 0).
we cannot recover from this situation with "wrong master version" in backend and "Cannot obtain lock" error from sanlock.
Version-Release number of selected component (if applicable):
vdsm-reg-4.9.6-26.0.el6_3.noarch
How reproducible:
100%
Steps to Reproduce:
1. block connectivity from host to SD
2. when host releases SPM remove iptables block from host
3. reinitialize DC -> when second domain becomes master -> restart jboss on rhevm
4. reinitialize action will fail and domain1 will get wrong master version
5. try to reinitialize the domain again -> operation should seem successful.
6. put the master domain in maintenance
Actual results:
we have two master domains under the same pool (one domain no longer exist in engine db). and we cannot recover with sanlock error.
Expected results:
if the domain removed was master version 0 we should have no problem to recover (even of domain is no longer in pool)
or alternatively make sure vdsm rolls back on action when backed does.
Additional info: full logs attached
[root@blond-vdsh tmp]# vdsClient -s 0 getStorageDomainInfo 7a4c3779-ff28-49ea-9b75-76e34c1c0fc7
uuid = 7a4c3779-ff28-49ea-9b75-76e34c1c0fc7
vguuid = caaAuF-pzB1-ZFVP-9iiE-pEiq-GADI-gui5Qu
lver = -1
state = OK
version = 3
role = Master
pool = ['ddc2020c-c909-4214-89ff-b3cdde436183']
spm_id = -1
type = ISCSI
class = Data
master_ver = 0
name = Dafna-si13-02
[root@blond-vdsh tmp]# vdsClient -s 0 getStorageDomainInfo e3c8df23-d94e-4d9f-ba77-6114c76776af
uuid = e3c8df23-d94e-4d9f-ba77-6114c76776af
vguuid = o6KZEf-FY7m-t0o0-fSIi-OGHH-Kh6P-hEaif3
lver = 3
state = OK
version = 3
role = Master
pool = ['ddc2020c-c909-4214-89ff-b3cdde436183']
spm_id = 1
type = ISCSI
class = Data
master_ver = 1
name = Dafna-si13-01
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,110::persistentDict::226::Storage.PersistentDict::(refresh) read lines (VGTagMetadataRW)=['DESCRIPTION=Dafna-si13-01', 'TYPE=ISCSI', 'VGUUID=o6KZEf-FY7m-t0o0-fSIi-OGHH-Kh6
P-hEaif3', 'LOGBLKSIZE=512', 'LEASERETRIES=3', 'SDUUID=e3c8df23-d94e-4d9f-ba77-6114c76776af', 'LOCKRENEWALINTERVALSEC=5', 'LOCKPOLICY=', 'PHYBLKSIZE=512', 'CLASS=Data', u'PV0=pv:1Dafna-si13-011343925,uuid:P8pKHu-PaOa-05H6-ooGn-2PIF-CwiL
-1VToPY,pestart:0,pecount:397,mapoffset:0', 'VERSION=3', 'LEASETIMESEC=60', 'IOOPTIMEOUTSEC=10', 'MASTER_VERSION=1', 'POOL_UUID=ddc2020c-c909-4214-89ff-b3cdde436183', 'ROLE=Master', 'POOL_DESCRIPTION=iSCSI', 'POOL_SPM_ID=1', 'POOL_DOMAI
NS=e3c8df23-d94e-4d9f-ba77-6114c76776af:Active', '_SHA_CKSUM=f1a6719aa84be9ce3aa90f99ce33be79c4427ee1', 'POOL_SPM_LVER=3']
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::INFO::2012-08-05 17:52:46,111::safelease::211::SANLock::(acquire) Acquiring cluster lock for domain e3c8df23-d94e-4d9f-ba77-6114c76776af (id: 1)
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::ERROR::2012-08-05 17:52:46,112::task::853::TaskManager.Task::(_setError) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 861, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/storage/task.py", line 320, in run
return self.cmd(*self.argslist, **self.argsdict)
File "/usr/share/vdsm/storage/sp.py", line 255, in startSpm
self.masterDomain.acquireClusterLock(self.id)
File "/usr/share/vdsm/storage/sd.py", line 439, in acquireClusterLock
self._clusterLock.acquire(hostID)
File "/usr/share/vdsm/storage/safelease.py", line 228, in acquire
"Cannot acquire cluster lock", str(e))
AcquireLockFailure: Cannot obtain lock: "id=e3c8df23-d94e-4d9f-ba77-6114c76776af, rc=17, out=Cannot acquire cluster lock, err=(17, 'Sanlock resource not acquired', 'File exists')"
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::872::TaskManager.Task::(_run) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Task._run: d4811b51-5fdd-406b-bc8c-a735dcc38dd6 () {} failed - stopping task
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::1199::TaskManager.Task::(stop) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::stopping in state running (force False)
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::978::TaskManager.Task::(_decref) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::ref 1 aborting True
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,114::task::903::TaskManager.Task::(_runJobs) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::aborting: Task is aborted: 'Cannot obtain lock' - code 651
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,114::task::978::TaskManager.Task::(_decref) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::ref 0 aborting True
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,115::task::913::TaskManager.Task::(_doAbort) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Task._doAbort: force False
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,115::resourceManager::844::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,116::task::588::T
This is not a vdsm bug. vdsm cannot possibly prevent anything like this.
The 2 master domains have different versions so as far as vdsm is concerned there is only 1 master domain.
Created attachment 602366 [details] logs Description of problem: auto recovery reconstruct + manual reconstruct sent to vdsm will cause two master domains. engine rolls back and removed one of the domains (master version 0). we cannot recover from this situation with "wrong master version" in backend and "Cannot obtain lock" error from sanlock. Version-Release number of selected component (if applicable): vdsm-reg-4.9.6-26.0.el6_3.noarch How reproducible: 100% Steps to Reproduce: 1. block connectivity from host to SD 2. when host releases SPM remove iptables block from host 3. reinitialize DC -> when second domain becomes master -> restart jboss on rhevm 4. reinitialize action will fail and domain1 will get wrong master version 5. try to reinitialize the domain again -> operation should seem successful. 6. put the master domain in maintenance Actual results: we have two master domains under the same pool (one domain no longer exist in engine db). and we cannot recover with sanlock error. Expected results: if the domain removed was master version 0 we should have no problem to recover (even of domain is no longer in pool) or alternatively make sure vdsm rolls back on action when backed does. Additional info: full logs attached [root@blond-vdsh tmp]# vdsClient -s 0 getStorageDomainInfo 7a4c3779-ff28-49ea-9b75-76e34c1c0fc7 uuid = 7a4c3779-ff28-49ea-9b75-76e34c1c0fc7 vguuid = caaAuF-pzB1-ZFVP-9iiE-pEiq-GADI-gui5Qu lver = -1 state = OK version = 3 role = Master pool = ['ddc2020c-c909-4214-89ff-b3cdde436183'] spm_id = -1 type = ISCSI class = Data master_ver = 0 name = Dafna-si13-02 [root@blond-vdsh tmp]# vdsClient -s 0 getStorageDomainInfo e3c8df23-d94e-4d9f-ba77-6114c76776af uuid = e3c8df23-d94e-4d9f-ba77-6114c76776af vguuid = o6KZEf-FY7m-t0o0-fSIi-OGHH-Kh6P-hEaif3 lver = 3 state = OK version = 3 role = Master pool = ['ddc2020c-c909-4214-89ff-b3cdde436183'] spm_id = 1 type = ISCSI class = Data master_ver = 1 name = Dafna-si13-01 d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,110::persistentDict::226::Storage.PersistentDict::(refresh) read lines (VGTagMetadataRW)=['DESCRIPTION=Dafna-si13-01', 'TYPE=ISCSI', 'VGUUID=o6KZEf-FY7m-t0o0-fSIi-OGHH-Kh6 P-hEaif3', 'LOGBLKSIZE=512', 'LEASERETRIES=3', 'SDUUID=e3c8df23-d94e-4d9f-ba77-6114c76776af', 'LOCKRENEWALINTERVALSEC=5', 'LOCKPOLICY=', 'PHYBLKSIZE=512', 'CLASS=Data', u'PV0=pv:1Dafna-si13-011343925,uuid:P8pKHu-PaOa-05H6-ooGn-2PIF-CwiL -1VToPY,pestart:0,pecount:397,mapoffset:0', 'VERSION=3', 'LEASETIMESEC=60', 'IOOPTIMEOUTSEC=10', 'MASTER_VERSION=1', 'POOL_UUID=ddc2020c-c909-4214-89ff-b3cdde436183', 'ROLE=Master', 'POOL_DESCRIPTION=iSCSI', 'POOL_SPM_ID=1', 'POOL_DOMAI NS=e3c8df23-d94e-4d9f-ba77-6114c76776af:Active', '_SHA_CKSUM=f1a6719aa84be9ce3aa90f99ce33be79c4427ee1', 'POOL_SPM_LVER=3'] d4811b51-5fdd-406b-bc8c-a735dcc38dd6::INFO::2012-08-05 17:52:46,111::safelease::211::SANLock::(acquire) Acquiring cluster lock for domain e3c8df23-d94e-4d9f-ba77-6114c76776af (id: 1) d4811b51-5fdd-406b-bc8c-a735dcc38dd6::ERROR::2012-08-05 17:52:46,112::task::853::TaskManager.Task::(_setError) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Unexpected error Traceback (most recent call last): File "/usr/share/vdsm/storage/task.py", line 861, in _run return fn(*args, **kargs) File "/usr/share/vdsm/storage/task.py", line 320, in run return self.cmd(*self.argslist, **self.argsdict) File "/usr/share/vdsm/storage/sp.py", line 255, in startSpm self.masterDomain.acquireClusterLock(self.id) File "/usr/share/vdsm/storage/sd.py", line 439, in acquireClusterLock self._clusterLock.acquire(hostID) File "/usr/share/vdsm/storage/safelease.py", line 228, in acquire "Cannot acquire cluster lock", str(e)) AcquireLockFailure: Cannot obtain lock: "id=e3c8df23-d94e-4d9f-ba77-6114c76776af, rc=17, out=Cannot acquire cluster lock, err=(17, 'Sanlock resource not acquired', 'File exists')" d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::872::TaskManager.Task::(_run) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Task._run: d4811b51-5fdd-406b-bc8c-a735dcc38dd6 () {} failed - stopping task d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::1199::TaskManager.Task::(stop) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::stopping in state running (force False) d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,113::task::978::TaskManager.Task::(_decref) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::ref 1 aborting True d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,114::task::903::TaskManager.Task::(_runJobs) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::aborting: Task is aborted: 'Cannot obtain lock' - code 651 d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,114::task::978::TaskManager.Task::(_decref) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::ref 0 aborting True d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,115::task::913::TaskManager.Task::(_doAbort) Task=`d4811b51-5fdd-406b-bc8c-a735dcc38dd6`::Task._doAbort: force False d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,115::resourceManager::844::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {} d4811b51-5fdd-406b-bc8c-a735dcc38dd6::DEBUG::2012-08-05 17:52:46,116::task::588::T