Blame SOURCES/bz1296201-fence_amt_ws-new-fence-agent.patch

4822a5
diff -uNr a/configure.ac b/configure.ac
4822a5
--- a/configure.ac	2017-10-05 14:14:39.688675727 +0200
4822a5
+++ b/configure.ac	2017-10-05 14:15:17.964291884 +0200
4822a5
@@ -265,7 +265,8 @@
4822a5
 		 fence/agents/alom/Makefile
4822a5
 		 fence/agents/apc/Makefile
4822a5
 		 fence/agents/apc_snmp/Makefile
4822a5
-		 fence/agents/amt/Makefile 
4822a5
+		 fence/agents/amt/Makefile
4822a5
+		 fence/agents/amt_ws/Makefile
4822a5
 		 fence/agents/bladecenter/Makefile
4822a5
 		 fence/agents/brocade/Makefile
4822a5
 		 fence/agents/cisco_mds/Makefile
4822a5
diff -uNr a/fence/agents/amt_ws/fence_amt_ws.py b/fence/agents/amt_ws/fence_amt_ws.py
4822a5
--- a/fence/agents/amt_ws/fence_amt_ws.py	1970-01-01 01:00:00.000000000 +0100
4822a5
+++ b/fence/agents/amt_ws/fence_amt_ws.py	2017-10-05 14:15:17.965291874 +0200
4822a5
@@ -0,0 +1,243 @@
4822a5
+#!/usr/bin/python -tt
4822a5
+
4822a5
+#
4822a5
+# Fence agent for Intel AMT (WS) based on code from the openstack/ironic project:
4822a5
+# https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/amt/power.py
4822a5
+#
4822a5
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
4822a5
+# not use this file except in compliance with the License. You may obtain
4822a5
+# a copy of the License at
4822a5
+#
4822a5
+#      http://www.apache.org/licenses/LICENSE-2.0
4822a5
+#
4822a5
+# Unless required by applicable law or agreed to in writing, software
4822a5
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
4822a5
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
4822a5
+# License for the specific language governing permissions and limitations
4822a5
+# under the License.
4822a5
+#
4822a5
+
4822a5
+import sys
4822a5
+import atexit
4822a5
+import logging
4822a5
+sys.path.append("@FENCEAGENTSLIBDIR@")
4822a5
+from fencing import *
4822a5
+from fencing import run_delay, fail_usage, fail, EC_STATUS
4822a5
+
4822a5
+import pywsman
4822a5
+from xml.etree import ElementTree
4822a5
+
4822a5
+
4822a5
+#BEGIN_VERSION_GENERATION
4822a5
+RELEASE_VERSION="Fence agent for Intel AMT (WS)"
4822a5
+REDHAT_COPYRIGHT=""
4822a5
+BUILD_DATE=""
4822a5
+#END_VERSION_GENERATION
4822a5
+
4822a5
+POWER_ON='2'
4822a5
+POWER_OFF='8'
4822a5
+POWER_CYCLE='10'
4822a5
+
4822a5
+RET_SUCCESS = '0'
4822a5
+
4822a5
+CIM_PowerManagementService           = ('http://schemas.dmtf.org/wbem/wscim/1/'
4822a5
+                                        'cim-schema/2/CIM_PowerManagementService')
4822a5
+CIM_ComputerSystem                   = ('http://schemas.dmtf.org/wbem/wscim/'
4822a5
+                                        '1/cim-schema/2/CIM_ComputerSystem')
4822a5
+CIM_AssociatedPowerManagementService = ('http://schemas.dmtf.org/wbem/wscim/'
4822a5
+                                        '1/cim-schema/2/'
4822a5
+                                        'CIM_AssociatedPowerManagementService')
4822a5
+
4822a5
+CIM_BootConfigSetting                = ('http://schemas.dmtf.org/wbem/wscim/'
4822a5
+                                        '1/cim-schema/2/CIM_BootConfigSetting')
4822a5
+CIM_BootSourceSetting                = ('http://schemas.dmtf.org/wbem/wscim/'
4822a5
+                                        '1/cim-schema/2/CIM_BootSourceSetting')
4822a5
+
4822a5
+
4822a5
+def xml_find(doc, namespace, item):
4822a5
+    if doc is None:
4822a5
+        return
4822a5
+    tree = ElementTree.fromstring(doc.root().string())
4822a5
+    query = ('.//{%(namespace)s}%(item)s' % {'namespace': namespace,
4822a5
+                                             'item': item})
4822a5
+    return tree.find(query)
4822a5
+
4822a5
+def _generate_power_action_input(action):
4822a5
+    method_input = "RequestPowerStateChange_INPUT"
4822a5
+    address = 'http://schemas.xmlsoap.org/ws/2004/08/addressing'
4822a5
+    anonymous = ('http://schemas.xmlsoap.org/ws/2004/08/addressing/'
4822a5
+                 'role/anonymous')
4822a5
+    wsman = 'http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'
4822a5
+    namespace = CIM_PowerManagementService
4822a5
+
4822a5
+    doc = pywsman.XmlDoc(method_input)
4822a5
+    root = doc.root()
4822a5
+    root.set_ns(namespace)
4822a5
+    root.add(namespace, 'PowerState', action)
4822a5
+
4822a5
+    child = root.add(namespace, 'ManagedElement', None)
4822a5
+    child.add(address, 'Address', anonymous)
4822a5
+
4822a5
+    grand_child = child.add(address, 'ReferenceParameters', None)
4822a5
+    grand_child.add(wsman, 'ResourceURI', CIM_ComputerSystem)
4822a5
+
4822a5
+    g_grand_child = grand_child.add(wsman, 'SelectorSet', None)
4822a5
+    g_g_grand_child = g_grand_child.add(wsman, 'Selector', 'ManagedSystem')
4822a5
+    g_g_grand_child.attr_add(wsman, 'Name', 'Name')
4822a5
+    return doc
4822a5
+
4822a5
+def get_power_status(_, options):
4822a5
+    client = pywsman.Client(options["--ip"], int(options["--ipport"]), \
4822a5
+                            '/wsman', 'http', 'admin', options["--password"])
4822a5
+    namespace = CIM_AssociatedPowerManagementService
4822a5
+    client_options = pywsman.ClientOptions()
4822a5
+    doc = client.get(client_options, namespace)
4822a5
+    _SOAP_ENVELOPE = 'http://www.w3.org/2003/05/soap-envelope'
4822a5
+    item = 'Fault'
4822a5
+    fault = xml_find(doc, _SOAP_ENVELOPE, item)
4822a5
+    if fault is not None:
4822a5
+        logging.error("Failed to get power state for: %s port:%s", \
4822a5
+                      options["--ip"], options["--ipport"])
4822a5
+        fail(EC_STATUS)
4822a5
+
4822a5
+    item = "PowerState"
4822a5
+    try: power_state = xml_find(doc, namespace, item).text
4822a5
+    except AttributeError:
4822a5
+        logging.error("Failed to get power state for: %s port:%s", \
4822a5
+                      options["--ip"], options["--ipport"])
4822a5
+        fail(EC_STATUS)
4822a5
+    if power_state == POWER_ON:
4822a5
+        return "on"
4822a5
+    elif power_state == POWER_OFF:
4822a5
+        return "off"
4822a5
+    else:
4822a5
+        fail(EC_STATUS)
4822a5
+
4822a5
+def set_power_status(_, options):
4822a5
+    client = pywsman.Client(options["--ip"], int(options["--ipport"]), \
4822a5
+                            '/wsman', 'http', 'admin', options["--password"])
4822a5
+
4822a5
+    method = 'RequestPowerStateChange'
4822a5
+    client_options = pywsman.ClientOptions()
4822a5
+    client_options.add_selector('Name', 'Intel(r) AMT Power Management Service')
4822a5
+
4822a5
+    if options["--action"] == "on":
4822a5
+        target_state = POWER_ON
4822a5
+    elif options["--action"] == "off":
4822a5
+        target_state = POWER_OFF
4822a5
+    elif options["--action"] == "reboot":
4822a5
+        target_state = POWER_CYCLE
4822a5
+    if options["--action"] in ["on", "off", "reboot"] \
4822a5
+       and options.has_key("--boot-option"):
4822a5
+        set_boot_order(_, client, options)
4822a5
+
4822a5
+    doc = _generate_power_action_input(target_state)
4822a5
+    client_doc = client.invoke(client_options, CIM_PowerManagementService, \
4822a5
+                               method, doc)
4822a5
+    item = "ReturnValue"
4822a5
+    return_value = xml_find(client_doc, CIM_PowerManagementService, item).text
4822a5
+    if return_value != RET_SUCCESS:
4822a5
+        logging.error("Failed to set power state: %s for: %s", \
4822a5
+                      options["--action"], options["--ip"])
4822a5
+        fail(EC_STATUS)
4822a5
+
4822a5
+def set_boot_order(_, client, options):
4822a5
+    method_input = "ChangeBootOrder_INPUT"
4822a5
+    address = 'http://schemas.xmlsoap.org/ws/2004/08/addressing'
4822a5
+    anonymous = ('http://schemas.xmlsoap.org/ws/2004/08/addressing/'
4822a5
+                 'role/anonymous')
4822a5
+    wsman = 'http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'
4822a5
+    namespace = CIM_BootConfigSetting
4822a5
+
4822a5
+    if options["--boot-option"] == "pxe":
4822a5
+        device = "Intel(r) AMT: Force PXE Boot"
4822a5
+    elif options["--boot-option"] in ["hd", "hdsafe"]:
4822a5
+        device = "Intel(r) AMT: Force Hard-drive Boot"
4822a5
+    elif options["--boot-option"] == "cd":
4822a5
+        device = "Intel(r) AMT: Force CD/DVD Boot"
4822a5
+    elif options["--boot-option"] == "diag":
4822a5
+        device = "Intel(r) AMT: Force Diagnostic Boot"
4822a5
+    else:
4822a5
+        logging.error('Boot device: %s not supported.', \
4822a5
+                      options["--boot-option"])
4822a5
+        return
4822a5
+
4822a5
+    method = 'ChangeBootOrder'
4822a5
+    client_options = pywsman.ClientOptions()
4822a5
+    client_options.add_selector('InstanceID', \
4822a5
+                                'Intel(r) AMT: Boot Configuration 0')
4822a5
+
4822a5
+    doc = pywsman.XmlDoc(method_input)
4822a5
+    root = doc.root()
4822a5
+    root.set_ns(namespace)
4822a5
+
4822a5
+    child = root.add(namespace, 'Source', None)
4822a5
+    child.add(address, 'Address', anonymous)
4822a5
+
4822a5
+    grand_child = child.add(address, 'ReferenceParameters', None)
4822a5
+    grand_child.add(wsman, 'ResourceURI', CIM_BootSourceSetting)
4822a5
+
4822a5
+    g_grand_child = grand_child.add(wsman, 'SelectorSet', None)
4822a5
+    g_g_grand_child = g_grand_child.add(wsman, 'Selector', device)
4822a5
+    g_g_grand_child.attr_add(wsman, 'Name', 'InstanceID')
4822a5
+    if options["--boot-option"] == "hdsafe":
4822a5
+        g_g_grand_child = g_grand_child.add(wsman, 'Selector', 'True')
4822a5
+        g_g_grand_child.attr_add(wsman, 'Name', 'UseSafeMode')
4822a5
+
4822a5
+    client_doc = client.invoke(client_options, CIM_BootConfigSetting, \
4822a5
+                               method, doc)
4822a5
+    item = "ReturnValue"
4822a5
+    return_value = xml_find(client_doc, CIM_BootConfigSetting, item).text
4822a5
+    if return_value != RET_SUCCESS:
4822a5
+        logging.error("Failed to set boot device to: %s for: %s", \
4822a5
+                      options["--boot-option"], options["--ip"])
4822a5
+        fail(EC_STATUS)
4822a5
+
4822a5
+def reboot_cycle(_, options):
4822a5
+    status = set_power_status(_, options)
4822a5
+    return not bool(status)
4822a5
+
4822a5
+def define_new_opts():
4822a5
+    all_opt["boot_option"] = {
4822a5
+        "getopt" : "b:",
4822a5
+        "longopt" : "boot-option",
4822a5
+        "help" : "-b, --boot-option=[option]     "
4822a5
+                "Change the default boot behavior of the\n"
4822a5
+                "                                  machine."
4822a5
+                " (pxe|hd|hdsafe|cd|diag)",
4822a5
+        "required" : "0",
4822a5
+        "shortdesc" : "Change the default boot behavior of the machine.",
4822a5
+        "choices" : ["pxe", "hd", "hdsafe", "cd", "diag"],
4822a5
+        "order" : 1
4822a5
+    }
4822a5
+
4822a5
+def main():
4822a5
+    atexit.register(atexit_handler)
4822a5
+
4822a5
+    device_opt = ["ipaddr", "no_login", "passwd", "boot_option", "no_port",
4822a5
+                  "method"]
4822a5
+
4822a5
+    define_new_opts()
4822a5
+
4822a5
+    all_opt["ipport"]["default"] = "16992"
4822a5
+
4822a5
+    options = check_input(device_opt, process_input(device_opt))
4822a5
+
4822a5
+    docs = {}
4822a5
+    docs["shortdesc"] = "Fence agent for AMT (WS)"
4822a5
+    docs["longdesc"] = "fence_amt_ws is an I/O Fencing agent \
4822a5
+which can be used with Intel AMT (WS). This agent requires \
4822a5
+the pywsman Python library which is included in OpenWSMAN. \
4822a5
+(http://openwsman.github.io/)."
4822a5
+    docs["vendorurl"] = "http://www.intel.com/"
4822a5
+    show_docs(options, docs)
4822a5
+
4822a5
+    run_delay(options)
4822a5
+
4822a5
+    result = fence_action(None, options, set_power_status, get_power_status, \
4822a5
+                          None, reboot_cycle)
4822a5
+
4822a5
+    sys.exit(result)
4822a5
+
4822a5
+if __name__ == "__main__":
4822a5
+    main()
4822a5
diff -uNr a/fence/agents/amt_ws/Makefile.am b/fence/agents/amt_ws/Makefile.am
4822a5
--- a/fence/agents/amt_ws/Makefile.am	1970-01-01 01:00:00.000000000 +0100
4822a5
+++ b/fence/agents/amt_ws/Makefile.am	2017-10-05 14:15:17.965291874 +0200
4822a5
@@ -0,0 +1,17 @@
4822a5
+MAINTAINERCLEANFILES	= Makefile.in
4822a5
+
4822a5
+TARGET			= fence_amt_ws
4822a5
+
4822a5
+SRC			= $(TARGET).py
4822a5
+
4822a5
+EXTRA_DIST		= $(SRC)
4822a5
+
4822a5
+sbin_SCRIPTS		= $(TARGET)
4822a5
+
4822a5
+man_MANS		= $(TARGET).8
4822a5
+
4822a5
+FENCE_TEST_ARGS         = -p test -a test
4822a5
+
4822a5
+include $(top_srcdir)/make/fencebuild.mk
4822a5
+include $(top_srcdir)/make/fenceman.mk
4822a5
+include $(top_srcdir)/make/agentpycheck.mk
4822a5
diff -uNr a/tests/data/metadata/fence_amt_ws.xml b/tests/data/metadata/fence_amt_ws.xml
4822a5
--- a/tests/data/metadata/fence_amt_ws.xml	1970-01-01 01:00:00.000000000 +0100
4822a5
+++ b/tests/data/metadata/fence_amt_ws.xml	2017-10-05 14:10:49.145987710 +0200
4822a5
@@ -0,0 +1,155 @@
4822a5
+
4822a5
+<resource-agent name="fence_amt_ws" shortdesc="Fence agent for AMT (WS)" >
4822a5
+<longdesc>fence_amt_ws is an I/O Fencing agent which can be used with Intel AMT (WS). This agent requires the pywsman Python library which is included in OpenWSMAN. (http://openwsman.github.io/).</longdesc>
4822a5
+<vendor-url>http://www.intel.com/</vendor-url>
4822a5
+<parameters>
4822a5
+	<parameter name="ipport" unique="0" required="0">
4822a5
+		<getopt mixed="-u, --ipport=[port]" />
4822a5
+		<content type="integer" default="16992"  />
4822a5
+		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="port" unique="0" required="0" deprecated="1">
4822a5
+		<getopt mixed="-n, --plug=[ip]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="inet6_only" unique="0" required="0">
4822a5
+		<getopt mixed="-6, --inet6-only" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Forces agent to use IPv6 addresses only</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="ipaddr" unique="0" required="0" deprecated="1">
4822a5
+		<getopt mixed="-a, --ip=[ip]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">IP Address or Hostname</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="inet4_only" unique="0" required="0">
4822a5
+		<getopt mixed="-4, --inet4-only" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Forces agent to use IPv4 addresses only</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="method" unique="0" required="0">
4822a5
+		<getopt mixed="-m, --method=[method]" />
4822a5
+		<content type="select" default="onoff"  >
4822a5
+			<option value="onoff" />
4822a5
+			<option value="cycle" />
4822a5
+		</content>
4822a5
+		<shortdesc lang="en">Method to fence (onoff|cycle)</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="passwd_script" unique="0" required="0" deprecated="1">
4822a5
+		<getopt mixed="-S, --password-script=[script]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Script to retrieve password</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="passwd" unique="0" required="0" deprecated="1">
4822a5
+		<getopt mixed="-p, --password=[password]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Login password or passphrase</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="boot_option" unique="0" required="0">
4822a5
+		<getopt mixed="-b, --boot-option=[option]" />
4822a5
+		<content type="select"  >
4822a5
+			<option value="pxe" />
4822a5
+			<option value="hd" />
4822a5
+			<option value="hdsafe" />
4822a5
+			<option value="cd" />
4822a5
+			<option value="diag" />
4822a5
+		</content>
4822a5
+		<shortdesc lang="en">Change the default boot behavior of the machine.</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="action" unique="0" required="1">
4822a5
+		<getopt mixed="-o, --action=[action]" />
4822a5
+		<content type="string" default="reboot"  />
4822a5
+		<shortdesc lang="en">Fencing Action</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="plug" unique="0" required="0" obsoletes="port">
4822a5
+		<getopt mixed="-n, --plug=[ip]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="ip" unique="0" required="0" obsoletes="ipaddr">
4822a5
+		<getopt mixed="-a, --ip=[ip]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">IP Address or Hostname</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="password" unique="0" required="0" obsoletes="passwd">
4822a5
+		<getopt mixed="-p, --password=[password]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Login password or passphrase</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="password_script" unique="0" required="0" obsoletes="passwd_script">
4822a5
+		<getopt mixed="-S, --password-script=[script]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Script to retrieve password</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="verbose" unique="0" required="0">
4822a5
+		<getopt mixed="-v, --verbose" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Verbose mode</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="debug" unique="0" required="0" deprecated="1">
4822a5
+		<getopt mixed="-D, --debug-file=[debugfile]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Write debug information to given file</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="debug_file" unique="0" required="0" obsoletes="debug">
4822a5
+		<getopt mixed="-D, --debug-file=[debugfile]" />
4822a5
+		<content type="string"  />
4822a5
+		<shortdesc lang="en">Write debug information to given file</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="version" unique="0" required="0">
4822a5
+		<getopt mixed="-V, --version" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Display version information and exit</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="help" unique="0" required="0">
4822a5
+		<getopt mixed="-h, --help" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Display help and exit</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="power_wait" unique="0" required="0">
4822a5
+		<getopt mixed="--power-wait=[seconds]" />
4822a5
+		<content type="second" default="0"  />
4822a5
+		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="login_timeout" unique="0" required="0">
4822a5
+		<getopt mixed="--login-timeout=[seconds]" />
4822a5
+		<content type="second" default="5"  />
4822a5
+		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="power_timeout" unique="0" required="0">
4822a5
+		<getopt mixed="--power-timeout=[seconds]" />
4822a5
+		<content type="second" default="20"  />
4822a5
+		<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="delay" unique="0" required="0">
4822a5
+		<getopt mixed="--delay=[seconds]" />
4822a5
+		<content type="second" default="0"  />
4822a5
+		<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="shell_timeout" unique="0" required="0">
4822a5
+		<getopt mixed="--shell-timeout=[seconds]" />
4822a5
+		<content type="second" default="3"  />
4822a5
+		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="port_as_ip" unique="0" required="0">
4822a5
+		<getopt mixed="--port-as-ip" />
4822a5
+		<content type="boolean"  />
4822a5
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
4822a5
+	</parameter>
4822a5
+	<parameter name="retry_on" unique="0" required="0">
4822a5
+		<getopt mixed="--retry-on=[attempts]" />
4822a5
+		<content type="integer" default="1"  />
4822a5
+		<shortdesc lang="en">Count of attempts to retry power on</shortdesc>
4822a5
+	</parameter>
4822a5
+</parameters>
4822a5
+<actions>
4822a5
+	<action name="on" automatic="0"/>
4822a5
+	<action name="off" />
4822a5
+	<action name="reboot" />
4822a5
+	<action name="status" />
4822a5
+	<action name="monitor" />
4822a5
+	<action name="metadata" />
4822a5
+	<action name="validate-all" />
4822a5
+</actions>
4822a5
+</resource-agent>