Revision 519bfbae
b/tools/burnin | ||
---|---|---|
68 | 68 |
choices=("remote_raid1", "drbd8"), default="remote_raid1", |
69 | 69 |
help="Template type for network mirroring (remote_raid1" |
70 | 70 |
" or drbd8) [remote_raid1]") |
71 |
parser.add_option("-n", "--nodes", dest="nodes", default="", |
|
72 |
help="Comma separated list of nodes to perform the burnin" |
|
73 |
" on (defaults to all nodes)") |
|
71 | 74 |
|
72 | 75 |
options, args = parser.parse_args() |
73 | 76 |
if len(args) < 1 or options.os is None: |
... | ... | |
86 | 89 |
|
87 | 90 |
logger.SetupLogging(debug=True, program="ganeti/burnin") |
88 | 91 |
proc = mcpu.Processor(feedback=Feedback) |
89 |
result = proc.ExecOpCode(opcodes.OpQueryNodes(output_fields=["name"], |
|
90 |
names=[])) |
|
92 |
if opts.nodes: |
|
93 |
names = opts.nodes.split(",") |
|
94 |
else: |
|
95 |
names = [] |
|
96 |
try: |
|
97 |
result = proc.ExecOpCode(opcodes.OpQueryNodes(output_fields=["name"], |
|
98 |
names=names)) |
|
99 |
except errors.GenericError, err: |
|
100 |
err_code, msg = cli.FormatError(err) |
|
101 |
Feedback(msg) |
|
102 |
return err_code |
|
91 | 103 |
nodelist = [data[0] for data in result] |
92 | 104 |
|
93 | 105 |
Feedback("- Testing global parameters") |
Also available in: Unified diff