OCF_HEARTBEAT_GCP-V(7)
π OCF_HEARTBEAT_GCP-V(7) β like, the whole manual page, bestie
okay so welcome to ocf_heartbeat_gcp-vpc-move-vip, from the OCF_HEARTBEAT_GCP-V(7) manual, no cap. this is the resource agent that moves a floating IP around on Google Cloud Platform, and honestly? it ate. let's get into it π«Ά
β¨ NAME β¨
ocf_heartbeat_gcp-vpc-move-vip β Floating IP Address or Range on Google Cloud Platform. that's the whole vibe π
β¨ SYNOPSIS β¨
gcp-vpc-move-vip [start | stop | monitor | meta-data | validate-all]
like, those are your five actions, periodt.
π¦ DESCRIPTION π¦
Floating IP Address or Range on Google Cloud Platform β and the way it does it is so clever: it uses Alias IP address functionality to attach a secondary IP range to a running instance. literally attaching extra IPs to something that's already up. iconic behavior ngl β¨
πΈ SUPPORTED PARAMETERS πΈ
aka the knobs you can turn, bestie, pay attention π
alias_ipβ the IP range you wanna add, including the CIDR netmask (e.g.,192.168.0.1/32).
heads up: this one isunique,required,string, and has no default. so yeah, you HAVE to set it. no skipping π
alias_range_nameβ the Subnet name for the Alias IP.
(optional, string, no default)
hostlistβ List of hosts in the cluster, separated by spaces.
(optional, string, no default)
projectβ Project ID of the instance. It can be useful to set this attribute if the instance is in a shared service project. Otherwise, the agent should be able to determine the project ID automatically.
(optional, string, default "default")
serviceaccountβ Path to Service account JSON file.
(optional, string, no default)
stackdriver_loggingβ If enabled (set totrue), IP failover logs will be posted to stackdriver logging.
(optional, boolean, default false)
π SUPPORTED ACTIONS π
This resource agent supports the following actions (operations) β and yes, the timeouts are real, don't come for me:
startβ Starts the resource. Suggested minimum timeout:300s. (yeah she's a slow starter, give her three hundred seconds, she's worth it π )stopβ Stops the resource. Suggested minimum timeout:15s.monitorβ Performs a detailed status check. Suggested minimum timeout:15s. Suggested interval:60s.meta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:15s.validate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:15s.
π§ EXAMPLE CRM SHELL π§
The following is an example configuration for a gcp-vpc-move-vip resource using the crm(8) shell:
primitive p_gcp-vpc-move-vip ocf:heartbeat:gcp-vpc-move-vip \
params \
alias_ip=string \
op monitor timeout="15s" interval="60s" depth="0"
copy it, paste it, slay it π
π₯ EXAMPLE PCS π₯
The following is an example configuration for a gcp-vpc-move-vip resource using pcs(8):
pcs resource create p_gcp-vpc-move-vip ocf:heartbeat:gcp-vpc-move-vip \
alias_ip=string \
op monitor timeout="15s" interval="60s" OCF_CHECK_LEVEL="0"
note the OCF_CHECK_LEVEL="0" instead of depth="0" β different tool, different syntax, iykyk π
π SEE ALSO π
- http://clusterlabs.org/ β go look, it's giving documentation hub β
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors). love that for them, truly a group project that got an A π«Ά
and that's the whole page, bestie. no details left behind, we keep it thorough around here π
sign-off time: this gem comes from resource-agents (version UNKNOWN, yeah they never told us π) and the page is dated 10/01/2026. mwah π π
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms