Merge "resize glance fails before controller-1 configured"
This commit is contained in:
commit
e3f3a9bed2
@ -7293,12 +7293,11 @@ class ConductorManager(service.PeriodicService):
|
||||
|
||||
if not os.path.isfile(CFS_DRBDADM_RECONFIGURED):
|
||||
progress = "drbdadm resize all"
|
||||
cmd = ["drbdadm", "resize", "all"]
|
||||
if standby_host:
|
||||
stdout, __ = cutils.execute(*cmd, attempts=retry_attempts, run_as_root=True)
|
||||
cmd = ["drbdadm", "resize", "all"]
|
||||
else:
|
||||
cmd = cmd + ['--assume-peer-has-space']
|
||||
stdout, __ = cutils.execute(*cmd, attempts=retry_attempts, run_as_root=True)
|
||||
cmd = ["drbdadm", "--", "--assume-peer-has-space", "resize", "all"]
|
||||
stdout, __ = cutils.execute(*cmd, attempts=retry_attempts, run_as_root=True)
|
||||
LOG.info("Performed %s" % progress)
|
||||
cutils.touch(CFS_DRBDADM_RECONFIGURED)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user