Trees | Indices | Help |
|
---|
|
Node related commands
|
|||
|
|||
|
|||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
|
|||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
|
|
|||
_LIST_DEF_FIELDS = ["name", "dtotal", "dfree", "mtotal", "mnod default list of field for ListNodes |
|||
_LIST_VOL_DEF_FIELDS = ["node", "phys", "vg", "name", "size", Default field list for ListVolumes |
|||
_LIST_STOR_DEF_FIELDS = [constants.SF_NODE, constants.SF_TYPE, default list of field for ListStorage |
|||
_LIST_POWER_COMMANDS = ["on", "off", "cycle", "status"] default list of power commands |
|||
_LIST_STOR_HEADERS = {constants.SF_NODE: "Node", constants.SF_ headers (and full field list) for ListStorage |
|||
_USER_STORAGE_TYPE = {constants.ST_FILE: "file", constants.ST_ User-facing storage unit types |
|||
_STORAGE_TYPE_OPT = cli_option("-t", "--storage-type", dest= "
|
|||
_REPAIRABLE_STORAGE_TYPES = [st for st, so in constants.VALID_
|
|||
_MODIFIABLE_STORAGE_TYPES = constants.MODIFIABLE_STORAGE_FIELD
|
|||
_OOB_COMMAND_ASK = frozenset([constants.OOB_POWER_OFF, constan
|
|||
NONODE_SETUP_OPT = cli_option("--no-node-setup", default= True
|
|||
IGNORE_STATUS_OPT = cli_option("--ignore-status", default= Fal
|
|||
commands = {"add":(AddNode, [ArgHost(min= 1, max= 1)], [SECOND
|
Imports: itertools, cli, bootstrap, opcodes, utils, constants, errors, netutils, StringIO
|
Wrapper around utils.RunCmd to call setup-ssh
|
Add a node to the cluster.
|
List nodes and their properties.
|
List node fields.
|
Relocate all secondary instance from a node.
|
Failover all primary instance on a node.
|
Show node information.
|
Remove a node from the cluster.
|
Remove a node from the cluster.
|
Change/ask power state of a node.
|
Show health of a node using OOB.
|
List logical volumes on node(s).
|
List physical volumes on node(s).
|
Modify storage volume on a node.
|
Repairs a storage volume on a node.
|
Modifies a node.
|
|
_LIST_DEF_FIELDSdefault list of field for ListNodes
|
_LIST_VOL_DEF_FIELDSDefault field list for ListVolumes
|
_LIST_STOR_DEF_FIELDSdefault list of field for ListStorage
|
_LIST_STOR_HEADERSheaders (and full field list) for ListStorage
|
_USER_STORAGE_TYPEUser-facing storage unit types
|
_STORAGE_TYPE_OPT
|
_REPAIRABLE_STORAGE_TYPES
|
_MODIFIABLE_STORAGE_TYPES
|
_OOB_COMMAND_ASK
|
NONODE_SETUP_OPT
|
IGNORE_STATUS_OPT
|
commands
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:19 2012 | http://epydoc.sourceforge.net |