|
NO_PREFIX = "no_"
|
|
UN_PREFIX = "-"
|
|
_PRIORITY_NAMES = [("low", constants.OP_PRIO_LOW), ("normal", ...
Priorities (sorted)
|
|
_PRIONAME_TO_VALUE = dict(_PRIORITY_NAMES)
Priority dictionary for easier lookup
|
|
OPT_COMPL_ALL = compat.UniqueFrozenset([OPT_COMPL_MANY_NODES, ...
|
|
_YORNO = "yes|no"
|
|
DEBUG_OPT = cli_option("-d", "--debug", default= 0, action= "c...
|
|
NOHDR_OPT = cli_option("--no-headers", default= False, action=...
|
|
SEP_OPT = cli_option("--separator", default= None, action= "st...
|
|
USEUNITS_OPT = cli_option("--units", default= None, dest= "uni...
|
|
FIELDS_OPT = cli_option("-o", "--output", dest= "output", acti...
|
|
FORCE_OPT = cli_option("-f", "--force", dest= "force", action=...
|
|
CONFIRM_OPT = cli_option("--yes", dest= "confirm", action= "st...
|
|
IGNORE_OFFLINE_OPT = cli_option("--ignore-offline", dest= "ign...
|
|
IGNORE_SOFT_ERRORS_OPT = cli_option("--ignore-soft-errors", de...
|
|
TAG_ADD_OPT = cli_option("--tags", dest= "tags", default= None...
|
|
TAG_SRC_OPT = cli_option("--from", dest= "tags_source", defaul...
|
|
SUBMIT_OPT = cli_option("--submit", dest= "submit_only", defau...
|
|
PRINT_JOBID_OPT = cli_option("--print-jobid", dest= "print_job...
|
|
SEQUENTIAL_OPT = cli_option("--sequential", dest= "sequential"...
|
|
SYNC_OPT = cli_option("--sync", dest= "do_locking", default= F...
|
|
DRY_RUN_OPT = cli_option("--dry-run", default= False, action= ...
|
|
VERBOSE_OPT = cli_option("-v", "--verbose", default= False, ac...
|
|
DEBUG_SIMERR_OPT = cli_option("--debug-simulate-errors", defau...
|
|
NWSYNC_OPT = cli_option("--no-wait-for-sync", dest= "wait_for_...
|
|
WFSYNC_OPT = cli_option("--wait-for-sync", dest= "wait_for_syn...
|
|
ONLINE_INST_OPT = cli_option("--online", dest= "online_inst", ...
|
|
OFFLINE_INST_OPT = cli_option("--offline", dest= "offline_inst...
|
|
DISK_TEMPLATE_OPT = cli_option("-t", "--disk-template", dest= ...
|
|
EXT_PARAMS_OPT = cli_option("-e", "--ext-params", dest= "ext_p...
|
|
NONICS_OPT = cli_option("--no-nics", default= False, action= "...
|
|
FILESTORE_DIR_OPT = cli_option("--file-storage-dir", dest= "fi...
|
|
FILESTORE_DRIVER_OPT = cli_option("--file-driver", dest= "file...
|
|
IALLOCATOR_OPT = cli_option("-I", "--iallocator", metavar= "<N...
|
|
DEFAULT_IALLOCATOR_OPT = cli_option("-I", "--default-iallocato...
|
|
DEFAULT_IALLOCATOR_PARAMS_OPT = cli_option("--default-iallocat...
|
|
OS_OPT = cli_option("-o", "--os-type", dest= "os", help= "What...
|
|
OSPARAMS_OPT = cli_option("-O", "--os-parameters", dest= "ospa...
|
|
OSPARAMS_PRIVATE_OPT = cli_option("--os-parameters-private", d...
|
|
OSPARAMS_SECRET_OPT = cli_option("--os-parameters-secret", des...
|
|
FORCE_VARIANT_OPT = cli_option("--force-variant", dest= "force...
|
|
NO_INSTALL_OPT = cli_option("--no-install", dest= "no_install"...
|
|
NORUNTIME_CHGS_OPT = cli_option("--no-runtime-changes", dest= ...
|
|
BACKEND_OPT = cli_option("-B", "--backend-parameters", dest= "...
|
|
HVOPTS_OPT = cli_option("-H", "--hypervisor-parameters", type=...
|
|
DISK_PARAMS_OPT = cli_option("-D", "--disk-parameters", dest= ...
|
|
SPECS_MEM_SIZE_OPT = cli_option("--specs-mem-size", dest= "isp...
|
|
SPECS_CPU_COUNT_OPT = cli_option("--specs-cpu-count", dest= "i...
|
|
SPECS_DISK_COUNT_OPT = cli_option("--specs-disk-count", dest= ...
|
|
SPECS_DISK_SIZE_OPT = cli_option("--specs-disk-size", dest= "i...
|
|
SPECS_NIC_COUNT_OPT = cli_option("--specs-nic-count", dest= "i...
|
|
IPOLICY_BOUNDS_SPECS_STR = "--ipolicy-bounds-specs"
|
|
IPOLICY_BOUNDS_SPECS_OPT = cli_option(IPOLICY_BOUNDS_SPECS_STR...
|
|
IPOLICY_STD_SPECS_STR = "--ipolicy-std-specs"
|
|
IPOLICY_STD_SPECS_OPT = cli_option(IPOLICY_STD_SPECS_STR, dest...
|
|
IPOLICY_DISK_TEMPLATES = cli_option("--ipolicy-disk-templates"...
|
|
IPOLICY_VCPU_RATIO = cli_option("--ipolicy-vcpu-ratio", dest= ...
|
|
IPOLICY_SPINDLE_RATIO = cli_option("--ipolicy-spindle-ratio", ...
|
|
HYPERVISOR_OPT = cli_option("-H", "--hypervisor-parameters", d...
|
|
HVLIST_OPT = cli_option("-H", "--hypervisor-parameters", dest=...
|
|
NOIPCHECK_OPT = cli_option("--no-ip-check", dest= "ip_check", ...
|
|
NONAMECHECK_OPT = cli_option("--no-name-check", dest= "name_ch...
|
|
NET_OPT = cli_option("--net", help= "NIC parameters", default=...
|
|
DISK_OPT = cli_option("--disk", help= "Disk parameters", defau...
|
|
DISKIDX_OPT = cli_option("--disks", dest= "disks", default= No...
|
|
OS_SIZE_OPT = cli_option("-s", "--os-size", dest= "sd_size", h...
|
|
IGNORE_CONSIST_OPT = cli_option("--ignore-consistency", dest= ...
|
|
IGNORE_HVVERSIONS_OPT = cli_option("--ignore-hvversions", dest...
|
|
ALLOW_FAILOVER_OPT = cli_option("--allow-failover", dest= "all...
|
|
FORCE_FAILOVER_OPT = cli_option("--force-failover", dest= "for...
|
|
NONLIVE_OPT = cli_option("--non-live", dest= "live", default= ...
|
|
MIGRATION_MODE_OPT = cli_option("--migration-mode", dest= "mig...
|
|
NODE_PLACEMENT_OPT = cli_option("-n", "--node", dest= "node", ...
|
|
NODE_LIST_OPT = cli_option("-n", "--node", dest= "nodes", defa...
|
|
NODEGROUP_OPT_NAME = "--node-group"
|
|
NODEGROUP_OPT = cli_option("-g", NODEGROUP_OPT_NAME, dest= "no...
|
|
SINGLE_NODE_OPT = cli_option("-n", "--node", dest= "node", hel...
|
|
NOSTART_OPT = cli_option("--no-start", dest= "start", default=...
|
|
FORTHCOMING_OPT = cli_option("--forthcoming", dest= "forthcomi...
|
|
COMMIT_OPT = cli_option("--commit", dest= "commit", action= "s...
|
|
SHOWCMD_OPT = cli_option("--show-cmd", dest= "show_command", a...
|
|
CLEANUP_OPT = cli_option("--cleanup", dest= "cleanup", default...
|
|
STATIC_OPT = cli_option("-s", "--static", dest= "static", acti...
|
|
ALL_OPT = cli_option("--all", dest= "show_all", default= False...
|
|
SELECT_OS_OPT = cli_option("--select-os", dest= "select_os", a...
|
|
IGNORE_FAILURES_OPT = cli_option("--ignore-failures", dest= "i...
|
|
IGNORE_REMOVE_FAILURES_OPT = cli_option("--ignore-remove-failu...
|
|
REMOVE_INSTANCE_OPT = cli_option("--remove-instance", dest= "r...
|
|
DST_NODE_OPT = cli_option("-n", "--target-node", dest= "dst_no...
|
|
NEW_SECONDARY_OPT = cli_option("-n", "--new-secondary", dest= ...
|
|
NEW_PRIMARY_OPT = cli_option("--new-primary", dest= "new_prima...
|
|
ON_PRIMARY_OPT = cli_option("-p", "--on-primary", dest= "on_pr...
|
|
ON_SECONDARY_OPT = cli_option("-s", "--on-secondary", dest= "o...
|
|
AUTO_PROMOTE_OPT = cli_option("--auto-promote", dest= "auto_pr...
|
|
AUTO_REPLACE_OPT = cli_option("-a", "--auto", dest= "auto", de...
|
|
IGNORE_SIZE_OPT = cli_option("--ignore-size", dest= "ignore_si...
|
|
SRC_NODE_OPT = cli_option("--src-node", dest= "src_node", help...
|
|
SRC_DIR_OPT = cli_option("--src-dir", dest= "src_dir", help= "...
|
|
SECONDARY_IP_OPT = cli_option("-s", "--secondary-ip", dest= "s...
|
|
READD_OPT = cli_option("--readd", dest= "readd", default= Fals...
|
|
NOSSH_KEYCHECK_OPT = cli_option("--no-ssh-key-check", dest= "s...
|
|
NODE_FORCE_JOIN_OPT = cli_option("--force-join", dest= "force_...
|
|
MC_OPT = cli_option("-C", "--master-candidate", dest= "master_...
|
|
OFFLINE_OPT = cli_option("-O", "--offline", dest= "offline", m...
|
|
DRAINED_OPT = cli_option("-D", "--drained", dest= "drained", m...
|
|
CAPAB_MASTER_OPT = cli_option("--master-capable", dest= "maste...
|
|
CAPAB_VM_OPT = cli_option("--vm-capable", dest= "vm_capable", ...
|
|
ALLOCATABLE_OPT = cli_option("--allocatable", dest= "allocatab...
|
|
ENABLED_HV_OPT = cli_option("--enabled-hypervisors", dest= "en...
|
|
ENABLED_DISK_TEMPLATES_OPT = cli_option("--enabled-disk-templa...
|
|
ENABLED_USER_SHUTDOWN_OPT = cli_option("--user-shutdown", defa...
|
|
NIC_PARAMS_OPT = cli_option("-N", "--nic-parameters", dest= "n...
|
|
CP_SIZE_OPT = cli_option("-C", "--candidate-pool-size", defaul...
|
|
RQL_OPT = cli_option("--max-running-jobs", dest= "max_running_...
|
|
MAX_TRACK_OPT = cli_option("--max-tracked-jobs", dest= "max_tr...
|
|
COMPRESSION_TOOLS_OPT = cli_option("--compression-tools", dest...
|
|
VG_NAME_OPT = cli_option("--vg-name", dest= "vg_name", help= (...
|
|
YES_DOIT_OPT = cli_option("--yes-do-it", "--ya-rly", dest= "ye...
|
|
NOVOTING_OPT = cli_option("--no-voting", dest= "no_voting", he...
|
|
MAC_PREFIX_OPT = cli_option("-m", "--mac-prefix", dest= "mac_p...
|
|
MASTER_NETDEV_OPT = cli_option("--master-netdev", dest= "maste...
|
|
MASTER_NETMASK_OPT = cli_option("--master-netmask", dest= "mas...
|
|
USE_EXTERNAL_MIP_SCRIPT = cli_option("--use-external-mip-scrip...
|
|
GLOBAL_FILEDIR_OPT = cli_option("--file-storage-dir", dest= "f...
|
|
GLOBAL_SHARED_FILEDIR_OPT = cli_option("--shared-file-storage-...
|
|
GLOBAL_GLUSTER_FILEDIR_OPT = cli_option("--gluster-storage-dir...
|
|
NOMODIFY_ETCHOSTS_OPT = cli_option("--no-etc-hosts", dest= "mo...
|
|
MODIFY_ETCHOSTS_OPT = cli_option("--modify-etc-hosts", dest= "...
|
|
NOMODIFY_SSH_SETUP_OPT = cli_option("--no-ssh-init", dest= "mo...
|
|
ERROR_CODES_OPT = cli_option("--error-codes", dest= "error_cod...
|
|
NONPLUS1_OPT = cli_option("--no-nplus1-mem", dest= "skip_nplus...
|
|
REBOOT_TYPE_OPT = cli_option("-t", "--type", dest= "reboot_typ...
|
|
IGNORE_SECONDARIES_OPT = cli_option("--ignore-secondaries", de...
|
|
NOSHUTDOWN_OPT = cli_option("--noshutdown", dest= "shutdown", ...
|
|
TIMEOUT_OPT = cli_option("--timeout", dest= "timeout", type= "...
|
|
COMPRESS_OPT = cli_option("--compress", dest= "compress", type...
|
|
TRANSPORT_COMPRESSION_OPT = cli_option("--transport-compressio...
|
|
SHUTDOWN_TIMEOUT_OPT = cli_option("--shutdown-timeout", dest= ...
|
|
INTERVAL_OPT = cli_option("--interval", dest= "interval", type...
|
|
EARLY_RELEASE_OPT = cli_option("--early-release", dest= "early...
|
|
NEW_CLUSTER_CERT_OPT = cli_option("--new-cluster-certificate",...
|
|
NEW_NODE_CERT_OPT = cli_option("--new-node-certificates", dest...
|
|
NEW_SSH_KEY_OPT = cli_option("--new-ssh-keys", dest= "new_ssh_...
|
|
RAPI_CERT_OPT = cli_option("--rapi-certificate", dest= "rapi_c...
|
|
NEW_RAPI_CERT_OPT = cli_option("--new-rapi-certificate", dest=...
|
|
SPICE_CERT_OPT = cli_option("--spice-certificate", dest= "spic...
|
|
SPICE_CACERT_OPT = cli_option("--spice-ca-certificate", dest= ...
|
|
NEW_SPICE_CERT_OPT = cli_option("--new-spice-certificate", des...
|
|
NEW_CONFD_HMAC_KEY_OPT = cli_option("--new-confd-hmac-key", de...
|
|
CLUSTER_DOMAIN_SECRET_OPT = cli_option("--cluster-domain-secre...
|
|
NEW_CLUSTER_DOMAIN_SECRET_OPT = cli_option("--new-cluster-doma...
|
|
USE_REPL_NET_OPT = cli_option("--use-replication-network", des...
|
|
MAINTAIN_NODE_HEALTH_OPT = cli_option("--maintain-node-health"...
|
|
IDENTIFY_DEFAULTS_OPT = cli_option("--identify-defaults", dest...
|
|
UIDPOOL_OPT = cli_option("--uid-pool", default= None, action= ...
|
|
ADD_UIDS_OPT = cli_option("--add-uids", default= None, action=...
|
|
REMOVE_UIDS_OPT = cli_option("--remove-uids", default= None, a...
|
|
RESERVED_LVS_OPT = cli_option("--reserved-lvs", default= None,...
|
|
ROMAN_OPT = cli_option("--roman", dest= "roman_integers", defa...
|
|
DRBD_HELPER_OPT = cli_option("--drbd-usermode-helper", dest= "...
|
|
PRIMARY_IP_VERSION_OPT = cli_option("--primary-ip-version", de...
|
|
SHOW_MACHINE_OPT = cli_option("-M", "--show-machine-names", de...
|
|
FAILURE_ONLY_OPT = cli_option("--failure-only", default= False...
|
|
REASON_OPT = cli_option("--reason", default= [], help= "The re...
|
|
PRIORITY_OPT = cli_option("--priority", default= None, dest= "...
|
|
OPPORTUNISTIC_OPT = cli_option("--opportunistic-locking", dest...
|
|
HID_OS_OPT = cli_option("--hidden", dest= "hidden", type= "boo...
|
|
BLK_OS_OPT = cli_option("--blacklisted", dest= "blacklisted", ...
|
|
PREALLOC_WIPE_DISKS_OPT = cli_option("--prealloc-wipe-disks", ...
|
|
NODE_PARAMS_OPT = cli_option("--node-parameters", dest= "ndpar...
|
|
ALLOC_POLICY_OPT = cli_option("--alloc-policy", dest= "alloc_p...
|
|
NODE_POWERED_OPT = cli_option("--node-powered", default= None,...
|
|
OOB_TIMEOUT_OPT = cli_option("--oob-timeout", dest= "oob_timeo...
|
|
POWER_DELAY_OPT = cli_option("--power-delay", dest= "power_del...
|
|
FORCE_FILTER_OPT = cli_option("-F", "--filter", dest= "force_f...
|
|
NO_REMEMBER_OPT = cli_option("--no-remember", dest= "no_rememb...
|
|
PRIMARY_ONLY_OPT = cli_option("-p", "--primary-only", default=...
|
|
SECONDARY_ONLY_OPT = cli_option("-s", "--secondary-only", defa...
|
|
STARTUP_PAUSED_OPT = cli_option("--paused", dest= "startup_pau...
|
|
TO_GROUP_OPT = cli_option("--to", dest= "to", metavar= "<group...
|
|
IGNORE_ERRORS_OPT = cli_option("-I", "--ignore-errors", defaul...
|
|
DISK_STATE_OPT = cli_option("--disk-state", default= [], dest=...
|
|
HV_STATE_OPT = cli_option("--hypervisor-state", default= [], d...
|
|
IGNORE_IPOLICY_OPT = cli_option("--ignore-ipolicy", dest= "ign...
|
|
RUNTIME_MEM_OPT = cli_option("-m", "--runtime-memory", dest= "...
|
|
ABSOLUTE_OPT = cli_option("--absolute", dest= "absolute", acti...
|
|
NETWORK_OPT = cli_option("--network", action= "store", default...
|
|
GATEWAY_OPT = cli_option("--gateway", action= "store", default...
|
|
ADD_RESERVED_IPS_OPT = cli_option("--add-reserved-ips", action...
|
|
REMOVE_RESERVED_IPS_OPT = cli_option("--remove-reserved-ips", ...
|
|
NETWORK6_OPT = cli_option("--network6", action= "store", defau...
|
|
GATEWAY6_OPT = cli_option("--gateway6", action= "store", defau...
|
|
NOCONFLICTSCHECK_OPT = cli_option("--no-conflicts-check", dest...
|
|
INCLUDEDEFAULTS_OPT = cli_option("--include-defaults", dest= "...
|
|
HOTPLUG_OPT = cli_option("--hotplug", dest= "hotplug", action=...
|
|
HOTPLUG_IF_POSSIBLE_OPT = cli_option("--hotplug-if-possible", ...
|
|
INSTALL_IMAGE_OPT = cli_option("--install-image", dest= "insta...
|
|
INSTANCE_COMMUNICATION_OPT = cli_option("-c", "--communication...
|
|
INSTANCE_COMMUNICATION_NETWORK_OPT = cli_option("--instance-co...
|
|
ZEROING_IMAGE_OPT = cli_option("--zeroing-image", dest= "zeroi...
|
|
ZERO_FREE_SPACE_OPT = cli_option("--zero-free-space", dest= "z...
|
|
HELPER_STARTUP_TIMEOUT_OPT = cli_option("--helper-startup-time...
|
|
HELPER_SHUTDOWN_TIMEOUT_OPT = cli_option("--helper-shutdown-ti...
|
|
ZEROING_TIMEOUT_FIXED_OPT = cli_option("--zeroing-timeout-fixe...
|
|
ZEROING_TIMEOUT_PER_MIB_OPT = cli_option("--zeroing-timeout-pe...
|
|
ENABLED_DATA_COLLECTORS_OPT = cli_option("--enabled-data-colle...
|
|
VERIFY_CLUTTER_OPT = cli_option("--verify-ssh-clutter", defaul...
|
|
LONG_SLEEP_OPT = cli_option("--long-sleep", default= False, de...
|
|
COMMON_OPTS = [DEBUG_OPT, REASON_OPT]
Options provided by all commands
|
|
SUBMIT_OPTS = [SUBMIT_OPT, PRINT_JOBID_OPT,]
|
|
COMMON_CREATE_OPTS = [BACKEND_OPT, DISK_OPT, DISK_TEMPLATE_OPT...
|
|
INSTANCE_POLICY_OPTS = [IPOLICY_BOUNDS_SPECS_OPT, IPOLICY_DISK...
|
|
SPLIT_ISPECS_OPTS = [SPECS_CPU_COUNT_OPT, SPECS_DISK_COUNT_OPT...
|