Revision 79caa9ed lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
3696 | 3696 |
if not rpc.call_blockdev_addchildren(tgt_node, dev, new_lvs): |
3697 | 3697 |
for new_lv in new_lvs: |
3698 | 3698 |
if not rpc.call_blockdev_remove(tgt_node, new_lv): |
3699 |
warning("Can't rollback device %s", "manually cleanup unused" |
|
3699 |
warning("Can't rollback device %s", hint="manually cleanup unused"
|
|
3700 | 3700 |
" logical volumes") |
3701 | 3701 |
raise errors.OpExecError("Can't add local storage to drbd") |
3702 | 3702 |
|
... | ... | |
3725 | 3725 |
for lv in old_lvs: |
3726 | 3726 |
cfg.SetDiskID(lv, tgt_node) |
3727 | 3727 |
if not rpc.call_blockdev_remove(tgt_node, lv): |
3728 |
warning("Can't remove old LV", "manually remove unused LVs") |
|
3728 |
warning("Can't remove old LV", hint="manually remove unused LVs")
|
|
3729 | 3729 |
continue |
3730 | 3730 |
|
3731 | 3731 |
def _ExecD8Secondary(self, feedback_fn): |
... | ... | |
3828 | 3828 |
cfg.SetDiskID(dev, old_node) |
3829 | 3829 |
if not rpc.call_blockdev_shutdown(old_node, dev): |
3830 | 3830 |
warning("Failed to shutdown drbd for %s on old node" % dev.iv_name, |
3831 |
"Please cleanup this device manually as soon as possible") |
|
3831 |
hint="Please cleanup this device manually as soon as possible")
|
|
3832 | 3832 |
|
3833 | 3833 |
info("detaching primary drbds from the network (=> standalone)") |
3834 | 3834 |
done = 0 |
... | ... | |
3890 | 3890 |
cfg.SetDiskID(lv, old_node) |
3891 | 3891 |
if not rpc.call_blockdev_remove(old_node, lv): |
3892 | 3892 |
warning("Can't remove LV on old secondary", |
3893 |
"Cleanup stale volumes by hand") |
|
3893 |
hint="Cleanup stale volumes by hand")
|
|
3894 | 3894 |
|
3895 | 3895 |
def Exec(self, feedback_fn): |
3896 | 3896 |
"""Execute disk replacement. |
Also available in: Unified diff