X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/cf9cb46a48daaca609d4f887793a62206f8d2874..97efde459ccd6770faab6c2a81db7a9ee60104d3:/lib/objects.py diff --git a/lib/objects.py b/lib/objects.py index d67e31c..522162a 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -277,13 +277,11 @@ class Disk(ConfigObject): def CreateOnSecondary(self): """Test if this device needs to be created on a secondary node.""" - return self.dev_type in (constants.LD_DRBD7, constants.LD_DRBD8, - constants.LD_LV) + return self.dev_type in (constants.LD_DRBD8, constants.LD_LV) def AssembleOnSecondary(self): """Test if this device needs to be assembled on a secondary node.""" - return self.dev_type in (constants.LD_DRBD7, constants.LD_DRBD8, - constants.LD_LV) + return self.dev_type in (constants.LD_DRBD8, constants.LD_LV) def OpenOnSecondary(self): """Test if this device needs to be opened on a secondary node.""" @@ -326,8 +324,7 @@ class Disk(ConfigObject): devices needs to (or can) be assembled. """ - if self.dev_type in [constants.LD_LV, constants.LD_MD_R1, - constants.LD_FILE]: + if self.dev_type in [constants.LD_LV, constants.LD_FILE]: result = [node] elif self.dev_type in constants.LDS_DRBD: result = [self.logical_id[0], self.logical_id[1]] @@ -470,10 +467,7 @@ class Disk(ConfigObject): if self.dev_type == constants.LD_LV: val = "