FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– FENCE_AGENT(8) β€” the fence_openstack glow-up πŸ’–

okay bestie, sit down, hydrate, and let me tell you about fence_openstack(8) from the System Manager's Manual. this is the one, this is the moment. 🫢


✨ NAME ✨

fence_openstack</p> β€” the fence agent for OpenStack's Nova service. yes, that's her. she's a fencing agent, she's from the OpenStack Nova world, and she's that girl. πŸ’…


🌸 DESCRIPTION 🌸

fence_openstack</p> is a Power Fencing agent you can use with machines controlled by the Openstack's Nova service. she calls up python-novaclient and honestly? that dependency is mandatory β€” it has to be installed, no negotiating, no cap. ✨

and here's the vibe: the fence agent takes options on the command line and from stdin. fenced sends parameters through stdin when it execs the agent. but you can also just run the agent by itself with command line options β€” which is lowkey iconic for testing and for turning outlets on or off from scripts. main character energy fr fr. πŸ”₯

Vendor URL: https://wiki.openstack.org/wiki/Nova


πŸŽ€ PARAMETERS πŸŽ€

every single one, in order, no skips, no "eh you don't need that one." we don't do that here. 😀

  • -o, --action=[action] β€” the fencing action. (Default Value: reboot)
  • -p, --password=[password] β€” login password or passphrase. 🀫
  • -S, --password-script=[script] β€” script to run to retrieve the password.
  • -n, --plug=[UUID] β€” the UUID of the node to be fenced.
  • --ssl-insecure β€” use an SSL connection without verifying the certificate. (> lowkey risky, bestie β€” she said what she said.)
  • -l, --username=[name] β€” login name.
  • --auth-url=[authurl] β€” Keystone Auth URL.
  • --project-name=[project] β€” Keystone Project. (Default Value: admin)
  • --user-domain-name=[domain] β€” Keystone User Domain Name. (Default Value: Default)
  • --project-domain-name=[domain] β€” Keystone Project Domain Name. (Default Value: Default)
  • --cloud=[cloud] β€” Cloud from clouds.yaml. ☁️
  • --openrc=[openrc] β€” openrc config file.
  • --uuid=[uuid] β€” replaced by port/-n/--plug. (she's retired, respect her legacy πŸ’€)
  • --cacert=[cacert] β€” SSL X.509 certificates file. (Default Value: β€” yes, it's blank, that's literally what it says πŸ™ˆ)
  • --apitimeout=[seconds] β€” timeout in seconds to use for API calls, default is 60. (Default Value: 60)
  • -q, --quiet β€” disable logging to stderr. does not affect --verbose or --debug-file or logging to syslog.
  • -v, --verbose β€” verbose mode. multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity. stack her up, she eats. πŸ”₯
  • --verbose-level β€” level of debugging detail in output. defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in 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 by 'list' operation. (Default Value: ,)
  • --delay=[seconds] β€” wait X seconds before fencing is started. (Default Value: 0)
  • --disable-timeout=[true/false] β€” disable timeout (true/false). (default: true when 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 whole roster. every single one of them shows up and shows out. πŸ‘‘

  • 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. returns N/A otherwise.
  • list-status β€” list available plugs with aliases/virtual machines and their power state if it can be obtained without additional commands. efficiency queen. ✨
  • monitor β€” check the health of fence device. 🩺
  • metadata β€” display the XML metadata describing this resource.
  • manpage β€” the operational behavior of this is not known. πŸ’€ (she's mysterious, we love her anyway)
  • validate-all β€” validate if all required parameters are entered.

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

same energy, snake_case era. these are the ones that come in through stdin, obsoletes and all. 🐍

  • action β€” fencing action (Default Value: reboot)
  • password β€” login password or passphrase. Obsoletes: passwd
  • password_script β€” script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” UUID of the node to be fenced. Obsoletes: port
  • ssl_insecure β€” use SSL connection without verifying certificate
  • username β€” login name. Obsoletes: login
  • auth_url β€” Keystone Auth URL. Obsoletes: auth-url
  • project_name β€” Keystone Project (Default Value: admin) Obsoletes: project-name
  • user_domain_name β€” Keystone User Domain Name (Default Value: Default) Obsoletes: user-domain-name
  • project_domain_name β€” Keystone Project Domain Name (Default Value: Default) Obsoletes: project-domain-name
  • cloud β€” Cloud from clouds.yaml. ☁️
  • openrc β€” openrc config file
  • uuid β€” replaced by port/-n/--plug
  • cacert β€” SSL X.509 certificates file (Default Value: β€” blank, as above πŸ™ˆ)
  • apitimeout β€” timeout in seconds to use for API calls, default is 60. (Default Value: 60)
  • quiet β€” disable logging to stderr. does not affect --verbose or --debug-file or logging to syslog.
  • verbose β€” verbose mode. multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • debug_file β€” write debug information to given file. Obsoletes: debug
  • version β€” 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 by 'list' operation (Default Value: ,)
  • delay β€” wait X seconds before fencing is started (Default Value: 0)
  • disable_timeout β€” disable timeout (true/false) (default: true when 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)

and that's the whole page, bestie. no notes. periodt. πŸ’–βœ¨

this lil masterpiece is brought to you by fence_openstack (Fence Agent), dated 2009-10-20 β€” vintage, iconic, still slaying. mwah. πŸŽ€πŸ’…πŸ«Ά

πŸ“¦ where this page comes from