Commit e8d47209 authored by Iustin Pop's avatar Iustin Pop
Browse files

burnin: do not use drained nodes

This patch updates burnin not to use drained nodes (similar to the
handling of offline nodes).

Reviewed-by: imsnah
parent 7d26425f
......@@ -323,13 +323,13 @@ class Burner(object):
names = []
op = opcodes.OpQueryNodes(output_fields=["name", "offline"],
op = opcodes.OpQueryNodes(output_fields=["name", "offline", "drained"],
names=names, use_locking=True)
result = self.ExecOp(op)
except errors.GenericError, err:
err_code, msg = cli.FormatError(err)
Err(msg, exit_code=err_code)
self.nodes = [data[0] for data in result if not data[1]]
self.nodes = [data[0] for data in result if not (data[1] or data[2])]
result = self.ExecOp(opcodes.OpDiagnoseOS(output_fields=["name", "valid"],
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