FENCE_AGENT(8)
π fence_gce β bestie edition π
okay so this is fence_gce(8), a manual page from the System Manager's Manual, and honestly? it's giving "power fencing but make it Google Cloud." sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
fence_gce β the fence agent for GCE (Google Cloud Engine). no cap, that's literally the whole name section.
π¦ DESCRIPTION π¦
so fence_gce is a Power Fencing agent for GCE (Google Cloud Engine). it uses the googleapiclient library to connect to GCE, and like β that library can be configured with the Google SDK CLI, or by running:
gcloud auth application-default login
and if you need instructions, the actual docs live at https://cloud.google.com/compute/docs/tutorials/python-guide. go read them, i'll wait π
the fence agent accepts options on the command line as well as from stdin. why stdin, you ask? because Fenced sends parameters through stdin when it execs the agent. and the agent can also be run by itself with command line options β which is lowkey so useful for testing, and for turning outlets on or off from scripts. main character energy fr.
Vendor URL: http://cloud.google.com
πΈ PARAMETERS πΈ
here's the whole lineup, every single one, no skips:
-o,--action=[action]β the fencing action. (Default Value:reboot)-m,--method=[method]β method to fence (onoff|cycle). (Default Value:cycle)-n,--plug=[id]β physical plug number on device, UUID or identification of machine. this parameter is always required. periodt.--zone=[name]β zone.--project=[name]β project ID.--stackdriver-loggingβ stackdriver-logging support.--baremetalsolutionβ if enabled this is a bare metal offering from google.--apitimeout=[seconds]β timeout in seconds to use for API calls, default is 60. (Default Value:60)--retries=[retries]β number of retries on failure for API calls, default is 3. (Default Value:3)--retrysleep=[seconds]β time to sleep in seconds between API retries, default is 5. (Default Value:5)--serviceaccount=[filename]β service Account to use for authentication to the google cloud APIs.--plugzonemap=[plugzonemap]β comma separated zone map when fencing multiple plugs.--proxyhost=[proxy_host]β if a proxy is used for internet access, the proxy host should be specified.--proxyport=[proxy_port]β if a proxy is used for internet access, the proxy port should be specified.--earlyexitβ if an existing reset operation is detected, the fence agent will return before the operation completes with a0return code.--warntimeout=[warn_timeout]β if the operation is not completed within the timeout, the cluster operations are allowed to continue.--errortimeout=[error_timeout]β if the operation is not completed within the timeout, cluster is notified of the operation failure.--runonwarn=[run_on_warn]β if a timeout would occur while running the agent, then the supplied command is run.--runonfail=[run_on_fail]β if a failure would occur while running the agent, then the supplied command is run.-q,--quietβ disable logging to stderr. does not affect--verboseor--debug-fileor logging to syslog.-v,--verboseβ verbose mode. multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity.--verbose-levelβ level of debugging detail in output. defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).-D,--debug-file=[debugfile]β write debug information to given file.-V,--versionβ display version information and exit.-h,--helpβ display help and exit.--plug-separator=[char]β separator for plug parameter when specifying more than 1 plug. (Default Value:,)-C,--separator=[char]β separator for CSV created bylistoperation. (Default Value:,)--delay=[seconds]β wait X seconds before fencing is started. (Default Value:0)--disable-timeout=[true/false]β disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β wait X seconds for cmd prompt after login. (Default Value:5)--power-timeout=[seconds]β test X seconds for status change after ON/OFF. (Default Value:60)--power-wait=[seconds]β wait X seconds after issuing ON/OFF. (Default Value:0)--shell-timeout=[seconds]β wait X seconds for cmd prompt after issuing command. (Default Value:3)--stonith-status-sleep=[seconds]β sleep X seconds between status calls during a STONITH action. (Default Value:1)--retry-on=[attempts]β count of attempts to retry power on. (Default Value:1)
π ACTIONS π
the things this agent can do:
onβ power on machine.offβ power off machine.rebootβ reboot machine.statusβ this returns the status of the plug/virtual machine.listβ list available plugs with aliases/virtual machines if there is support for more then one device. returnsN/Aotherwise.list-statusβ list available plugs with aliases/virtual machines and their power state if it can be obtained without additional commands.monitorβ check the health of fence device.metadataβ display the XML metadata describing this resource.manpageβ the operational behavior of this is not known.validate-allβ validate if all required parameters are entered.
π STDIN PARAMETERS π
same energy, but these ones come in through stdin (Fenced does this when it execs the agent). notice a bunch of them are the underscore versions of the flags above π«Ά
actionβ fencing action (Default Value:reboot)methodβ method to fence (onoff|cycle) (Default Value:cycle)plugβ physical plug number on device, UUID or identification of machine. this parameter is always required. Obsoletes:portzoneβ zone.projectβ project ID.stackdriver_loggingβ stackdriver-logging support. Obsoletes:stackdriver-loggingbaremetalsolutionβ if enabled this is a bare metal offering from google.apitimeoutβ timeout in seconds to use for API calls, default is 60. (Default Value:60)retriesβ number of retries on failure for API calls, default is 3. (Default Value:3)retrysleepβ time to sleep in seconds between API retries, default is 5. (Default Value:5)serviceaccountβ service Account to use for authentication to the google cloud APIs.plugzonemapβ comma separated zone map when fencing multiple plugs.proxyhostβ if a proxy is used for internet access, the proxy host should be specified.proxyportβ if a proxy is used for internet access, the proxy port should be specified.earlyexitβ if an existing reset operation is detected, the fence agent will return before the operation completes with a0return code.warntimeoutβ if the operation is not completed within the timeout, the cluster operations are allowed to continue.errortimeoutβ if the operation is not completed within the timeout, cluster is notified of the operation failure.runonwarnβ if a timeout would occur while running the agent, then the supplied command is run.runonfailβ if a failure would occur while running the agent, then the supplied command is run.quietβ disable logging to stderr. does not affect--verboseor--debug-fileor logging to syslog.verboseβ verbose mode. multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity.verbose_levelβ level of debugging detail in output. defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ write debug information to given file. Obsoletes:debugversionβ display version information and exit.helpβ display help and exit.plug_separatorβ separator for plug parameter when specifying more than 1 plug. (Default Value:,)separatorβ separator for CSV created bylistoperation. (Default Value:,)delayβ wait X seconds before fencing is started. (Default Value:0)disable_timeoutβ disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)login_timeoutβ wait X seconds for cmd prompt after login. (Default Value:5)power_timeoutβ test X seconds for status change after ON/OFF. (Default Value:60)power_waitβ wait X seconds after issuing ON/OFF. (Default Value:0)shell_timeoutβ wait X seconds for cmd prompt after issuing command. (Default Value:3)stonith_status_sleepβ sleep X seconds between status calls during a STONITH action. (Default Value:1)retry_onβ count of attempts to retry power on. (Default Value:1)
aaaand that's the whole page, bestie π this one's fence_gce (Fence Agent), dated 2009-10-20, from the FENCE_AGENT(8) manual. slay, go fence something responsibly β¨π
π¦ where this page comes from
- centos-stream 10: fence-agents-gce 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian trixie: fence-agents-gce 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-gce 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-gce 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-gce 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-gce 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-gce 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-gce 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-gce 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms