Revision 40167d65 lib/client/gnt_cluster.py
b/lib/client/gnt_cluster.py | ||
---|---|---|
456 | 456 |
simulate = opts.simulate_errors |
457 | 457 |
skip_checks = [] |
458 | 458 |
|
459 |
# Verify cluster config. |
|
460 |
op = opcodes.OpClusterVerifyConfig(verbose=opts.verbose, |
|
461 |
error_codes=opts.error_codes, |
|
462 |
debug_simulate_errors=simulate) |
|
459 |
if opts.nodegroup is None: |
|
460 |
# Verify cluster config. |
|
461 |
op = opcodes.OpClusterVerifyConfig(verbose=opts.verbose, |
|
462 |
error_codes=opts.error_codes, |
|
463 |
debug_simulate_errors=simulate) |
|
463 | 464 |
|
464 |
success, all_groups = SubmitOpCode(op, opts=opts) |
|
465 |
success, all_groups = SubmitOpCode(op, opts=opts) |
|
466 |
else: |
|
467 |
success = True |
|
468 |
all_groups = [opts.nodegroup] |
|
465 | 469 |
|
466 | 470 |
if opts.skip_nplusone_mem: |
467 | 471 |
skip_checks.append(constants.VERIFY_NPLUSONE_MEM) |
... | ... | |
1259 | 1263 |
'verify': ( |
1260 | 1264 |
VerifyCluster, ARGS_NONE, |
1261 | 1265 |
[VERBOSE_OPT, DEBUG_SIMERR_OPT, ERROR_CODES_OPT, NONPLUS1_OPT, |
1262 |
DRY_RUN_OPT, PRIORITY_OPT], |
|
1266 |
DRY_RUN_OPT, PRIORITY_OPT, NODEGROUP_OPT],
|
|
1263 | 1267 |
"", "Does a check on the cluster configuration"), |
1264 | 1268 |
'verify-disks': ( |
1265 | 1269 |
VerifyDisks, ARGS_NONE, [PRIORITY_OPT], |
Also available in: Unified diff