This is the first step for the support of wiping block devices prior
to creation of the instance.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
modify_etc_hosts=True, modify_ssh_setup=True,
maintain_node_health=False, drbd_helper=None,
uid_pool=None, default_iallocator=None,
modify_etc_hosts=True, modify_ssh_setup=True,
maintain_node_health=False, drbd_helper=None,
uid_pool=None, default_iallocator=None,
- primary_ip_version=None):
+ primary_ip_version=None, prealloc_wipe_disks=False):
"""Initialise the cluster.
@type candidate_pool_size: int
"""Initialise the cluster.
@type candidate_pool_size: int
drbd_usermode_helper=drbd_helper,
default_iallocator=default_iallocator,
primary_ip_family=ipcls.family,
drbd_usermode_helper=drbd_helper,
default_iallocator=default_iallocator,
primary_ip_family=ipcls.family,
+ prealloc_wipe_disks=prealloc_wipe_disks,
)
master_node_config = objects.Node(name=hostname.name,
primary_ip=hostname.ip,
)
master_node_config = objects.Node(name=hostname.name,
primary_ip=hostname.ip,
"hidden_os",
"blacklisted_os",
"primary_ip_family",
"hidden_os",
"blacklisted_os",
"primary_ip_family",
] + _TIMESTAMPS + _UUID
def UpgradeConfig(self):
] + _TIMESTAMPS + _UUID
def UpgradeConfig(self):
if self.primary_ip_family is None:
self.primary_ip_family = AF_INET
if self.primary_ip_family is None:
self.primary_ip_family = AF_INET
+ if self.prealloc_wipe_disks is None:
+ self.prealloc_wipe_disks = False
+
def ToDict(self):
"""Custom function for cluster.
def ToDict(self):
"""Custom function for cluster.