Revision 5c54b832
b/lib/cmdlib.py | ||
---|---|---|
2662 | 2662 |
""" |
2663 | 2663 |
HPATH = "instance-remove" |
2664 | 2664 |
HTYPE = constants.HTYPE_INSTANCE |
2665 |
_OP_REQP = ["instance_name"] |
|
2665 |
_OP_REQP = ["instance_name", "ignore_failures"]
|
|
2666 | 2666 |
|
2667 | 2667 |
def BuildHooksEnv(self): |
2668 | 2668 |
"""Build hooks env. |
b/tools/burnin | ||
---|---|---|
291 | 291 |
exp_op = opcodes.OpExportInstance(instance_name=instance, |
292 | 292 |
target_node=enode, |
293 | 293 |
shutdown=True) |
294 |
rem_op = opcodes.OpRemoveInstance(instance_name=instance) |
|
294 |
rem_op = opcodes.OpRemoveInstance(instance_name=instance, |
|
295 |
ignore_failures=True) |
|
295 | 296 |
nam_op = opcodes.OpQueryInstances(output_fields=["name"], |
296 | 297 |
names=[instance]) |
297 | 298 |
full_name = self.ExecOp(nam_op)[0][0] |
... | ... | |
356 | 357 |
def Remove(self): |
357 | 358 |
"""Remove the instances.""" |
358 | 359 |
for instance in self.to_rem: |
359 |
op = opcodes.OpRemoveInstance(instance_name=instance) |
|
360 |
op = opcodes.OpRemoveInstance(instance_name=instance, |
|
361 |
ignore_failures=True) |
|
360 | 362 |
Log("- Remove instance %s" % instance) |
361 | 363 |
self.ExecOp(op) |
362 | 364 |
|
Also available in: Unified diff