Commit b1b4b282 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Modify failing assert



The assert stating that the disk did not have to be activated made
sense once the instance's disks were never completely deactivated. With
zeroing, the assumption no longer holds true, and should be replaced by
a check that the disks of the instance are indeed active.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
parent b5e61bfd
......@@ -361,7 +361,7 @@ class LUBackupExport(LogicalUnit):
if (self.op.shutdown and
self.instance.admin_state == constants.ADMINST_UP and
not self.op.remove_instance):
assert not activate_disks
assert self.instance.disks_active
feedback_fn("Starting instance %s" % self.instance.name)
result = self.rpc.call_instance_start(src_node_uuid,
(self.instance, None, None),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment