Blame SOURCES/bz1853973-fence_ipmilan-allow-increasing-ipmitool-verbosity.patch

e15206
From 3c377e48d96fbe80a5be5e9fd1a15c4b3a7d25e4 Mon Sep 17 00:00:00 2001
e15206
From: Reid wahl <nrwahl@protonmail.com>
e15206
Date: Mon, 6 Jul 2020 03:58:42 -0700
e15206
Subject: [PATCH 1/2] fencing: Add verbose_level option
e15206
e15206
Currently, `verbose` is a boolean, all-or-nothing option. It would be
e15206
useful to be able to set more granular verbosity levels when debugging
e15206
an issue.
e15206
e15206
This patch adds a `verbose_level` option to allow setting higher
e15206
verbosities. This option can be set explicitly (e.g.,
e15206
`--verbose-level=3`). Alternatively, multiple `verbose` flags (e.g.,
e15206
`-vvv`) can be passed on the command line; `verbose_level` is set to
e15206
the number of `-v` flags.
e15206
e15206
If both an explicit `verbose_level` and one or more `-v` options are
e15206
set, the `verbose_level` takes precedence and overrides any `-v` flags.
e15206
If `verbose_level > 0` and there are no `-v` flags, the `verbose`
e15206
option is enabled implicitly.
e15206
e15206
Later patches will enable individual fence agents to use the new
e15206
verbosity levels.
e15206
e15206
Related to: RHBZ#1853973
e15206
---
e15206
 lib/fencing.py.py                             | 58 ++++++++++++++++---
e15206
 tests/data/metadata/fence_aliyun.xml          |  7 ++-
e15206
 tests/data/metadata/fence_alom.xml            |  7 ++-
e15206
 tests/data/metadata/fence_amt.xml             |  7 ++-
e15206
 tests/data/metadata/fence_amt_ws.xml          |  7 ++-
e15206
 tests/data/metadata/fence_apc.xml             |  7 ++-
e15206
 tests/data/metadata/fence_apc_snmp.xml        |  7 ++-
e15206
 tests/data/metadata/fence_aws.xml             |  7 ++-
e15206
 tests/data/metadata/fence_azure_arm.xml       |  7 ++-
e15206
 tests/data/metadata/fence_bladecenter.xml     |  7 ++-
e15206
 tests/data/metadata/fence_brocade.xml         |  7 ++-
e15206
 tests/data/metadata/fence_cisco_mds.xml       |  7 ++-
e15206
 tests/data/metadata/fence_cisco_ucs.xml       |  7 ++-
e15206
 tests/data/metadata/fence_compute.xml         |  7 ++-
e15206
 tests/data/metadata/fence_docker.xml          |  7 ++-
e15206
 tests/data/metadata/fence_drac.xml            |  7 ++-
e15206
 tests/data/metadata/fence_drac5.xml           |  7 ++-
e15206
 tests/data/metadata/fence_dummy.xml           |  7 ++-
e15206
 tests/data/metadata/fence_eaton_snmp.xml      |  7 ++-
e15206
 tests/data/metadata/fence_emerson.xml         |  7 ++-
e15206
 tests/data/metadata/fence_eps.xml             |  7 ++-
e15206
 tests/data/metadata/fence_evacuate.xml        |  7 ++-
e15206
 tests/data/metadata/fence_gce.xml             |  7 ++-
e15206
 tests/data/metadata/fence_hds_cb.xml          |  7 ++-
e15206
 tests/data/metadata/fence_heuristics_ping.xml |  7 ++-
e15206
 tests/data/metadata/fence_hpblade.xml         |  7 ++-
e15206
 tests/data/metadata/fence_ibmblade.xml        |  7 ++-
e15206
 tests/data/metadata/fence_idrac.xml           |  7 ++-
e15206
 tests/data/metadata/fence_ifmib.xml           |  7 ++-
e15206
 tests/data/metadata/fence_ilo.xml             |  7 ++-
e15206
 tests/data/metadata/fence_ilo2.xml            |  7 ++-
e15206
 tests/data/metadata/fence_ilo3.xml            |  7 ++-
e15206
 tests/data/metadata/fence_ilo3_ssh.xml        |  7 ++-
e15206
 tests/data/metadata/fence_ilo4.xml            |  7 ++-
e15206
 tests/data/metadata/fence_ilo4_ssh.xml        |  7 ++-
e15206
 tests/data/metadata/fence_ilo_moonshot.xml    |  7 ++-
e15206
 tests/data/metadata/fence_ilo_mp.xml          |  7 ++-
e15206
 tests/data/metadata/fence_ilo_ssh.xml         |  7 ++-
e15206
 tests/data/metadata/fence_imm.xml             |  7 ++-
e15206
 tests/data/metadata/fence_intelmodular.xml    |  7 ++-
e15206
 tests/data/metadata/fence_ipdu.xml            |  7 ++-
e15206
 tests/data/metadata/fence_ipmilan.xml         |  7 ++-
e15206
 tests/data/metadata/fence_ironic.xml          |  7 ++-
e15206
 tests/data/metadata/fence_ldom.xml            |  7 ++-
e15206
 tests/data/metadata/fence_lpar.xml            |  7 ++-
e15206
 tests/data/metadata/fence_mpath.xml           |  7 ++-
e15206
 tests/data/metadata/fence_netio.xml           |  7 ++-
e15206
 tests/data/metadata/fence_openstack.xml       |  7 ++-
e15206
 tests/data/metadata/fence_ovh.xml             |  7 ++-
e15206
 tests/data/metadata/fence_powerman.xml        |  7 ++-
e15206
 tests/data/metadata/fence_pve.xml             |  7 ++-
e15206
 tests/data/metadata/fence_raritan.xml         |  7 ++-
e15206
 tests/data/metadata/fence_rcd_serial.xml      |  7 ++-
e15206
 tests/data/metadata/fence_redfish.xml         |  7 ++-
e15206
 tests/data/metadata/fence_rhevm.xml           |  7 ++-
e15206
 tests/data/metadata/fence_rsa.xml             |  7 ++-
e15206
 tests/data/metadata/fence_rsb.xml             |  7 ++-
e15206
 tests/data/metadata/fence_sanbox2.xml         |  7 ++-
e15206
 tests/data/metadata/fence_sbd.xml             |  7 ++-
e15206
 tests/data/metadata/fence_scsi.xml            |  7 ++-
e15206
 tests/data/metadata/fence_tripplite_snmp.xml  |  7 ++-
e15206
 tests/data/metadata/fence_vbox.xml            |  7 ++-
e15206
 tests/data/metadata/fence_virsh.xml           |  7 ++-
e15206
 tests/data/metadata/fence_vmware.xml          |  7 ++-
e15206
 tests/data/metadata/fence_vmware_rest.xml     |  7 ++-
e15206
 tests/data/metadata/fence_vmware_soap.xml     |  7 ++-
e15206
 tests/data/metadata/fence_vmware_vcloud.xml   |  7 ++-
e15206
 tests/data/metadata/fence_wti.xml             |  7 ++-
e15206
 tests/data/metadata/fence_xenapi.xml          |  7 ++-
e15206
 tests/data/metadata/fence_zvmip.xml           |  7 ++-
e15206
 73 files changed, 482 insertions(+), 80 deletions(-)
e15206
e15206
diff --git a/lib/fencing.py.py b/lib/fencing.py.py
e15206
index 4b54aa7c..63b13036 100644
e15206
--- a/lib/fencing.py.py
e15206
+++ b/lib/fencing.py.py
e15206
@@ -38,27 +38,40 @@
e15206
 		"help" : "-h, --help                     Display this help and exit",
e15206
 		"required" : "0",
e15206
 		"shortdesc" : "Display help and exit",
e15206
-		"order" : 54},
e15206
+		"order" : 55},
e15206
 	"version" : {
e15206
 		"getopt" : "V",
e15206
 		"longopt" : "version",
e15206
 		"help" : "-V, --version                  Display version information and exit",
e15206
 		"required" : "0",
e15206
 		"shortdesc" : "Display version information and exit",
e15206
-		"order" : 53},
e15206
+		"order" : 54},
e15206
 	"verbose" : {
e15206
 		"getopt" : "v",
e15206
 		"longopt" : "verbose",
e15206
-		"help" : "-v, --verbose                  Verbose mode",
e15206
+		"help" : "-v, --verbose                  Verbose mode. "
e15206
+			"Multiple -v flags can be stacked on the command line "
e15206
+			"(e.g., -vvv) to increase verbosity.",
e15206
 		"required" : "0",
e15206
 		"order" : 51},
e15206
+	"verbose_level" : {
e15206
+		"getopt" : ":",
e15206
+		"longopt" : "verbose-level",
e15206
+		"type" : "integer",
e15206
+		"help" : "--verbose-level                "
e15206
+			"Level of debugging detail in output. Defaults to the "
e15206
+			"number of --verbose flags specified on the command "
e15206
+			"line, or to 1 if verbose=1 in a stonith device "
e15206
+			"configuration (i.e., on stdin).",
e15206
+                "required" : "0",
e15206
+		"order" : 52},
e15206
 	"debug" : {
e15206
 		"getopt" : "D:",
e15206
 		"longopt" : "debug-file",
e15206
 		"help" : "-D, --debug-file=[debugfile]   Debugging to output file",
e15206
 		"required" : "0",
e15206
 		"shortdesc" : "Write debug information to given file",
e15206
-		"order" : 52},
e15206
+		"order" : 53},
e15206
 	"delay" : {
e15206
 		"getopt" : ":",
e15206
 		"longopt" : "delay",
e15206
@@ -454,9 +467,10 @@
e15206
 
e15206
 # options which are added automatically if 'key' is encountered ("default" is always added)
e15206
 DEPENDENCY_OPT = {
e15206
-		"default" : ["help", "debug", "verbose", "version", "action", "agent", \
e15206
-			"power_timeout", "shell_timeout", "login_timeout", "power_wait", "retry_on", \
e15206
-			"delay", "quiet"],
e15206
+		"default" : ["help", "debug", "verbose", "verbose_level",
e15206
+			 "version", "action", "agent", "power_timeout",
e15206
+			 "shell_timeout", "login_timeout", "power_wait",
e15206
+			 "retry_on", "delay", "quiet"],
e15206
 		"passwd" : ["passwd_script"],
e15206
 		"sudo" : ["sudo_path"],
e15206
 		"secure" : ["identity_file", "ssh_options", "ssh_path", "inet4_only", "inet6_only"],
e15206
@@ -683,6 +697,26 @@ def check_input(device_opt, opt, other_conditions = False):
e15206
 	if options["--action"] in ["metadata", "manpage"] or any(k in options for k in ("--help", "--version")):
e15206
 		return options
e15206
 
e15206
+	try:
e15206
+		options["--verbose-level"] = int(options["--verbose-level"])
e15206
+	except ValueError:
e15206
+		options["--verbose-level"] = -1
e15206
+
e15206
+	if options["--verbose-level"] < 0:
e15206
+		logging.warning("Parse error: Option 'verbose_level' must "
e15206
+				"be an integer greater than or equal to 0. "
e15206
+				"Setting verbose_level to 0.")
e15206
+		options["--verbose-level"] = 0
e15206
+
e15206
+	if options["--verbose-level"] == 0 and "--verbose" in options:
e15206
+		logging.warning("Parse error: Ignoring option 'verbose' "
e15206
+				"because it conflicts with verbose_level=0")
e15206
+		del options["--verbose"]
e15206
+
e15206
+	if options["--verbose-level"] > 0:
e15206
+		# Ensure verbose key exists
e15206
+		options["--verbose"] = 1
e15206
+	
e15206
 	if "--verbose" in options:
e15206
 		logging.getLogger().setLevel(logging.DEBUG)
e15206
 
e15206
@@ -1409,6 +1443,9 @@ def _parse_input_stdin(avail_opt):
e15206
 			opt["--"+all_opt[name]["longopt"]] = "1"
e15206
 		else:
e15206
 			logging.warning("Parse error: Ignoring option '%s' because it does not have value\n", name)
e15206
+
e15206
+	opt.setdefault("--verbose-level", opt.get("--verbose", 0))
e15206
+
e15206
 	return opt
e15206
 
e15206
 def _parse_input_cmdline(avail_opt):
e15206
@@ -1428,10 +1465,15 @@ def _parse_input_cmdline(avail_opt):
e15206
 
e15206
 	# Short and long getopt names are changed to consistent "--" + long name (e.g. --username)
e15206
 	long_opts = {}
e15206
-	for arg_name in list(dict(entered_opt).keys()):
e15206
+	verbose_count = 0
e15206
+	for arg_name in [k for (k, v) in entered_opt]:
e15206
 		all_key = [key for (key, value) in list(filtered_opts.items()) \
e15206
 			if "--" + value.get("longopt", "") == arg_name or "-" + value.get("getopt", "").rstrip(":") == arg_name][0]
e15206
 		long_opts["--" + filtered_opts[all_key]["longopt"]] = dict(entered_opt)[arg_name]
e15206
+		if all_key == "verbose":
e15206
+			verbose_count += 1
e15206
+
e15206
+	long_opts.setdefault("--verbose-level", verbose_count)
e15206
 
e15206
 	# This test is specific because it does not apply to input on stdin
e15206
 	if "port_as_ip" in avail_opt and not "--port-as-ip" in long_opts and "--plug" in long_opts:
e15206
diff --git a/tests/data/metadata/fence_aliyun.xml b/tests/data/metadata/fence_aliyun.xml
e15206
index 2de3a8aa..8f236806 100644
e15206
--- a/tests/data/metadata/fence_aliyun.xml
e15206
+++ b/tests/data/metadata/fence_aliyun.xml
e15206
@@ -46,7 +46,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_alom.xml b/tests/data/metadata/fence_alom.xml
e15206
index d6bb3d5b..ef6c06c3 100644
e15206
--- a/tests/data/metadata/fence_alom.xml
e15206
+++ b/tests/data/metadata/fence_alom.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_amt.xml b/tests/data/metadata/fence_amt.xml
e15206
index 5f0adc98..ee174852 100644
e15206
--- a/tests/data/metadata/fence_amt.xml
e15206
+++ b/tests/data/metadata/fence_amt.xml
e15206
@@ -80,7 +80,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_amt_ws.xml b/tests/data/metadata/fence_amt_ws.xml
e15206
index 86f36f6c..9c223c8d 100644
e15206
--- a/tests/data/metadata/fence_amt_ws.xml
e15206
+++ b/tests/data/metadata/fence_amt_ws.xml
e15206
@@ -80,7 +80,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_apc.xml b/tests/data/metadata/fence_apc.xml
e15206
index 7330d8bc..efad9db8 100644
e15206
--- a/tests/data/metadata/fence_apc.xml
e15206
+++ b/tests/data/metadata/fence_apc.xml
e15206
@@ -116,7 +116,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_apc_snmp.xml b/tests/data/metadata/fence_apc_snmp.xml
e15206
index 7f1c616c..a1947672 100644
e15206
--- a/tests/data/metadata/fence_apc_snmp.xml
e15206
+++ b/tests/data/metadata/fence_apc_snmp.xml
e15206
@@ -121,7 +121,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_aws.xml b/tests/data/metadata/fence_aws.xml
e15206
index 12f67322..527fc86c 100644
e15206
--- a/tests/data/metadata/fence_aws.xml
e15206
+++ b/tests/data/metadata/fence_aws.xml
e15206
@@ -49,7 +49,12 @@ For instructions see: https://boto3.readthedocs.io/en/latest/guide/quickstart.ht
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_azure_arm.xml b/tests/data/metadata/fence_azure_arm.xml
e15206
index 7ea672af..42c9952f 100644
e15206
--- a/tests/data/metadata/fence_azure_arm.xml
e15206
+++ b/tests/data/metadata/fence_azure_arm.xml
e15206
@@ -106,7 +106,12 @@ When using network fencing the reboot-action will cause a quick-return once the
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_bladecenter.xml b/tests/data/metadata/fence_bladecenter.xml
e15206
index 0762e43f..f2ee28b1 100644
e15206
--- a/tests/data/metadata/fence_bladecenter.xml
e15206
+++ b/tests/data/metadata/fence_bladecenter.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_brocade.xml b/tests/data/metadata/fence_brocade.xml
e15206
index ef2b9833..f3287503 100644
e15206
--- a/tests/data/metadata/fence_brocade.xml
e15206
+++ b/tests/data/metadata/fence_brocade.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_cisco_mds.xml b/tests/data/metadata/fence_cisco_mds.xml
e15206
index 15d7798c..a0e62cba 100644
e15206
--- a/tests/data/metadata/fence_cisco_mds.xml
e15206
+++ b/tests/data/metadata/fence_cisco_mds.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_cisco_ucs.xml b/tests/data/metadata/fence_cisco_ucs.xml
e15206
index 848e72f8..f4543f4b 100644
e15206
--- a/tests/data/metadata/fence_cisco_ucs.xml
e15206
+++ b/tests/data/metadata/fence_cisco_ucs.xml
e15206
@@ -96,7 +96,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_compute.xml b/tests/data/metadata/fence_compute.xml
e15206
index 2f183268..a5ce53cd 100644
e15206
--- a/tests/data/metadata/fence_compute.xml
e15206
+++ b/tests/data/metadata/fence_compute.xml
e15206
@@ -131,7 +131,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_docker.xml b/tests/data/metadata/fence_docker.xml
e15206
index 3285314c..6e3306d4 100644
e15206
--- a/tests/data/metadata/fence_docker.xml
e15206
+++ b/tests/data/metadata/fence_docker.xml
e15206
@@ -84,7 +84,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_drac.xml b/tests/data/metadata/fence_drac.xml
e15206
index 2184ee0c..451ee504 100644
e15206
--- a/tests/data/metadata/fence_drac.xml
e15206
+++ b/tests/data/metadata/fence_drac.xml
e15206
@@ -81,7 +81,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_drac5.xml b/tests/data/metadata/fence_drac5.xml
e15206
index 069f7b00..564008ab 100644
e15206
--- a/tests/data/metadata/fence_drac5.xml
e15206
+++ b/tests/data/metadata/fence_drac5.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_dummy.xml b/tests/data/metadata/fence_dummy.xml
e15206
index 873c565b..ec4d5b46 100644
e15206
--- a/tests/data/metadata/fence_dummy.xml
e15206
+++ b/tests/data/metadata/fence_dummy.xml
e15206
@@ -31,7 +31,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_eaton_snmp.xml b/tests/data/metadata/fence_eaton_snmp.xml
e15206
index 3dd92dd2..1ec07c68 100644
e15206
--- a/tests/data/metadata/fence_eaton_snmp.xml
e15206
+++ b/tests/data/metadata/fence_eaton_snmp.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_emerson.xml b/tests/data/metadata/fence_emerson.xml
e15206
index f6886469..fbdcbcde 100644
e15206
--- a/tests/data/metadata/fence_emerson.xml
e15206
+++ b/tests/data/metadata/fence_emerson.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_eps.xml b/tests/data/metadata/fence_eps.xml
e15206
index 26e75477..47cad6f0 100644
e15206
--- a/tests/data/metadata/fence_eps.xml
e15206
+++ b/tests/data/metadata/fence_eps.xml
e15206
@@ -83,7 +83,12 @@ Agent basically works by connecting to hidden page and pass appropriate argument
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_evacuate.xml b/tests/data/metadata/fence_evacuate.xml
e15206
index 95da0e1b..f32b48eb 100644
e15206
--- a/tests/data/metadata/fence_evacuate.xml
e15206
+++ b/tests/data/metadata/fence_evacuate.xml
e15206
@@ -126,7 +126,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_gce.xml b/tests/data/metadata/fence_gce.xml
e15206
index 79b82ebb..3b8a24a4 100644
e15206
--- a/tests/data/metadata/fence_gce.xml
e15206
+++ b/tests/data/metadata/fence_gce.xml
e15206
@@ -56,7 +56,12 @@ For instructions see: https://cloud.google.com/compute/docs/tutorials/python-gui
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_hds_cb.xml b/tests/data/metadata/fence_hds_cb.xml
e15206
index 71cfd8ed..5529472d 100644
e15206
--- a/tests/data/metadata/fence_hds_cb.xml
e15206
+++ b/tests/data/metadata/fence_hds_cb.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_heuristics_ping.xml b/tests/data/metadata/fence_heuristics_ping.xml
e15206
index 3dbceeb2..53e3bb05 100644
e15206
--- a/tests/data/metadata/fence_heuristics_ping.xml
e15206
+++ b/tests/data/metadata/fence_heuristics_ping.xml
e15206
@@ -56,7 +56,12 @@ This is not a fence agent by itself! Its only purpose is to enable/disable anoth
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_hpblade.xml b/tests/data/metadata/fence_hpblade.xml
e15206
index 6cdc73ed..bbb51668 100644
e15206
--- a/tests/data/metadata/fence_hpblade.xml
e15206
+++ b/tests/data/metadata/fence_hpblade.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ibmblade.xml b/tests/data/metadata/fence_ibmblade.xml
e15206
index 5084b3a0..6585c4fb 100644
e15206
--- a/tests/data/metadata/fence_ibmblade.xml
e15206
+++ b/tests/data/metadata/fence_ibmblade.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_idrac.xml b/tests/data/metadata/fence_idrac.xml
e15206
index 55d9ced3..efecc720 100644
e15206
--- a/tests/data/metadata/fence_idrac.xml
e15206
+++ b/tests/data/metadata/fence_idrac.xml
e15206
@@ -123,7 +123,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ifmib.xml b/tests/data/metadata/fence_ifmib.xml
e15206
index c07a6e1f..93bd8aa3 100644
e15206
--- a/tests/data/metadata/fence_ifmib.xml
e15206
+++ b/tests/data/metadata/fence_ifmib.xml
e15206
@@ -122,7 +122,12 @@ It was written with managed ethernet switches in mind, in order to fence iSCSI S
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo.xml b/tests/data/metadata/fence_ilo.xml
e15206
index 44b3c43a..7ed91061 100644
e15206
--- a/tests/data/metadata/fence_ilo.xml
e15206
+++ b/tests/data/metadata/fence_ilo.xml
e15206
@@ -107,7 +107,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo2.xml b/tests/data/metadata/fence_ilo2.xml
e15206
index e9cae6d2..5527cf21 100644
e15206
--- a/tests/data/metadata/fence_ilo2.xml
e15206
+++ b/tests/data/metadata/fence_ilo2.xml
e15206
@@ -107,7 +107,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo3.xml b/tests/data/metadata/fence_ilo3.xml
e15206
index 2a99e0a4..b5db044c 100644
e15206
--- a/tests/data/metadata/fence_ilo3.xml
e15206
+++ b/tests/data/metadata/fence_ilo3.xml
e15206
@@ -123,7 +123,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo3_ssh.xml b/tests/data/metadata/fence_ilo3_ssh.xml
e15206
index e46d607c..a3c8f11c 100644
e15206
--- a/tests/data/metadata/fence_ilo3_ssh.xml
e15206
+++ b/tests/data/metadata/fence_ilo3_ssh.xml
e15206
@@ -124,7 +124,12 @@ WARNING: The monitor-action is prone to timeouts. Use the fence_ilo-equivalent t
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo4.xml b/tests/data/metadata/fence_ilo4.xml
e15206
index 68790266..210b05d2 100644
e15206
--- a/tests/data/metadata/fence_ilo4.xml
e15206
+++ b/tests/data/metadata/fence_ilo4.xml
e15206
@@ -123,7 +123,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo4_ssh.xml b/tests/data/metadata/fence_ilo4_ssh.xml
e15206
index a2c4614a..9b993dd5 100644
e15206
--- a/tests/data/metadata/fence_ilo4_ssh.xml
e15206
+++ b/tests/data/metadata/fence_ilo4_ssh.xml
e15206
@@ -124,7 +124,12 @@ WARNING: The monitor-action is prone to timeouts. Use the fence_ilo-equivalent t
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo_moonshot.xml b/tests/data/metadata/fence_ilo_moonshot.xml
e15206
index 00e43840..1e31424a 100644
e15206
--- a/tests/data/metadata/fence_ilo_moonshot.xml
e15206
+++ b/tests/data/metadata/fence_ilo_moonshot.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo_mp.xml b/tests/data/metadata/fence_ilo_mp.xml
e15206
index 2bba33dc..b825cd32 100644
e15206
--- a/tests/data/metadata/fence_ilo_mp.xml
e15206
+++ b/tests/data/metadata/fence_ilo_mp.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ilo_ssh.xml b/tests/data/metadata/fence_ilo_ssh.xml
e15206
index 1c8145b8..df87fd5f 100644
e15206
--- a/tests/data/metadata/fence_ilo_ssh.xml
e15206
+++ b/tests/data/metadata/fence_ilo_ssh.xml
e15206
@@ -124,7 +124,12 @@ WARNING: The monitor-action is prone to timeouts. Use the fence_ilo-equivalent t
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_imm.xml b/tests/data/metadata/fence_imm.xml
e15206
index e22e4723..d00ad7fa 100644
e15206
--- a/tests/data/metadata/fence_imm.xml
e15206
+++ b/tests/data/metadata/fence_imm.xml
e15206
@@ -123,7 +123,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_intelmodular.xml b/tests/data/metadata/fence_intelmodular.xml
e15206
index 5e0d3b19..ed5afcb8 100644
e15206
--- a/tests/data/metadata/fence_intelmodular.xml
e15206
+++ b/tests/data/metadata/fence_intelmodular.xml
e15206
@@ -122,7 +122,12 @@ Note: Since firmware update version 2.7, SNMP v2 write support is removed, and r
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ipdu.xml b/tests/data/metadata/fence_ipdu.xml
e15206
index 546e372c..78575c7c 100644
e15206
--- a/tests/data/metadata/fence_ipdu.xml
e15206
+++ b/tests/data/metadata/fence_ipdu.xml
e15206
@@ -120,7 +120,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ipmilan.xml b/tests/data/metadata/fence_ipmilan.xml
e15206
index 3e13d288..d4c23f73 100644
e15206
--- a/tests/data/metadata/fence_ipmilan.xml
e15206
+++ b/tests/data/metadata/fence_ipmilan.xml
e15206
@@ -123,7 +123,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ironic.xml b/tests/data/metadata/fence_ironic.xml
e15206
index 5775f285..84beaffc 100644
e15206
--- a/tests/data/metadata/fence_ironic.xml
e15206
+++ b/tests/data/metadata/fence_ironic.xml
e15206
@@ -76,7 +76,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ldom.xml b/tests/data/metadata/fence_ldom.xml
e15206
index b3c53458..4bb38571 100644
e15206
--- a/tests/data/metadata/fence_ldom.xml
e15206
+++ b/tests/data/metadata/fence_ldom.xml
e15206
@@ -113,7 +113,12 @@ Very useful parameter is -c (or cmd_prompt in stdin mode). This must be set to s
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_lpar.xml b/tests/data/metadata/fence_lpar.xml
e15206
index 16d43a78..7ddc2c45 100644
e15206
--- a/tests/data/metadata/fence_lpar.xml
e15206
+++ b/tests/data/metadata/fence_lpar.xml
e15206
@@ -125,7 +125,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_mpath.xml b/tests/data/metadata/fence_mpath.xml
e15206
index f5e60823..83d69f6c 100644
e15206
--- a/tests/data/metadata/fence_mpath.xml
e15206
+++ b/tests/data/metadata/fence_mpath.xml
e15206
@@ -37,7 +37,12 @@ The fence_mpath agent works by having a unique key for each node that has to be
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_netio.xml b/tests/data/metadata/fence_netio.xml
e15206
index 79d27af3..b409bde7 100644
e15206
--- a/tests/data/metadata/fence_netio.xml
e15206
+++ b/tests/data/metadata/fence_netio.xml
e15206
@@ -71,7 +71,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_openstack.xml b/tests/data/metadata/fence_openstack.xml
e15206
index 22517657..645cd655 100644
e15206
--- a/tests/data/metadata/fence_openstack.xml
e15206
+++ b/tests/data/metadata/fence_openstack.xml
e15206
@@ -101,7 +101,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_ovh.xml b/tests/data/metadata/fence_ovh.xml
e15206
index b2767cc0..e8160bf7 100644
e15206
--- a/tests/data/metadata/fence_ovh.xml
e15206
+++ b/tests/data/metadata/fence_ovh.xml
e15206
@@ -61,7 +61,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_powerman.xml b/tests/data/metadata/fence_powerman.xml
e15206
index ce72e002..3bf56882 100644
e15206
--- a/tests/data/metadata/fence_powerman.xml
e15206
+++ b/tests/data/metadata/fence_powerman.xml
e15206
@@ -41,7 +41,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_pve.xml b/tests/data/metadata/fence_pve.xml
e15206
index 5d744903..1c83f2ef 100644
e15206
--- a/tests/data/metadata/fence_pve.xml
e15206
+++ b/tests/data/metadata/fence_pve.xml
e15206
@@ -94,7 +94,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_raritan.xml b/tests/data/metadata/fence_raritan.xml
e15206
index 565eebc7..537cb141 100644
e15206
--- a/tests/data/metadata/fence_raritan.xml
e15206
+++ b/tests/data/metadata/fence_raritan.xml
e15206
@@ -71,7 +71,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_rcd_serial.xml b/tests/data/metadata/fence_rcd_serial.xml
e15206
index c22f78de..b2a20cb7 100644
e15206
--- a/tests/data/metadata/fence_rcd_serial.xml
e15206
+++ b/tests/data/metadata/fence_rcd_serial.xml
e15206
@@ -29,7 +29,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_redfish.xml b/tests/data/metadata/fence_redfish.xml
e15206
index 91b483b7..32ea402e 100644
e15206
--- a/tests/data/metadata/fence_redfish.xml
e15206
+++ b/tests/data/metadata/fence_redfish.xml
e15206
@@ -106,7 +106,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_rhevm.xml b/tests/data/metadata/fence_rhevm.xml
e15206
index 73c9906f..deb326c3 100644
e15206
--- a/tests/data/metadata/fence_rhevm.xml
e15206
+++ b/tests/data/metadata/fence_rhevm.xml
e15206
@@ -115,7 +115,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_rsa.xml b/tests/data/metadata/fence_rsa.xml
e15206
index f9a55f82..51009427 100644
e15206
--- a/tests/data/metadata/fence_rsa.xml
e15206
+++ b/tests/data/metadata/fence_rsa.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_rsb.xml b/tests/data/metadata/fence_rsb.xml
e15206
index 022835be..7d8575d1 100644
e15206
--- a/tests/data/metadata/fence_rsb.xml
e15206
+++ b/tests/data/metadata/fence_rsb.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_sanbox2.xml b/tests/data/metadata/fence_sanbox2.xml
e15206
index 7e20c8ce..bf07f360 100644
e15206
--- a/tests/data/metadata/fence_sanbox2.xml
e15206
+++ b/tests/data/metadata/fence_sanbox2.xml
e15206
@@ -81,7 +81,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_sbd.xml b/tests/data/metadata/fence_sbd.xml
e15206
index 6095a74b..db52b49a 100644
e15206
--- a/tests/data/metadata/fence_sbd.xml
e15206
+++ b/tests/data/metadata/fence_sbd.xml
e15206
@@ -39,7 +39,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_scsi.xml b/tests/data/metadata/fence_scsi.xml
e15206
index d0818b0d..ceb79de5 100644
e15206
--- a/tests/data/metadata/fence_scsi.xml
e15206
+++ b/tests/data/metadata/fence_scsi.xml
e15206
@@ -54,7 +54,12 @@ When used as a watchdog device you can define e.g. retry=1, retry-sleep=2 and ve
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_tripplite_snmp.xml b/tests/data/metadata/fence_tripplite_snmp.xml
e15206
index d3769133..becc0d18 100644
e15206
--- a/tests/data/metadata/fence_tripplite_snmp.xml
e15206
+++ b/tests/data/metadata/fence_tripplite_snmp.xml
e15206
@@ -121,7 +121,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_vbox.xml b/tests/data/metadata/fence_vbox.xml
e15206
index 3b53c7d2..045fbe9e 100644
e15206
--- a/tests/data/metadata/fence_vbox.xml
e15206
+++ b/tests/data/metadata/fence_vbox.xml
e15206
@@ -113,7 +113,12 @@ By default, vbox needs to log in as a user that is a member of the vboxusers gro
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_virsh.xml b/tests/data/metadata/fence_virsh.xml
e15206
index 864986d0..2ab09c33 100644
e15206
--- a/tests/data/metadata/fence_virsh.xml
e15206
+++ b/tests/data/metadata/fence_virsh.xml
e15206
@@ -113,7 +113,12 @@ By default, virsh needs root account to do properly work. So you must allow ssh
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_vmware.xml b/tests/data/metadata/fence_vmware.xml
e15206
index 48fc408b..14b504ed 100644
e15206
--- a/tests/data/metadata/fence_vmware.xml
e15206
+++ b/tests/data/metadata/fence_vmware.xml
e15206
@@ -124,7 +124,12 @@ After you have successfully installed VI Perl Toolkit or VIX API, you should be
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_vmware_rest.xml b/tests/data/metadata/fence_vmware_rest.xml
e15206
index 830b6a21..41b09ba2 100644
e15206
--- a/tests/data/metadata/fence_vmware_rest.xml
e15206
+++ b/tests/data/metadata/fence_vmware_rest.xml
e15206
@@ -102,7 +102,12 @@ NOTE: If there's more than 1000 VMs there is a filter parameter to work around t
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_vmware_soap.xml b/tests/data/metadata/fence_vmware_soap.xml
e15206
index da6a1002..ee385adf 100644
e15206
--- a/tests/data/metadata/fence_vmware_soap.xml
e15206
+++ b/tests/data/metadata/fence_vmware_soap.xml
e15206
@@ -93,7 +93,12 @@ Name of virtual machine (-n / port) has to be used in inventory path format (e.g
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_vmware_vcloud.xml b/tests/data/metadata/fence_vmware_vcloud.xml
e15206
index 505eaf2b..21c9b77d 100644
e15206
--- a/tests/data/metadata/fence_vmware_vcloud.xml
e15206
+++ b/tests/data/metadata/fence_vmware_vcloud.xml
e15206
@@ -95,7 +95,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_wti.xml b/tests/data/metadata/fence_wti.xml
e15206
index 872e4a90..8064b703 100644
e15206
--- a/tests/data/metadata/fence_wti.xml
e15206
+++ b/tests/data/metadata/fence_wti.xml
e15206
@@ -111,7 +111,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_xenapi.xml b/tests/data/metadata/fence_xenapi.xml
e15206
index f6f4e46d..a1694ec5 100644
e15206
--- a/tests/data/metadata/fence_xenapi.xml
e15206
+++ b/tests/data/metadata/fence_xenapi.xml
e15206
@@ -61,7 +61,12 @@
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
diff --git a/tests/data/metadata/fence_zvmip.xml b/tests/data/metadata/fence_zvmip.xml
e15206
index 408ad977..95c2ded3 100644
e15206
--- a/tests/data/metadata/fence_zvmip.xml
e15206
+++ b/tests/data/metadata/fence_zvmip.xml
e15206
@@ -104,7 +104,12 @@ to access the system's directory manager.
e15206
 	<parameter name="verbose" unique="0" required="0">
e15206
 		<getopt mixed="-v, --verbose" />
e15206
 		<content type="boolean"  />
e15206
-		<shortdesc lang="en">Verbose mode</shortdesc>
e15206
+		<shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
e15206
+	</parameter>
e15206
+	<parameter name="verbose_level" unique="0" required="0">
e15206
+		<getopt mixed="--verbose-level" />
e15206
+		<content type="integer"  />
e15206
+		<shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
e15206
 	</parameter>
e15206
 	<parameter name="debug" unique="0" required="0" deprecated="1">
e15206
 		<getopt mixed="-D, --debug-file=[debugfile]" />
e15206
e15206
From 60544f8642c483fce74d3c146d29c3c1a8bdd021 Mon Sep 17 00:00:00 2001
e15206
From: Reid wahl <nrwahl@protonmail.com>
e15206
Date: Thu, 9 Jul 2020 22:17:15 -0700
e15206
Subject: [PATCH 2/2] fence_ipmilan: Add ability to increase ipmitool verbosity
e15206
e15206
Currently, the `-v` flag only causes the `ipmitool` command line and
e15206
output to be printed.
e15206
e15206
This patch allows `fence_ipmilan` to accept additional `-v` flags and
e15206
pass them on to `ipmitool` to get more verbosity.
e15206
e15206
Depends on: PR#346
e15206
Resolves: RHBZ#1853973
e15206
---
e15206
 agents/ipmilan/fence_ipmilan.py | 4 ++++
e15206
 1 file changed, 4 insertions(+)
e15206
e15206
diff --git a/agents/ipmilan/fence_ipmilan.py b/agents/ipmilan/fence_ipmilan.py
e15206
index ecd35582..ee014e79 100644
e15206
--- a/agents/ipmilan/fence_ipmilan.py
e15206
+++ b/agents/ipmilan/fence_ipmilan.py
e15206
@@ -92,6 +92,10 @@ def append(cls, cmd, log=None):
e15206
 	# --action / -o
e15206
 	Cmd.append(" chassis power " + action)
e15206
 
e15206
+	# --verbose-level
e15206
+	if options["--verbose-level"] > 1:
e15206
+		Cmd.append(" -" + "v" * (options["--verbose-level"] - 1))
e15206
+
e15206
 	return (Cmd.cmd, Cmd.log)
e15206
 
e15206
 def define_new_opts():