OCF_HEARTBEAT_OPENST(7)
β¨ ocf_heartbeat_openstack-virtual-ip β¨
okay bestie, pull up a chair π this is the OCF_HEARTBEAT_OPENST(7) page, which means it lives in section 7 of the manual (that's the "miscellaneous / conventions" girlies) and it's part of the resource-agents family. let's get into it π
πΈ NAME πΈ
ocf_heartbeat_openstack-virtual-ip β Move a virtual IP π¦
like. that's the whole job. she moves a virtual IP. no cap.
β¨ SYNOPSIS β¨
openstack-virtual-ip [start | stop | monitor | meta-data | validate-all]
those are the five actions, and yes we will be covering all of them, don't scroll π
π DESCRIPTION π
So this is a Resource Agent (an OCF agent, iykyk) whose entire main character moment is moving a virtual IP address from one instance to another π₯
The way she does it is iconic: she adds an allowed-address pair that's associated with an instance port. that's the mechanism. that's the move. periodt.
She does not figure all that out by herself though β she relies on attributes handed to her by the openstack-info resource agent, specifically openstack_ports and openstack_id. so those better be there fr fr π
And then the attribute called "openstack_virtual_ip" gets updated. she updates it. that's her whole vibe. π
π SUPPORTED PARAMETERS π
bestie these are a lot but every single one matters, no skipping βπ
cloudβ the Openstack cloud, and she'll find it either from~/.config/openstack/clouds.yamlor/etc/openstack/clouds.yaml. (optional, string, no default)openrcβ Openstack credentials, in the form of an openrc file fromapi_access/openrc. (optional, string, no default)auth_urlβ the Keystone Auth URL. (optional, string, no default)usernameβ Username. yeah. just. the username π«Ά (optional, string, no default)passwordβ Password. π€« (optional, string, no default)project_nameβ Keystone Project. (optional, string, no default)user_domain_nameβ Keystone User Domain Name. (optional, string, default"Default")project_domain_nameβ Keystone Project Domain Name. (optional, string, default"Default")openstackcliβ Path to command line tools for openstack. (optional, string, default/usr/bin/openstack)insecureβ Allow insecure connections. π (optional, boolean, defaultfalse)ipβ Virtual IP Address. this one is literally the whole point of her existence, bestie. (required, string, no default)subnet_idβ Subnet Identifier to use to attach the address. (required, string, no default)
β οΈ heads up:ipandsubnet_idare required. she will not function without them. that's not a suggestion, that's a vibe check she will fail. π
π¦ SUPPORTED ACTIONS π¦
This resource agent supports the following actions (operations):
startβ Starts the resource. Suggested minimum timeout:180s.stopβ Stops the resource. Suggested minimum timeout:180s.monitorβ Performs a detailed status check. Suggested minimum timeout:180s. Suggested interval:60s. she's checking on you every minute, bestie, that's love πvalidate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:5s.meta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s. internal use only, so mind your business π
π EXAMPLE CRM SHELL π
Here's an example configuration for a openstack-virtual-ip resource using the crm(8) shell β copy it, she's cute:
primitive p_openstack-virtual-ip ocf:heartbeat:openstack-virtual-ip \
params \
ip=string \
subnet_id=string \
op monitor depth="0" timeout="180s" interval="60s"
π EXAMPLE PCS π
And here's the same energy but for pcs(8) β the other girlies' preferred tool:
pcs resource create p_openstack-virtual-ip ocf:heartbeat:openstack-virtual-ip \
ip=string \
subnet_id=string \
op monitor OCF_CHECK_LEVEL="0" timeout="180s" interval="60s"
note the monitor line is a little different between the two (depth="0" vs OCF_CHECK_LEVEL="0") β that's just how each tool says it, both mean "check level 0" π
π SEE ALSO π
- http://clusterlabs.org/ β go say hi, she's the mothership π«Ά
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) β it's a whole collective, we love a collaborative queen π
and that's the page, bestie!! β¨πΈπ¦π
this was resource-agents version UNKNOWN, dated 04/08/2026, served fresh from OCF_HEARTBEAT_OPENST(7) π
mwah, go configure something iconic πβ¨
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms