Revision 1c6e3627
b/lib/cmdlib.py | ||
---|---|---|
2883 | 2883 |
|
2884 | 2884 |
for device in instance.disks: |
2885 | 2885 |
logger.Info("creating volume %s for instance %s" % |
2886 |
(device.iv_name, instance.name)) |
|
2886 |
(device.iv_name, instance.name))
|
|
2887 | 2887 |
#HARDCODE |
2888 | 2888 |
for secondary_node in instance.secondary_nodes: |
2889 | 2889 |
if not _CreateBlockDevOnSecondary(cfg, secondary_node, instance, |
... | ... | |
2897 | 2897 |
logger.Error("failed to create volume %s on primary!" % |
2898 | 2898 |
device.iv_name) |
2899 | 2899 |
return False |
2900 |
|
|
2900 | 2901 |
return True |
2901 | 2902 |
|
2902 | 2903 |
|
Also available in: Unified diff