|
|
e4ffb1 |
diff -uNr a/configure.ac b/configure.ac
|
|
|
e4ffb1 |
--- a/configure.ac 2017-03-03 10:46:36.346404128 +0100
|
|
|
e4ffb1 |
+++ b/configure.ac 2017-03-03 11:18:02.533241361 +0100
|
|
|
e4ffb1 |
@@ -258,6 +258,7 @@
|
|
|
e4ffb1 |
CPPFLAGS="-I\$(top_builddir)/make -I\$(top_srcdir)/make -I. $ENV_CPPFLAGS"
|
|
|
e4ffb1 |
LDFLAGS="$ENV_LDFLAGS"
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
+AM_EXTRA_RECURSIVE_TARGETS([xml-upload])
|
|
|
e4ffb1 |
AC_CONFIG_FILES([Makefile
|
|
|
e4ffb1 |
fence/Makefile
|
|
|
e4ffb1 |
fence/agents/Makefile
|
|
|
e4ffb1 |
diff -uNr a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
|
|
|
e4ffb1 |
--- a/fence/agents/lib/fencing.py.py 2017-03-03 10:46:36.349404099 +0100
|
|
|
e4ffb1 |
+++ b/fence/agents/lib/fencing.py.py 2017-03-03 11:18:02.534241351 +0100
|
|
|
e4ffb1 |
@@ -69,6 +69,7 @@
|
|
|
e4ffb1 |
"delay" : {
|
|
|
e4ffb1 |
"getopt" : "f:",
|
|
|
e4ffb1 |
"longopt" : "delay",
|
|
|
e4ffb1 |
+ "type" : "second",
|
|
|
e4ffb1 |
"help" : "--delay=[seconds] Wait X seconds before fencing is started",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
"shortdesc" : "Wait X seconds before fencing is started",
|
|
|
e4ffb1 |
@@ -108,6 +109,7 @@
|
|
|
e4ffb1 |
"ipport" : {
|
|
|
e4ffb1 |
"getopt" : "u:",
|
|
|
e4ffb1 |
"longopt" : "ipport",
|
|
|
e4ffb1 |
+ "type" : "integer",
|
|
|
e4ffb1 |
"help" : "-u, --ipport=[port] TCP/UDP port to use",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
"shortdesc" : "TCP/UDP port to use for connection with device",
|
|
|
e4ffb1 |
@@ -340,6 +342,7 @@
|
|
|
e4ffb1 |
"login_timeout" : {
|
|
|
e4ffb1 |
"getopt" : "y:",
|
|
|
e4ffb1 |
"longopt" : "login-timeout",
|
|
|
e4ffb1 |
+ "type" : "second",
|
|
|
e4ffb1 |
"help" : "--login-timeout=[seconds] Wait X seconds for cmd prompt after login",
|
|
|
e4ffb1 |
"default" : "5",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
@@ -348,6 +351,7 @@
|
|
|
e4ffb1 |
"shell_timeout" : {
|
|
|
e4ffb1 |
"getopt" : "Y:",
|
|
|
e4ffb1 |
"longopt" : "shell-timeout",
|
|
|
e4ffb1 |
+ "type" : "second",
|
|
|
e4ffb1 |
"help" : "--shell-timeout=[seconds] Wait X seconds for cmd prompt after issuing command",
|
|
|
e4ffb1 |
"default" : "3",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
@@ -356,6 +360,7 @@
|
|
|
e4ffb1 |
"power_timeout" : {
|
|
|
e4ffb1 |
"getopt" : "g:",
|
|
|
e4ffb1 |
"longopt" : "power-timeout",
|
|
|
e4ffb1 |
+ "type" : "second",
|
|
|
e4ffb1 |
"help" : "--power-timeout=[seconds] Test X seconds for status change after ON/OFF",
|
|
|
e4ffb1 |
"default" : "20",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
@@ -364,6 +369,7 @@
|
|
|
e4ffb1 |
"power_wait" : {
|
|
|
e4ffb1 |
"getopt" : "G:",
|
|
|
e4ffb1 |
"longopt" : "power-wait",
|
|
|
e4ffb1 |
+ "type" : "second",
|
|
|
e4ffb1 |
"help" : "--power-wait=[seconds] Wait X seconds after issuing ON/OFF",
|
|
|
e4ffb1 |
"default" : "0",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
@@ -379,6 +385,7 @@
|
|
|
e4ffb1 |
"retry_on" : {
|
|
|
e4ffb1 |
"getopt" : "F:",
|
|
|
e4ffb1 |
"longopt" : "retry-on",
|
|
|
e4ffb1 |
+ "type" : "integer",
|
|
|
e4ffb1 |
"help" : "--retry-on=[attempts] Count of attempts to retry power on",
|
|
|
e4ffb1 |
"default" : "1",
|
|
|
e4ffb1 |
"required" : "0",
|
|
|
e4ffb1 |
@@ -567,7 +574,8 @@
|
|
|
e4ffb1 |
print "\t\t\t<option value=\"%s\" />" % (choice)
|
|
|
e4ffb1 |
print "\t\t</content>"
|
|
|
e4ffb1 |
elif all_opt[option]["getopt"].count(":") > 0:
|
|
|
e4ffb1 |
- print "\t\t<content type=\"string\" "+default+" />"
|
|
|
e4ffb1 |
+ t = all_opt[option].get("type", "string")
|
|
|
e4ffb1 |
+ print("\t\t<content type=\"%s\" " % (t) +default+" />")
|
|
|
e4ffb1 |
else:
|
|
|
e4ffb1 |
print "\t\t<content type=\"boolean\" "+default+" />"
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
@@ -859,6 +867,14 @@
|
|
|
e4ffb1 |
"for %s from the valid values: %s" % \
|
|
|
e4ffb1 |
("--" + all_opt[opt]["longopt"], str(all_opt[opt]["choices"])))
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
+ for failed_opt in _get_opts_with_invalid_types(options):
|
|
|
e4ffb1 |
+ valid_input = False
|
|
|
e4ffb1 |
+ if all_opt[failed_opt]["type"] == "second":
|
|
|
e4ffb1 |
+ fail_usage("Failed: The value you have entered for %s is not a valid time in seconds" % \
|
|
|
e4ffb1 |
+ ("--" + all_opt[failed_opt]["longopt"]))
|
|
|
e4ffb1 |
+ else:
|
|
|
e4ffb1 |
+ fail_usage("Failed: The value you have entered for %s is not a valid %s" % \
|
|
|
e4ffb1 |
+ ("--" + all_opt[failed_opt]["longopt"], all_opt[failed_opt]["type"]))
|
|
|
e4ffb1 |
return options
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
## Obtain a power status from possibly more than one plug
|
|
|
e4ffb1 |
@@ -1265,3 +1281,18 @@
|
|
|
e4ffb1 |
# syslos.syslog can not have 0x00 character inside or exception is thrown
|
|
|
e4ffb1 |
syslog.syslog(syslog_level, msg.replace("\x00","\n"))
|
|
|
e4ffb1 |
return
|
|
|
e4ffb1 |
+
|
|
|
e4ffb1 |
+def _get_opts_with_invalid_types(options):
|
|
|
e4ffb1 |
+ options_failed = []
|
|
|
e4ffb1 |
+ device_opt = options["device_opt"]
|
|
|
e4ffb1 |
+
|
|
|
e4ffb1 |
+ for opt in device_opt:
|
|
|
e4ffb1 |
+ if "type" in all_opt[opt]:
|
|
|
e4ffb1 |
+ longopt = "--" + all_opt[opt]["longopt"]
|
|
|
e4ffb1 |
+ if longopt in options:
|
|
|
e4ffb1 |
+ if all_opt[opt]["type"] in ["integer", "second"]:
|
|
|
e4ffb1 |
+ try:
|
|
|
e4ffb1 |
+ number = int(options["--" + all_opt[opt]["longopt"]])
|
|
|
e4ffb1 |
+ except ValueError:
|
|
|
e4ffb1 |
+ options_failed.append(opt)
|
|
|
e4ffb1 |
+ return options_failed
|
|
|
e4ffb1 |
diff -uNr a/fence/agents/lib/metadata.rng b/fence/agents/lib/metadata.rng
|
|
|
e4ffb1 |
--- a/fence/agents/lib/metadata.rng 2014-08-06 09:35:08.000000000 +0200
|
|
|
e4ffb1 |
+++ b/fence/agents/lib/metadata.rng 2017-03-03 11:18:02.534241351 +0100
|
|
|
e4ffb1 |
@@ -29,6 +29,8 @@
|
|
|
e4ffb1 |
<choice>
|
|
|
e4ffb1 |
<value>boolean</value>
|
|
|
e4ffb1 |
<value>string</value>
|
|
|
e4ffb1 |
+ <value>second</value>
|
|
|
e4ffb1 |
+ <value>integer</value>
|
|
|
e4ffb1 |
</choice>
|
|
|
e4ffb1 |
</attribute>
|
|
|
e4ffb1 |
<group>
|
|
|
e4ffb1 |
diff -uNr a/fence/agents/zvm/fence_zvmip.py b/fence/agents/zvm/fence_zvmip.py
|
|
|
e4ffb1 |
--- a/fence/agents/zvm/fence_zvmip.py 2017-03-03 10:46:36.279404777 +0100
|
|
|
e4ffb1 |
+++ b/fence/agents/zvm/fence_zvmip.py 2017-03-03 11:18:02.534241351 +0100
|
|
|
e4ffb1 |
@@ -156,7 +156,7 @@
|
|
|
e4ffb1 |
atexit.register(atexit_handler)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
all_opt["ipport"]["default"] = "44444"
|
|
|
e4ffb1 |
- all_opt["shell_timeout"]["default"] = "5.0"
|
|
|
e4ffb1 |
+ all_opt["shell_timeout"]["default"] = "5"
|
|
|
e4ffb1 |
all_opt["missing_as_off"]["default"] = "1"
|
|
|
e4ffb1 |
options = check_input(device_opt, process_input(device_opt))
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
diff -uNr a/make/agentccheck.mk b/make/agentccheck.mk
|
|
|
e4ffb1 |
--- a/make/agentccheck.mk 2017-03-03 10:46:36.256405000 +0100
|
|
|
e4ffb1 |
+++ b/make/agentccheck.mk 2017-03-03 11:18:02.534241351 +0100
|
|
|
e4ffb1 |
@@ -2,6 +2,7 @@
|
|
|
e4ffb1 |
DATADIR:=$(abs_top_srcdir)/tests/data/metadata
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
check: $(TARGET:%=xml-check.%) $(SYMTARGET:%=xml-check.%)
|
|
|
e4ffb1 |
+xml-upload: $(TARGET:%=xml-upload.%) $(SYMTARGET:%=xml-upload.%)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
xml-check.%: %
|
|
|
e4ffb1 |
$(eval INPUT=$(subst xml-check.,,$@))
|
|
|
e4ffb1 |
diff -uNr a/make/agentpycheck.mk b/make/agentpycheck.mk
|
|
|
e4ffb1 |
--- a/make/agentpycheck.mk 2017-03-03 10:46:36.257404990 +0100
|
|
|
e4ffb1 |
+++ b/make/agentpycheck.mk 2017-03-03 11:18:02.534241351 +0100
|
|
|
e4ffb1 |
@@ -1,18 +1,19 @@
|
|
|
e4ffb1 |
TEMPFILE:=$(shell mktemp)
|
|
|
e4ffb1 |
-#DATADIR:=$(abs_top_builddir)/tests/data/metadata
|
|
|
e4ffb1 |
DATADIR:=$(abs_top_srcdir)/tests/data/metadata
|
|
|
e4ffb1 |
+AWK_VAL='BEGIN {store=-1} /name=\".*_path\"/ {store=2} {if (store!=0) {print}; store--}'
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
check: $(TARGET:%=xml-check.%) $(SYMTARGET:%=xml-check.%) $(TARGET:%=delay-check.%)
|
|
|
e4ffb1 |
+xml-upload: $(TARGET:%=xml-upload.%) $(SYMTARGET:%=xml-upload.%)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
xml-check.%: %
|
|
|
e4ffb1 |
$(eval INPUT=$(subst xml-check.,,$@))
|
|
|
e4ffb1 |
- PYTHONPATH=$(abs_srcdir)/../lib:$(abs_builddir)/../lib python ./$(INPUT) -o metadata > $(TEMPFILE)
|
|
|
e4ffb1 |
+ PYTHONPATH=$(abs_srcdir)/../lib:$(abs_builddir)/../lib python ./$(INPUT) -o metadata | $(AWK) $(AWK_VAL) > $(TEMPFILE)
|
|
|
e4ffb1 |
diff $(TEMPFILE) $(DATADIR)/$(INPUT).xml
|
|
|
e4ffb1 |
rm $(TEMPFILE)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
xml-upload.%: %
|
|
|
e4ffb1 |
$(eval INPUT=$(subst xml-upload.,,$@))
|
|
|
e4ffb1 |
- PYTHONPATH=$(abs_srcdir)/../lib:$(abs_builddir)/../lib python ./$(INPUT) -o metadata > $(DATADIR)/$(INPUT).xml
|
|
|
e4ffb1 |
+ PYTHONPATH=$(abs_srcdir)/../lib:$(abs_builddir)/../lib python ./$(INPUT) -o metadata | $(AWK) $(AWK_VAL) > $(DATADIR)/$(INPUT).xml
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
# If test will fail, rerun fence agents to show problems
|
|
|
e4ffb1 |
delay-check.%: %
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_alom.xml b/tests/data/metadata/fence_alom.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_alom.xml 2017-03-03 10:46:36.297404603 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_alom.xml 2017-03-03 11:18:37.279904806 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="22" />
|
|
|
e4ffb1 |
+ <content type="integer" default="22" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -90,27 +90,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -120,7 +120,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_amt.xml b/tests/data/metadata/fence_amt.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_amt.xml 2017-03-03 10:46:36.297404603 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_amt.xml 2017-03-03 11:18:38.389894055 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -84,32 +84,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="amttool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--amttool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/amttool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to amttool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -119,7 +118,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_apc_snmp.xml b/tests/data/metadata/fence_apc_snmp.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_apc_snmp.xml 2017-03-03 10:46:36.291404661 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_apc_snmp.xml 2017-03-03 11:18:38.158896292 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_apc.xml b/tests/data/metadata/fence_apc.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_apc.xml 2017-03-03 10:46:36.291404661 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_apc.xml 2017-03-03 11:18:38.806890016 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -100,32 +100,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_bladecenter.xml b/tests/data/metadata/fence_bladecenter.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_bladecenter.xml 2017-03-03 10:46:36.291404661 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_bladecenter.xml 2017-03-03 11:18:38.428893677 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,27 +95,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="10" />
|
|
|
e4ffb1 |
+ <content type="second" default="10" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -125,7 +125,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_brocade.xml b/tests/data/metadata/fence_brocade.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_brocade.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_brocade.xml 2017-03-03 11:18:38.582892186 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,32 +95,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_cisco_mds.xml b/tests/data/metadata/fence_cisco_mds.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_cisco_mds.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_cisco_mds.xml 2017-03-03 11:18:38.844889648 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_cisco_ucs.xml b/tests/data/metadata/fence_cisco_ucs.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_cisco_ucs.xml 2017-03-03 10:46:36.321404371 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_cisco_ucs.xml 2017-03-03 11:18:38.768890384 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="80" />
|
|
|
e4ffb1 |
+ <content type="integer" default="80" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="notls" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -100,22 +100,22 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -125,12 +125,12 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_compute.xml b/tests/data/metadata/fence_compute.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_compute.xml 2017-03-03 10:46:36.335404235 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_compute.xml 2017-03-03 11:18:39.219886015 +0100
|
|
|
e4ffb1 |
@@ -3,6 +3,11 @@
|
|
|
e4ffb1 |
<longdesc>Used to tell Nova that compute nodes are down and to reschedule flagged instances</longdesc>
|
|
|
e4ffb1 |
<vendor-url></vendor-url>
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
+ <parameter name="region-name" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--region-name=[region]" />
|
|
|
e4ffb1 |
+ <content type="boolean" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Region Name</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
<getopt mixed="-n, --plug=[id]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
@@ -14,7 +19,7 @@
|
|
|
e4ffb1 |
<shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="auth-url" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-k, --auth-url=[tenant]" />
|
|
|
e4ffb1 |
+ <getopt mixed="-k, --auth-url=[url]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Keystone Admin Auth URL</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
@@ -43,6 +48,11 @@
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Login Name</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
+ <parameter name="insecure" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--insecure" />
|
|
|
e4ffb1 |
+ <content type="boolean" default="False" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Allow Insecure TLS Requests</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
<parameter name="domain" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-d, --domain=[string]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
@@ -90,32 +100,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="180" />
|
|
|
e4ffb1 |
+ <content type="second" default="180" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_docker.xml b/tests/data/metadata/fence_docker.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_docker.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_docker.xml 2017-03-03 11:18:37.620901503 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="80" />
|
|
|
e4ffb1 |
+ <content type="integer" default="80" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ssl_secure" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -98,32 +98,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_drac5.xml b/tests/data/metadata/fence_drac5.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_drac5.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_drac5.xml 2017-03-03 11:18:37.317904438 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -104,32 +104,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_drac.xml b/tests/data/metadata/fence_drac.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_drac.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_drac.xml 2017-03-03 11:18:38.234895556 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -75,27 +75,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -105,7 +105,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_dummy.xml b/tests/data/metadata/fence_dummy.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_dummy.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_dummy.xml 2017-03-03 11:18:37.433903315 +0100
|
|
|
e4ffb1 |
@@ -45,32 +45,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_eaton_snmp.xml b/tests/data/metadata/fence_eaton_snmp.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_eaton_snmp.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_eaton_snmp.xml 2017-03-03 11:18:38.541892583 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="2" />
|
|
|
e4ffb1 |
+ <content type="second" default="2" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_emerson.xml b/tests/data/metadata/fence_emerson.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_emerson.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_emerson.xml 2017-03-03 11:18:38.120896660 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_eps.xml b/tests/data/metadata/fence_eps.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_eps.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_eps.xml 2017-03-03 11:18:37.477902888 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -82,32 +82,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_hds_cb.xml b/tests/data/metadata/fence_hds_cb.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_hds_cb.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_hds_cb.xml 2017-03-03 11:18:38.196895924 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,27 +95,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -125,7 +125,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_hpblade.xml b/tests/data/metadata/fence_hpblade.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_hpblade.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_hpblade.xml 2017-03-03 11:18:37.961898200 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,27 +95,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="10" />
|
|
|
e4ffb1 |
+ <content type="second" default="10" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -125,7 +125,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ibmblade.xml b/tests/data/metadata/fence_ibmblade.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ibmblade.xml 2017-03-03 10:46:36.292404652 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ibmblade.xml 2017-03-03 11:18:38.920888912 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_idrac.xml b/tests/data/metadata/fence_idrac.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_idrac.xml 2017-03-03 10:46:36.349404099 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_idrac.xml 2017-03-03 11:18:37.924898559 +0100
|
|
|
e4ffb1 |
@@ -9,7 +9,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="623" />
|
|
|
e4ffb1 |
+ <content type="integer" default="623" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -121,32 +121,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="2" />
|
|
|
e4ffb1 |
+ <content type="second" default="2" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipmitool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--ipmitool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/ipmitool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to ipmitool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -156,7 +155,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ifmib.xml b/tests/data/metadata/fence_ifmib.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ifmib.xml 2017-03-03 10:46:36.293404642 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ifmib.xml 2017-03-03 11:18:37.744900302 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -126,32 +126,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo2.xml b/tests/data/metadata/fence_ilo2.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo2.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo2.xml 2017-03-03 11:18:38.082897028 +0100
|
|
|
e4ffb1 |
@@ -6,7 +6,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="443" />
|
|
|
e4ffb1 |
+ <content type="integer" default="443" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="notls" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -101,27 +101,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="10" />
|
|
|
e4ffb1 |
+ <content type="second" default="10" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -131,7 +131,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="integer" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo3_ssh.xml b/tests/data/metadata/fence_ilo3_ssh.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo3_ssh.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo3_ssh.xml 2017-03-03 11:18:37.547902210 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -100,27 +100,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -130,7 +130,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo3.xml b/tests/data/metadata/fence_ilo3.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo3.xml 2017-03-03 10:46:36.349404099 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo3.xml 2017-03-03 11:18:37.819899576 +0100
|
|
|
e4ffb1 |
@@ -9,7 +9,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="623" />
|
|
|
e4ffb1 |
+ <content type="integer" default="623" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -121,32 +121,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="4" />
|
|
|
e4ffb1 |
+ <content type="second" default="4" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipmitool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--ipmitool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/ipmitool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to ipmitool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -156,7 +155,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo4_ssh.xml b/tests/data/metadata/fence_ilo4_ssh.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo4_ssh.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo4_ssh.xml 2017-03-03 11:18:37.580901891 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -100,27 +100,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -130,7 +130,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo4.xml b/tests/data/metadata/fence_ilo4.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo4.xml 2017-03-03 10:46:36.350404090 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo4.xml 2017-03-03 11:18:37.854899237 +0100
|
|
|
e4ffb1 |
@@ -9,7 +9,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="623" />
|
|
|
e4ffb1 |
+ <content type="integer" default="623" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -121,32 +121,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="2" />
|
|
|
e4ffb1 |
+ <content type="second" default="2" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipmitool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--ipmitool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/ipmitool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to ipmitool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -156,7 +155,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo_moonshot.xml b/tests/data/metadata/fence_ilo_moonshot.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo_moonshot.xml 2017-03-03 10:46:36.293404642 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo_moonshot.xml 2017-03-03 11:18:38.272895188 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="22" />
|
|
|
e4ffb1 |
+ <content type="integer" default="22" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,32 +95,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo_mp.xml b/tests/data/metadata/fence_ilo_mp.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo_mp.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo_mp.xml 2017-03-03 11:18:38.619891827 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -90,27 +90,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -120,7 +120,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo_ssh.xml b/tests/data/metadata/fence_ilo_ssh.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo_ssh.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo_ssh.xml 2017-03-03 11:18:37.515902520 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -100,27 +100,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -130,7 +130,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ilo.xml b/tests/data/metadata/fence_ilo.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ilo.xml 2017-03-03 10:46:36.298404593 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ilo.xml 2017-03-03 11:18:38.043897406 +0100
|
|
|
e4ffb1 |
@@ -6,7 +6,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="443" />
|
|
|
e4ffb1 |
+ <content type="integer" default="443" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="notls" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -101,27 +101,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="10" />
|
|
|
e4ffb1 |
+ <content type="second" default="10" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -131,7 +131,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="integer" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_imm.xml b/tests/data/metadata/fence_imm.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_imm.xml 2017-03-03 10:46:36.350404090 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_imm.xml 2017-03-03 11:18:37.889898898 +0100
|
|
|
e4ffb1 |
@@ -9,7 +9,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="623" />
|
|
|
e4ffb1 |
+ <content type="integer" default="623" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -121,32 +121,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="2" />
|
|
|
e4ffb1 |
+ <content type="second" default="2" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipmitool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--ipmitool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/ipmitool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to ipmitool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -156,7 +155,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_intelmodular.xml b/tests/data/metadata/fence_intelmodular.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_intelmodular.xml 2017-03-03 10:46:36.293404642 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_intelmodular.xml 2017-03-03 11:18:38.655891478 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -126,32 +126,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ipdu.xml b/tests/data/metadata/fence_ipdu.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ipdu.xml 2017-03-03 10:46:36.293404642 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ipdu.xml 2017-03-03 11:18:38.956888563 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <content type="integer" default="161" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -124,32 +124,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ipmilan.xml b/tests/data/metadata/fence_ipmilan.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ipmilan.xml 2017-03-03 10:46:36.350404090 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ipmilan.xml 2017-03-03 11:18:37.784899915 +0100
|
|
|
e4ffb1 |
@@ -9,7 +9,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="623" />
|
|
|
e4ffb1 |
+ <content type="integer" default="623" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -121,32 +121,31 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="2" />
|
|
|
e4ffb1 |
+ <content type="second" default="2" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipmitool_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--ipmitool-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/ipmitool" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to ipmitool binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -156,7 +155,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ldom.xml b/tests/data/metadata/fence_ldom.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ldom.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ldom.xml 2017-03-03 11:18:39.153886655 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="22" />
|
|
|
e4ffb1 |
+ <content type="integer" default="22" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -97,32 +97,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_lpar.xml b/tests/data/metadata/fence_lpar.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_lpar.xml 2017-03-03 10:46:36.351404080 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_lpar.xml 2017-03-03 11:18:38.350894433 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="22" />
|
|
|
e4ffb1 |
+ <content type="integer" default="22" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="managed" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -109,32 +109,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="15" />
|
|
|
e4ffb1 |
+ <content type="second" default="15" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_mpath.xml b/tests/data/metadata/fence_mpath.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_mpath.xml 2017-03-03 10:46:36.332404264 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_mpath.xml 2017-03-03 11:18:38.994888195 +0100
|
|
|
e4ffb1 |
@@ -4,20 +4,20 @@
|
|
|
e4ffb1 |
The fence_mpath agent works by having a unique key for each node that has to be set in /etc/multipath.conf. Once registered, a single node will become the reservation holder by creating a "write exclusive, registrants only" reservation on the device(s). The result is that only registered nodes may write to the device(s). When a node failure occurs, the fence_mpath agent will remove the key belonging to the failed node from the device(s). The failed node will no longer be able to write to the device(s). A manual reboot is required.</longdesc>
|
|
|
e4ffb1 |
<vendor-url>https://www.sourceware.org/dm/</vendor-url>
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
- <parameter name="devices" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-d, --devices=[devices]" />
|
|
|
e4ffb1 |
- <content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">List of devices to use for current operation. Devices can be comma-separated list of device-mapper multipath devices (eg. /dev/mapper/3600508b400105df70000e00000ac0000 or /dev/mapper/mpath1). Each device must support SCSI-3 persistent reservations.</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="action" unique="0" required="1">
|
|
|
e4ffb1 |
+ <getopt mixed="-o, --action=[action]" />
|
|
|
e4ffb1 |
+ <content type="string" default="off" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="key" unique="0" required="1">
|
|
|
e4ffb1 |
<getopt mixed="-k, --key=[key]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Key to use for the current operation. This key should be unique to a node and have to be written in /etc/multipath.conf. For the "on" action, the key specifies the key use to register the local node. For the "off" action, this key specifies the key to be removed from the device(s).</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="action" unique="0" required="1">
|
|
|
e4ffb1 |
- <getopt mixed="-o, --action=[action]" />
|
|
|
e4ffb1 |
- <content type="string" default="off" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="devices" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-d, --devices=[devices]" />
|
|
|
e4ffb1 |
+ <content type="string" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">List of devices to use for current operation. Devices can be comma-separated list of device-mapper multipath devices (eg. /dev/mapper/3600508b400105df70000e00000ac0000 or /dev/mapper/mpath1). Each device must support SCSI-3 persistent reservations.</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="verbose" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-v, --verbose" />
|
|
|
e4ffb1 |
@@ -39,44 +39,42 @@
|
|
|
e4ffb1 |
<content type="boolean" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Display help and exit</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
- <parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
- <parameter name="store_path" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--store-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/var/run/cluster" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Path to directory where fence agent can store information</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
- <parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
+ <parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
+ <parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
<parameter name="mpathpersist_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--mpathpersist-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/sbin/mpathpersist" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to mpathpersist binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
+ <parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
+ <parameter name="store_path" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--store-path=[path]" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Path to directory where fence agent can store information</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_netio.xml b/tests/data/metadata/fence_netio.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_netio.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_netio.xml 2017-03-03 11:18:38.466893309 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="1234" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1234" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="inet6_only" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -75,32 +75,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_ovh.xml b/tests/data/metadata/fence_ovh.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_ovh.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_ovh.xml 2017-03-03 11:18:37.202905552 +0100
|
|
|
e4ffb1 |
@@ -60,32 +60,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_pve.xml b/tests/data/metadata/fence_pve.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_pve.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_pve.xml 2017-03-03 11:18:39.114887033 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="8006" />
|
|
|
e4ffb1 |
+ <content type="integer" default="8006" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -80,32 +80,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_raritan.xml b/tests/data/metadata/fence_raritan.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_raritan.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_raritan.xml 2017-03-03 11:18:38.728890771 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="inet6_only" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -75,32 +75,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_rhevm.xml b/tests/data/metadata/fence_rhevm.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_rhevm.xml 2017-03-03 10:46:36.343404157 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_rhevm.xml 2017-03-03 11:18:38.882889280 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="80" />
|
|
|
e4ffb1 |
+ <content type="integer" default="80" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="notls" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -75,7 +75,6 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="api_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--api-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/ovirt-engine/api" />
|
|
|
e4ffb1 |
<shortdesc lang="en">The path of the API URL</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="verbose" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -105,32 +104,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="second" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_rsa.xml b/tests/data/metadata/fence_rsa.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_rsa.xml 2017-03-03 10:46:36.299404584 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_rsa.xml 2017-03-03 11:18:38.692891120 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -90,27 +90,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="10" />
|
|
|
e4ffb1 |
+ <content type="second" default="10" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -120,7 +120,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_rsb.xml b/tests/data/metadata/fence_rsb.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_rsb.xml 2017-03-03 10:46:36.299404584 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_rsb.xml 2017-03-03 11:18:39.069887468 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="3172" />
|
|
|
e4ffb1 |
+ <content type="integer" default="3172" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -90,27 +90,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port_as_ip" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -120,7 +120,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_sanbox2.xml b/tests/data/metadata/fence_sanbox2.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_sanbox2.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_sanbox2.xml 2017-03-03 11:18:39.032887827 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -80,32 +80,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_sbd.xml b/tests/data/metadata/fence_sbd.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_sbd.xml 2017-03-03 10:46:36.346404128 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_sbd.xml 2017-03-03 11:18:38.504892941 +0100
|
|
|
e4ffb1 |
@@ -3,11 +3,6 @@
|
|
|
e4ffb1 |
<longdesc>fence_sbd is I/O Fencing agent which can be used in environments where sbd can be used (shared storage).</longdesc>
|
|
|
e4ffb1 |
<vendor-url></vendor-url>
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
- <parameter name="action" unique="0" required="1">
|
|
|
e4ffb1 |
- <getopt mixed="-o, --action=[action]" />
|
|
|
e4ffb1 |
- <content type="string" default="reboot" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Fencing action</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
<parameter name="devices" unique="0" required="1">
|
|
|
e4ffb1 |
<getopt mixed="--devices=[device_a,device_b]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
@@ -19,12 +14,17 @@
|
|
|
e4ffb1 |
<option value="onoff" />
|
|
|
e4ffb1 |
<option value="cycle" />
|
|
|
e4ffb1 |
</content>
|
|
|
e4ffb1 |
- <shortdesc lang="en">Method to fence</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Method to fence (onoff|cycle)</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
+ <parameter name="action" unique="0" required="1">
|
|
|
e4ffb1 |
+ <getopt mixed="-o, --action=[action]" />
|
|
|
e4ffb1 |
+ <content type="string" default="reboot" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
<getopt mixed="-n, --plug=[id]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Physical plug number on device, UUID or identification of machine</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Physical plug number, name of virtual machine or UUID</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="verbose" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-v, --verbose" />
|
|
|
e4ffb1 |
@@ -49,41 +49,40 @@
|
|
|
e4ffb1 |
<parameter name="separator" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-C, --separator=[char]" />
|
|
|
e4ffb1 |
<content type="string" default="," />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Separator for CSV created by 'list' operation</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Separator for CSV created by operation list</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sbd_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--sbd-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/sbin/sbd" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to SBD binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
+ <parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
@@ -96,6 +95,5 @@
|
|
|
e4ffb1 |
<action name="list-status" />
|
|
|
e4ffb1 |
<action name="monitor" />
|
|
|
e4ffb1 |
<action name="metadata" />
|
|
|
e4ffb1 |
- <action name="validate-all" />
|
|
|
e4ffb1 |
</actions>
|
|
|
e4ffb1 |
</resource-agent>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_scsi.xml b/tests/data/metadata/fence_scsi.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_scsi.xml 2017-03-03 10:46:36.332404264 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_scsi.xml 2017-03-03 11:18:37.660901116 +0100
|
|
|
e4ffb1 |
@@ -56,52 +56,48 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="vgs_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--vgs-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/sbin/vgs" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to vgs binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sg_persist_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--sg_persist-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/sg_persist" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to sg_persist binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sg_turs_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--sg_turs-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/bin/sg_turs" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to sg_turs binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="corosync-cmap_path" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--corosync-cmap-path=[path]" />
|
|
|
e4ffb1 |
- <content type="string" default="/usr/sbin/corosync-cmapctl" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Path to corosync-cmapctl binary</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_virsh.xml b/tests/data/metadata/fence_virsh.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_virsh.xml 2017-03-03 10:46:36.323404351 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_virsh.xml 2017-03-03 11:18:37.242905165 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="22" />
|
|
|
e4ffb1 |
+ <content type="integer" default="22" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -97,37 +97,37 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="--missing-as-off" />
|
|
|
e4ffb1 |
- <content type="boolean" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Missing port returns OFF instead of failure</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
+ <parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--missing-as-off" />
|
|
|
e4ffb1 |
+ <content type="boolean" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Missing port returns OFF instead of failure</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="sudo" unique="0" required="0">
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_vmware_soap.xml b/tests/data/metadata/fence_vmware_soap.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_vmware_soap.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_vmware_soap.xml 2017-03-03 11:18:37.390903731 +0100
|
|
|
e4ffb1 |
@@ -7,7 +7,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="80" />
|
|
|
e4ffb1 |
+ <content type="integer" default="80" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="notls" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -97,32 +97,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_wti.xml b/tests/data/metadata/fence_wti.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_wti.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_wti.xml 2017-03-03 11:18:38.312894801 +0100
|
|
|
e4ffb1 |
@@ -5,7 +5,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="23" />
|
|
|
e4ffb1 |
+ <content type="integer" default="23" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="ipaddr" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -95,32 +95,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_xenapi.xml b/tests/data/metadata/fence_xenapi.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_xenapi.xml 2017-03-03 10:46:36.294404632 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_xenapi.xml 2017-03-03 11:18:37.706900670 +0100
|
|
|
e4ffb1 |
@@ -60,32 +60,32 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="3" />
|
|
|
e4ffb1 |
+ <content type="second" default="3" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|
|
|
e4ffb1 |
diff -uNr a/tests/data/metadata/fence_zvmip.xml b/tests/data/metadata/fence_zvmip.xml
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_zvmip.xml 2017-03-03 10:46:36.295404622 +0100
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_zvmip.xml 2017-03-03 11:18:38.000897823 +0100
|
|
|
e4ffb1 |
@@ -19,7 +19,7 @@
|
|
|
e4ffb1 |
<parameters>
|
|
|
e4ffb1 |
<parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="44444" />
|
|
|
e4ffb1 |
+ <content type="integer" default="44444" />
|
|
|
e4ffb1 |
<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
@@ -97,27 +97,27 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="login_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--login-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="power_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--power-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="20" />
|
|
|
e4ffb1 |
+ <content type="second" default="20" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="delay" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--delay=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="0" />
|
|
|
e4ffb1 |
+ <content type="second" default="0" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
- <content type="string" default="5.0" />
|
|
|
e4ffb1 |
+ <content type="second" default="5" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="missing_as_off" unique="0" required="0">
|
|
|
e4ffb1 |
@@ -127,7 +127,7 @@
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="retry_on" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--retry-on=[attempts]" />
|
|
|
e4ffb1 |
- <content type="string" default="1" />
|
|
|
e4ffb1 |
+ <content type="integer" default="1" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
</parameters>
|