table of contents
OCF_HEARTBEAT_OPENST(7) | OCF resource agents | OCF_HEARTBEAT_OPENST(7) |
NAME¶
ocf_heartbeat_openstack-info - Records various node attributes in the CIB
SYNOPSIS¶
openstack-info [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
OCF resource agent to set attributes from Openstack instance details. It records (in the CIB) various attributes of a node. Sample output: openstack_az : nova openstack_flavor : c1.small openstack_id : 60ac4343-5828-49b1-8aac-7c69b1417f31 openstack_ports : 7960d889-9750-4160-bf41-c69a41ad72d9:96530d18-57a3-4718-af32-30f2a74c22a2,b0e55a06-bd75-468d-8baa-22cfeb65799f:a55ae917-8016-4b1e-8ffa-04311b9dc7d6
The layout of openstack_ports is a comma-separated list of tuples "subnet_id:port_id".
SUPPORTED PARAMETERS¶
cloud
(optional, string, no default)
openrc
(optional, string, no default)
auth_url
(optional, string, no default)
username
(optional, string, no default)
password
(optional, string, no default)
project_name
(optional, string, no default)
user_domain_name
(optional, string, default "Default")
project_domain_name
(optional, string, default "Default")
openstackcli
(optional, string, default "/usr/bin/openstack")
insecure
(optional, boolean, default false)
pidfile
(optional, string, default "/run/resource-agents/OSInfo-")
delay
(optional, string, default "0")
curlcli
(optional, string, default "/usr/bin/curl")
pythoncli
(optional, string, default "/usr/bin/python3")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
EXAMPLE CRM SHELL¶
The following is an example configuration for a openstack-info resource using the crm(8) shell:
primitive p_openstack-info ocf:heartbeat:openstack-info \
op monitor timeout="180s" interval="60s"
EXAMPLE PCS¶
The following is an example configuration for a openstack-info resource using pcs(8)
pcs resource create p_openstack-info ocf:heartbeat:openstack-info \
op monitor timeout="180s" interval="60s"
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
10/05/2024 | resource-agents 4.15.1-2 |