Revision 400ca2f7 scripts/gnt-node
b/scripts/gnt-node | ||
---|---|---|
173 | 173 |
|
174 | 174 |
op = opcodes.OpAddNode(node_name=args[0], secondary_ip=sip, |
175 | 175 |
readd=opts.readd) |
176 |
SubmitOpCode(op) |
|
176 |
SubmitOpCode(op, opts=opts)
|
|
177 | 177 |
|
178 | 178 |
|
179 | 179 |
def ListNodes(opts, args): |
... | ... | |
289 | 289 |
|
290 | 290 |
op = opcodes.OpEvacuateNode(node_name=args[0], remote_node=dst_node, |
291 | 291 |
iallocator=iallocator) |
292 |
SubmitOpCode(op, cl=cl) |
|
292 |
SubmitOpCode(op, cl=cl, opts=opts)
|
|
293 | 293 |
|
294 | 294 |
|
295 | 295 |
def FailoverNode(opts, args): |
... | ... | |
361 | 361 |
return 2 |
362 | 362 |
|
363 | 363 |
op = opcodes.OpMigrateNode(node_name=args[0], live=opts.live) |
364 |
SubmitOpCode(op, cl=cl) |
|
364 |
SubmitOpCode(op, cl=cl, opts=opts)
|
|
365 | 365 |
|
366 | 366 |
|
367 | 367 |
def ShowNodeConfig(opts, args): |
... | ... | |
418 | 418 |
|
419 | 419 |
""" |
420 | 420 |
op = opcodes.OpRemoveNode(node_name=args[0]) |
421 |
SubmitOpCode(op) |
|
421 |
SubmitOpCode(op, opts=opts)
|
|
422 | 422 |
return 0 |
423 | 423 |
|
424 | 424 |
|
... | ... | |
439 | 439 |
return 2 |
440 | 440 |
|
441 | 441 |
op = opcodes.OpPowercycleNode(node_name=node, force=opts.force) |
442 |
result = SubmitOpCode(op) |
|
442 |
result = SubmitOpCode(op, opts=opts)
|
|
443 | 443 |
ToStderr(result) |
444 | 444 |
return 0 |
445 | 445 |
|
... | ... | |
463 | 463 |
selected_fields = opts.output.split(",") |
464 | 464 |
|
465 | 465 |
op = opcodes.OpQueryNodeVolumes(nodes=args, output_fields=selected_fields) |
466 |
output = SubmitOpCode(op) |
|
466 |
output = SubmitOpCode(op, opts=opts)
|
|
467 | 467 |
|
468 | 468 |
if not opts.no_headers: |
469 | 469 |
headers = {"node": "Node", "phys": "PhysDev", |
... | ... | |
514 | 514 |
op = opcodes.OpQueryNodeStorage(nodes=args, |
515 | 515 |
storage_type=storage_type, |
516 | 516 |
output_fields=selected_fields) |
517 |
output = SubmitOpCode(op) |
|
517 |
output = SubmitOpCode(op, opts=opts)
|
|
518 | 518 |
|
519 | 519 |
if not opts.no_headers: |
520 | 520 |
headers = { |
... | ... | |
577 | 577 |
storage_type=storage_type, |
578 | 578 |
name=volume_name, |
579 | 579 |
changes=changes) |
580 |
SubmitOpCode(op) |
|
580 |
SubmitOpCode(op, opts=opts)
|
|
581 | 581 |
else: |
582 | 582 |
ToStderr("No changes to perform, exiting.") |
583 | 583 |
|
... | ... | |
600 | 600 |
storage_type=storage_type, |
601 | 601 |
name=volume_name, |
602 | 602 |
ignore_consistency=opts.ignore_consistency) |
603 |
SubmitOpCode(op) |
|
603 |
SubmitOpCode(op, opts=opts)
|
|
604 | 604 |
|
605 | 605 |
|
606 | 606 |
def SetNodeParams(opts, args): |
Also available in: Unified diff