88cb20e9f5
+ fence_cisco_ucs: Obtain status of device from different endpoint + fence_cisco_ucs: Add --missing-as-off - Patches for fence_compute (fate#320346) - fence_compute: Add --insecure command line argument - fence_compute: Add --region-name command line argument - fence_compute: Create nova client with API 2.11 - fence_compute: Fix disabling force_down on node when action is on - fence_compute: Evacuate instances on all tenants - fence_compute: On list, don't list hypervisors but nova-compute services - fence_compute: Only list nova-compute services when getting status - fence_compute: Deprecate the domain option - Add 0001-fence_compute-Add-insecure-command-line-argument.patch - Add 0002-fence_compute-Add-region-name-command-line-argument.patch - Add 0003-fence_compute-Create-nova-client-with-API-2.11.patch - Add 0004-fence_compute-Fix-disabling-force_down-on-node-when-.patch - Add 0005-fence_compute-Evacuate-instances-on-all-tenants.patch - Add 0006-fence_compute-On-list-don-t-list-hypervisors-but-nov.patch - Add 0007-fence_compute-Only-list-nova-compute-services-when-g.patch - Add 0008-fence_compute-Deprecate-the-domain-option.patch OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/fence-agents?expand=0&rev=49
61 lines
2.3 KiB
Diff
61 lines
2.3 KiB
Diff
From 79d653464fa85cf09c98014f82b5874de250944b Mon Sep 17 00:00:00 2001
|
|
From: Vincent Untz <vuntz@suse.com>
|
|
Date: Thu, 4 Feb 2016 10:08:20 +0100
|
|
Subject: [PATCH 8/8] fence_compute: Deprecate the domain option
|
|
|
|
As far as I understand, this should not be needed anymore: the domain
|
|
option was really only useful to translate between hypervisor hostname
|
|
and nova service hostname, and we don't get hypervisor hostnames
|
|
anywhere anymore.
|
|
|
|
The option is left around to not break existing configurations that are
|
|
using it.
|
|
---
|
|
fence/agents/compute/fence_compute.py | 8 ++------
|
|
tests/data/metadata/fence_compute.xml | 2 +-
|
|
2 files changed, 3 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
|
|
index 0273aa2..eccab99 100644
|
|
--- a/fence/agents/compute/fence_compute.py
|
|
+++ b/fence/agents/compute/fence_compute.py
|
|
@@ -257,9 +257,9 @@ def define_new_opts():
|
|
all_opt["domain"] = {
|
|
"getopt" : "d:",
|
|
"longopt" : "domain",
|
|
- "help" : "-d, --domain=[string] DNS domain in which hosts live, useful when the cluster uses short names and nova uses FQDN",
|
|
+ "help" : "-d, --domain=[string] Deprecated option; do not do anything anymore",
|
|
"required" : "0",
|
|
- "shortdesc" : "DNS domain in which hosts live",
|
|
+ "shortdesc" : "Deprecated option",
|
|
"default" : "",
|
|
"order": 5,
|
|
}
|
|
@@ -318,10 +318,6 @@ def main():
|
|
except ImportError:
|
|
fail_usage("nova not found or not accessible")
|
|
|
|
- # Potentially we should make this a pacemaker feature
|
|
- if options["--action"] != "list" and options["--domain"] != "" and options.has_key("--plug"):
|
|
- options["--plug"] = options["--plug"] + "." + options["--domain"]
|
|
-
|
|
if options["--record-only"] in [ "2", "Disabled", "disabled" ]:
|
|
sys.exit(0)
|
|
|
|
diff --git a/tests/data/metadata/fence_compute.xml b/tests/data/metadata/fence_compute.xml
|
|
index e5c112c..82e0fde 100644
|
|
--- a/tests/data/metadata/fence_compute.xml
|
|
+++ b/tests/data/metadata/fence_compute.xml
|
|
@@ -56,7 +56,7 @@
|
|
<parameter name="domain" unique="0" required="0">
|
|
<getopt mixed="-d, --domain=[string]" />
|
|
<content type="string" default="" />
|
|
- <shortdesc lang="en">DNS domain in which hosts live</shortdesc>
|
|
+ <shortdesc lang="en">Deprecated option</shortdesc>
|
|
</parameter>
|
|
<parameter name="instance-filtering" unique="0" required="0">
|
|
<getopt mixed="--instance-filtering" />
|
|
--
|
|
2.6.2
|
|
|