Revision bf93ae69 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
513 | 513 |
"""Query cluster information.""" |
514 | 514 |
|
515 | 515 |
|
516 |
class OpClusterVerify(OpCode): |
|
517 |
"""Verify the cluster state. |
|
516 |
class OpClusterVerifyConfig(OpCode): |
|
517 |
"""Verify the cluster config. |
|
518 |
|
|
519 |
""" |
|
520 |
OP_PARAMS = [ |
|
521 |
("verbose", False, ht.TBool, None), |
|
522 |
("error_codes", False, ht.TBool, None), |
|
523 |
("debug_simulate_errors", False, ht.TBool, None), |
|
524 |
] |
|
525 |
|
|
526 |
|
|
527 |
class OpClusterVerifyGroup(OpCode): |
|
528 |
"""Run verify on a node group from the cluster. |
|
518 | 529 |
|
519 | 530 |
@type skip_checks: C{list} |
520 | 531 |
@ivar skip_checks: steps to be skipped from the verify process; this |
... | ... | |
523 | 534 |
only L{constants.VERIFY_NPLUSONE_MEM} can be passed |
524 | 535 |
|
525 | 536 |
""" |
537 |
OP_DSC_FIELD = "group_name" |
|
526 | 538 |
OP_PARAMS = [ |
539 |
("group_name", ht.NoDefault, ht.TNonEmptyString, None), |
|
527 | 540 |
("skip_checks", ht.EmptyList, |
528 | 541 |
ht.TListOf(ht.TElemOf(constants.VERIFY_OPTIONAL_CHECKS)), None), |
529 | 542 |
("verbose", False, ht.TBool, None), |
Also available in: Unified diff