Change in vdsm[master]: hsm: [WIP] Support force detach on orphaned Storage Domains.

nsoffer at redhat.com nsoffer at redhat.com
Wed Jun 25 08:42:20 UTC 2014


Nir Soffer has posted comments on this change.

Change subject: hsm: [WIP] Support force detach on orphaned Storage Domains.
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/29042/1/vdsm/storage/hsm.py
File vdsm/storage/hsm.py:

Line 758:         domains = pool.getDomains()
Line 759:         if sdUUID in domains:
Line 760:             pool.forcedDetachSD(sdUUID)
Line 761:         else:
Line 762:             dom = sdCache.produce(sdUUID=sdUUID)
> This part should be more fault tolerant, something like:
Lets acquire the clusterlock around this loop:

        acquire host id...
        try:
            acquire cluster lock...
            try:
                for domPoolUUID in dom.getPools():
                    dom.detach(domPoolUUID)
            finally:
                release cluster lock
        finally:
            release host id
Line 763:             self.log.info("Preparing to delete sdUUID=%s", sdUUID)
Line 764:             dom.detach(dom.getPools()[0])
Line 765:             self.log.info("delete sdUUID=%s", sdUUID)
Line 766: 


-- 
To view, visit http://gerrit.ovirt.org/29042
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I4a6fb01775f7c834a3466e45b9b7ed9b4bd5c3be
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list