Revision d0c8c01d lib/client/gnt_cluster.py

b/lib/client/gnt_cluster.py
1242 1242

  
1243 1243

  
1244 1244
commands = {
1245
  'init': (
1245
  "init": (
1246 1246
    InitCluster, [ArgHost(min=1, max=1)],
1247 1247
    [BACKEND_OPT, CP_SIZE_OPT, ENABLED_HV_OPT, GLOBAL_FILEDIR_OPT,
1248 1248
     HVLIST_OPT, MAC_PREFIX_OPT, MASTER_NETDEV_OPT, NIC_PARAMS_OPT,
......
1252 1252
     DEFAULT_IALLOCATOR_OPT, PRIMARY_IP_VERSION_OPT, PREALLOC_WIPE_DISKS_OPT,
1253 1253
     NODE_PARAMS_OPT, GLOBAL_SHARED_FILEDIR_OPT],
1254 1254
    "[opts...] <cluster_name>", "Initialises a new cluster configuration"),
1255
  'destroy': (
1255
  "destroy": (
1256 1256
    DestroyCluster, ARGS_NONE, [YES_DOIT_OPT],
1257 1257
    "", "Destroy cluster"),
1258
  'rename': (
1258
  "rename": (
1259 1259
    RenameCluster, [ArgHost(min=1, max=1)],
1260 1260
    [FORCE_OPT, DRY_RUN_OPT],
1261 1261
    "<new_name>",
1262 1262
    "Renames the cluster"),
1263
  'redist-conf': (
1263
  "redist-conf": (
1264 1264
    RedistributeConfig, ARGS_NONE, [SUBMIT_OPT, DRY_RUN_OPT, PRIORITY_OPT],
1265 1265
    "", "Forces a push of the configuration file and ssconf files"
1266 1266
    " to the nodes in the cluster"),
1267
  'verify': (
1267
  "verify": (
1268 1268
    VerifyCluster, ARGS_NONE,
1269 1269
    [VERBOSE_OPT, DEBUG_SIMERR_OPT, ERROR_CODES_OPT, NONPLUS1_OPT,
1270 1270
     DRY_RUN_OPT, PRIORITY_OPT, NODEGROUP_OPT],
1271 1271
    "", "Does a check on the cluster configuration"),
1272
  'verify-disks': (
1272
  "verify-disks": (
1273 1273
    VerifyDisks, ARGS_NONE, [PRIORITY_OPT],
1274 1274
    "", "Does a check on the cluster disk status"),
1275
  'repair-disk-sizes': (
1275
  "repair-disk-sizes": (
1276 1276
    RepairDiskSizes, ARGS_MANY_INSTANCES, [DRY_RUN_OPT, PRIORITY_OPT],
1277 1277
    "", "Updates mismatches in recorded disk sizes"),
1278
  'master-failover': (
1278
  "master-failover": (
1279 1279
    MasterFailover, ARGS_NONE, [NOVOTING_OPT],
1280 1280
    "", "Makes the current node the master"),
1281
  'master-ping': (
1281
  "master-ping": (
1282 1282
    MasterPing, ARGS_NONE, [],
1283 1283
    "", "Checks if the master is alive"),
1284
  'version': (
1284
  "version": (
1285 1285
    ShowClusterVersion, ARGS_NONE, [],
1286 1286
    "", "Shows the cluster version"),
1287
  'getmaster': (
1287
  "getmaster": (
1288 1288
    ShowClusterMaster, ARGS_NONE, [],
1289 1289
    "", "Shows the cluster master"),
1290
  'copyfile': (
1290
  "copyfile": (
1291 1291
    ClusterCopyFile, [ArgFile(min=1, max=1)],
1292 1292
    [NODE_LIST_OPT, USE_REPL_NET_OPT, NODEGROUP_OPT],
1293 1293
    "[-n node...] <filename>", "Copies a file to all (or only some) nodes"),
1294
  'command': (
1294
  "command": (
1295 1295
    RunClusterCommand, [ArgCommand(min=1)],
1296 1296
    [NODE_LIST_OPT, NODEGROUP_OPT],
1297 1297
    "[-n node...] <command>", "Runs a command on all (or only some) nodes"),
1298
  'info': (
1298
  "info": (
1299 1299
    ShowClusterConfig, ARGS_NONE, [ROMAN_OPT],
1300 1300
    "[--roman]", "Show cluster configuration"),
1301
  'list-tags': (
1301
  "list-tags": (
1302 1302
    ListTags, ARGS_NONE, [], "", "List the tags of the cluster"),
1303
  'add-tags': (
1303
  "add-tags": (
1304 1304
    AddTags, [ArgUnknown()], [TAG_SRC_OPT, PRIORITY_OPT],
1305 1305
    "tag...", "Add tags to the cluster"),
1306
  'remove-tags': (
1306
  "remove-tags": (
1307 1307
    RemoveTags, [ArgUnknown()], [TAG_SRC_OPT, PRIORITY_OPT],
1308 1308
    "tag...", "Remove tags from the cluster"),
1309
  'search-tags': (
1309
  "search-tags": (
1310 1310
    SearchTags, [ArgUnknown(min=1, max=1)], [PRIORITY_OPT], "",
1311 1311
    "Searches the tags on all objects on"
1312 1312
    " the cluster for a given pattern (regex)"),
1313
  'queue': (
1313
  "queue": (
1314 1314
    QueueOps,
1315 1315
    [ArgChoice(min=1, max=1, choices=["drain", "undrain", "info"])],
1316 1316
    [], "drain|undrain|info", "Change queue properties"),
1317
  'watcher': (
1317
  "watcher": (
1318 1318
    WatcherOps,
1319 1319
    [ArgChoice(min=1, max=1, choices=["pause", "continue", "info"]),
1320 1320
     ArgSuggest(min=0, max=1, choices=["30m", "1h", "4h"])],
1321 1321
    [],
1322 1322
    "{pause <timespec>|continue|info}", "Change watcher properties"),
1323
  'modify': (
1323
  "modify": (
1324 1324
    SetClusterParams, ARGS_NONE,
1325 1325
    [BACKEND_OPT, CP_SIZE_OPT, ENABLED_HV_OPT, HVLIST_OPT, MASTER_NETDEV_OPT,
1326 1326
     NIC_PARAMS_OPT, NOLVM_STORAGE_OPT, VG_NAME_OPT, MAINTAIN_NODE_HEALTH_OPT,
......
1347 1347

  
1348 1348
#: dictionary with aliases for commands
1349 1349
aliases = {
1350
  'masterfailover': 'master-failover',
1350
  "masterfailover": "master-failover",
1351 1351
}
1352 1352

  
1353 1353

  

Also available in: Unified diff