FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 3 versions
, in debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– FENCE_AGENT(8) πŸ’–

System Manager's Manual ✨ β€” and yes bestie, we're doing the whole thing, no skips, no shortcuts. This is fence_evacuate, the fence agent for the automatic resurrection of OpenStack compute instances. πŸ§Ÿβ™€οΈβž‘οΈβœ¨


🌸 NAME 🌸

fence_evacuate β€” fence agent for the automatic resurrection of OpenStack compute instances πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

Okay so, what does it do? It's used to reschedule flagged instances. That's the whole vibe. πŸ”₯

Now here's the tea: the fence agent takes options from the command line and from stdin, both. When fenced execs the agent, it sends the parameters through stdin. But you can also just run the agent all by itself with command-line options β€” which is lowkey iconic for testing, and for turning outlets on or off from scripts. πŸŽ€

Vendor URL: (nothing here, it's literally blank, no cap)


πŸ‘‘ PARAMETERS πŸ‘‘

  • -o, --action=[action] β€” the fencing action, bestie. Which move are we making? (Default Value: reboot)
  • -k, --auth-url=[url] β€” Keystone Admin Auth URL, the whole where do I even log in situation (Default Value: empty)
  • -e, --endpoint-type=[endpoint] β€” Nova Endpoint type, aka which door we're knocking on (Default Value: internalURL)
  • -p, --password=[password] β€” login password or passphrase πŸ”
  • -S, --password-script=[script] β€” a script to run that goes and fetches the password for you, so you don't have to hold it yourself 🫢
  • -n, --plug=[id] β€” physical plug number on device, UUID, or identification of machine. This parameter is always required. Periodt. You literally cannot skip it. πŸ’€
  • --region-name=[region] β€” Region Name (Default Value: empty)
  • -t, --tenant-name=[name] β€” Keystone Admin Tenant or v3 Project (Default Value: empty)
  • -l, --username=[name] β€” login name ✨
  • --insecure β€” allow Insecure TLS Requests πŸ™ˆ (yes it's called that, and yes that's a little scary, it's giving "we're not verifying certificates")
  • -P, --project-domain=[name] β€” Keystone v3 Project Domain (Default Value: Default)
  • -u, --user-domain=[name] β€” Keystone v3 User Domain (Default Value: Default)
  • -d, --domain=[string] β€” DNS domain in which hosts live 🏠
  • --instance-filtering β€” allow instances to be evacuated (Default Value: True)
  • --no-shared-storage β€” disable functionality for dealing with shared storage (Default Value: False)
  • --compute-domain=[string] β€” replaced by domain ⚠️ (old news, use domain instead)
  • -q, --quiet β€” disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog. It's selectively quiet, iykyk. 🀫
  • -v, --verbose β€” verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity. Stack 'em like bracelets. πŸ’«
  • --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: 20)
  • --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: 180)
  • --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 🌈

  • on β€” power on machine. Wakey wakey bestie β˜€οΈ
  • off β€” power off machine. Night night πŸ’€
  • reboot β€” reboot machine. The classic "turn it off and on again" but make it ✨official✨
  • 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. Two-for-one. πŸŽ€
  • monitor β€” check the health of fence device 🩺
  • metadata β€” display the XML metadata describing this resource πŸ“œ
  • manpage β€” the operational behavior of this is not known. πŸ’€ literally nobody knows what this does, it's a mystery, we're all just vibing
  • validate-all β€” validate if all required parameters are entered βœ…

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

  • action β€” fencing action (Default Value: reboot)
  • auth_url β€” Keystone Admin Auth URL (Default Value: empty)
  • endpoint_type β€” Nova Endpoint type (Default Value: internalURL)
  • password β€” login password or passphrase. Obsoletes: passwd
  • password_script β€” script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes: port
  • region_name β€” Region Name (Default Value: empty)
  • tenant_name β€” Keystone Admin Tenant or v3 Project (Default Value: empty)
  • username β€” login name. Obsoletes: login
  • insecure β€” allow Insecure TLS Requests πŸ™ˆ
  • project_domain β€” Keystone v3 Project Domain (Default Value: Default). Obsoletes: project-domain
  • user_domain β€” Keystone v3 User Domain (Default Value: Default). Obsoletes: user-domain
  • domain β€” DNS domain in which hosts live
  • instance_filtering β€” allow instances to be evacuated (Default Value: True)
  • no_shared_storage β€” disable functionality for dealing with shared storage (Default Value: False)
  • compute_domain β€” replaced by domain. Obsoletes: compute-domain ⚠️
  • 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: 20)
  • 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: 180)
  • 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, every single flag, default, obsolete name and action accounted for πŸ’–

This was fence_evacuate (Fence Agent), dated 2009-10-20, from FENCE_AGENT(8) β€” slay, go forth and evacuate those instances responsibly πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from