Revision 34ea8da3
b/lib/cmdlib/instance_storage.py | ||
---|---|---|
2111 | 2111 |
if msg or not result.payload: |
2112 | 2112 |
if not msg: |
2113 | 2113 |
msg = "disk not found" |
2114 |
raise errors.OpExecError("Can't find disk/%d on node %s: %s" % |
|
2115 |
(idx, node, msg)) |
|
2114 |
if not self._CheckDisksActivated(self.instance): |
|
2115 |
extra_hint = ("\nDisks seem to be not properly activated. Try" |
|
2116 |
" running activate-disks on the instance before" |
|
2117 |
" using replace-disks.") |
|
2118 |
else: |
|
2119 |
extra_hint = "" |
|
2120 |
raise errors.OpExecError("Can't find disk/%d on node %s: %s%s" % |
|
2121 |
(idx, node, msg, extra_hint)) |
|
2116 | 2122 |
|
2117 | 2123 |
def _CheckDisksConsistency(self, node_name, on_primary, ldisk): |
2118 | 2124 |
for idx, dev in enumerate(self.instance.disks): |
Also available in: Unified diff