|
|
e4ffb1 |
diff -uNr a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
|
|
|
e4ffb1 |
--- a/fence/agents/compute/fence_compute.py 2017-07-24 12:16:11.193996848 +0200
|
|
|
e4ffb1 |
+++ b/fence/agents/compute/fence_compute.py 2017-07-24 12:18:18.012271280 +0200
|
|
|
e4ffb1 |
@@ -367,7 +367,7 @@
|
|
|
e4ffb1 |
logging.warning("Couldn't obtain a supported connection to nova, tried: %s\n" % repr(versions))
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
def define_new_opts():
|
|
|
e4ffb1 |
- all_opt["endpoint-type"] = {
|
|
|
e4ffb1 |
+ all_opt["endpoint_type"] = {
|
|
|
e4ffb1 |
"getopt" : "e:",
|
|
|
e4ffb1 |
"longopt" : "endpoint-type",
|
|
|
e4ffb1 |
"help" : "-e, --endpoint-type=[endpoint] Nova Endpoint type (publicURL, internalURL, adminURL)",
|
|
|
e4ffb1 |
@@ -376,7 +376,7 @@
|
|
|
e4ffb1 |
"default" : "internalURL",
|
|
|
e4ffb1 |
"order": 1,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["tenant-name"] = {
|
|
|
e4ffb1 |
+ all_opt["tenant_name"] = {
|
|
|
e4ffb1 |
"getopt" : "t:",
|
|
|
e4ffb1 |
"longopt" : "tenant-name",
|
|
|
e4ffb1 |
"help" : "-t, --tenant-name=[tenant] Keystone Admin Tenant",
|
|
|
e4ffb1 |
@@ -385,7 +385,7 @@
|
|
|
e4ffb1 |
"default" : "",
|
|
|
e4ffb1 |
"order": 1,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["auth-url"] = {
|
|
|
e4ffb1 |
+ all_opt["auth_url"] = {
|
|
|
e4ffb1 |
"getopt" : "k:",
|
|
|
e4ffb1 |
"longopt" : "auth-url",
|
|
|
e4ffb1 |
"help" : "-k, --auth-url=[url] Keystone Admin Auth URL",
|
|
|
e4ffb1 |
@@ -394,7 +394,7 @@
|
|
|
e4ffb1 |
"default" : "",
|
|
|
e4ffb1 |
"order": 1,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["region-name"] = {
|
|
|
e4ffb1 |
+ all_opt["region_name"] = {
|
|
|
e4ffb1 |
"getopt" : "",
|
|
|
e4ffb1 |
"longopt" : "region-name",
|
|
|
e4ffb1 |
"help" : "--region-name=[region] Region Name",
|
|
|
e4ffb1 |
@@ -420,7 +420,7 @@
|
|
|
e4ffb1 |
"shortdesc" : "DNS domain in which hosts live",
|
|
|
e4ffb1 |
"order": 5,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["record-only"] = {
|
|
|
e4ffb1 |
+ all_opt["record_only"] = {
|
|
|
e4ffb1 |
"getopt" : "r:",
|
|
|
e4ffb1 |
"longopt" : "record-only",
|
|
|
e4ffb1 |
"help" : "--record-only Record the target as needing evacuation but as yet do not intiate it",
|
|
|
e4ffb1 |
@@ -429,7 +429,7 @@
|
|
|
e4ffb1 |
"default" : "False",
|
|
|
e4ffb1 |
"order": 5,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["instance-filtering"] = {
|
|
|
e4ffb1 |
+ all_opt["instance_filtering"] = {
|
|
|
e4ffb1 |
"getopt" : "",
|
|
|
e4ffb1 |
"longopt" : "instance-filtering",
|
|
|
e4ffb1 |
"help" : "--instance-filtering Allow instances created from images and flavors with evacuable=true to be evacuated (or all if no images/flavors have been tagged)",
|
|
|
e4ffb1 |
@@ -438,7 +438,7 @@
|
|
|
e4ffb1 |
"default" : "True",
|
|
|
e4ffb1 |
"order": 5,
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["no-shared-storage"] = {
|
|
|
e4ffb1 |
+ all_opt["no_shared_storage"] = {
|
|
|
e4ffb1 |
"getopt" : "",
|
|
|
e4ffb1 |
"longopt" : "no-shared-storage",
|
|
|
e4ffb1 |
"help" : "--no-shared-storage Disable functionality for shared storage",
|
|
|
e4ffb1 |
@@ -452,9 +452,9 @@
|
|
|
e4ffb1 |
global override_status
|
|
|
e4ffb1 |
atexit.register(atexit_handler)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
- device_opt = ["login", "passwd", "tenant-name", "auth-url", "fabric_fencing",
|
|
|
e4ffb1 |
- "no_login", "no_password", "port", "domain", "no-shared-storage", "endpoint-type",
|
|
|
e4ffb1 |
- "record-only", "instance-filtering", "insecure", "region-name"]
|
|
|
e4ffb1 |
+ device_opt = ["login", "passwd", "tenant_name", "auth_url", "fabric_fencing",
|
|
|
e4ffb1 |
+ "no_login", "no_password", "port", "domain", "no_shared_storage", "endpoint_type",
|
|
|
e4ffb1 |
+ "record_only", "instance_filtering", "insecure", "region_name"]
|
|
|
e4ffb1 |
define_new_opts()
|
|
|
e4ffb1 |
all_opt["shell_timeout"]["default"] = "180"
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
diff -uNr a/fence/agents/scsi/fence_scsi.py b/fence/agents/scsi/fence_scsi.py
|
|
|
e4ffb1 |
--- a/fence/agents/scsi/fence_scsi.py 2017-07-24 12:16:11.135997637 +0200
|
|
|
e4ffb1 |
+++ b/fence/agents/scsi/fence_scsi.py 2017-07-24 12:20:21.987584397 +0200
|
|
|
e4ffb1 |
@@ -332,7 +332,7 @@
|
|
|
e4ffb1 |
"shortdesc" : "Log output (stdout and stderr) to file",
|
|
|
e4ffb1 |
"order": 5
|
|
|
e4ffb1 |
}
|
|
|
e4ffb1 |
- all_opt["corosync-cmap_path"] = {
|
|
|
e4ffb1 |
+ all_opt["corosync_cmap_path"] = {
|
|
|
e4ffb1 |
"getopt" : "Z:",
|
|
|
e4ffb1 |
"longopt" : "corosync-cmap-path",
|
|
|
e4ffb1 |
"help" : "--corosync-cmap-path=[path] Path to corosync-cmapctl binary",
|
|
|
e4ffb1 |
@@ -416,7 +416,7 @@
|
|
|
e4ffb1 |
atexit.register(atexit_handler)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
device_opt = ["no_login", "no_password", "devices", "nodename", "key",\
|
|
|
e4ffb1 |
- "aptpl", "fabric_fencing", "on_target", "corosync-cmap_path",\
|
|
|
e4ffb1 |
+ "aptpl", "fabric_fencing", "on_target", "corosync_cmap_path",\
|
|
|
e4ffb1 |
"sg_persist_path", "sg_turs_path", "logfile", "vgs_path", "force_on"]
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
define_new_opts()
|