[cloudadm@my-host ~]$ sudo pcs stonith create cloud-stonith-my-host fence_openstack \
username=xxx \
password=xxx \
auth-url=http://xxx:5000/v3 \
project-name="xxx" \
user-domain-name=Default \
uuid=8473a546-22c8-4cb6-8776-ba1628ff594f
Error: invalid stonith options: 'password', 'username', allowed options are: \
action, auth-url, debug, delay, login, login_timeout, passwd, passwd_script, pcmk_action_limit,
pcmk_delay_base, pcmk_delay_max, pcmk_host_argument, pcmk_host_check, pcmk_host_list,
pcmk_host_map, pcmk_list_action, pcmk_list_retries, pcmk_list_timeout, pcmk_monitor_action,
pcmk_monitor_retries, pcmk_monitor_timeout, pcmk_off_action, pcmk_off_retries, pcmk_off_timeout,
pcmk_on_action, pcmk_on_retries, pcmk_on_timeout, pcmk_reboot_action, pcmk_reboot_retries,
pcmk_reboot_timeout, pcmk_status_action, pcmk_status_retries, pcmk_status_timeout, power_timeout,
power_wait, priority, project-domain-name, project-name, retry_on, shell_timeout, user-domain-name,
uuid, verbose, use --force to override
The fencing agent should use already existing options such as "login", "passwd" and "passwd_script". For instance the options are:
[cloudadm@my-host ~]$ /usr/sbin/fence_openstack --help
Usage:
fence_openstack [options]
Options:
-l, --username=[name] Login name
-p, --password=[password] Login password or passphrase
--auth-url=[authurl] Keystone Auth URL
--project-name=[project] Tenant Or Project Name
--user-domain-name=[user-domain] Keystone User Domain Name
--project-domain-name=[project-domain] Keystone Project Domain Name
--uuid=[uuid] UUID of the nova instance
-S, --password-script=[script] Script to run to retrieve password
-o, --action=[action] Action: status, reboot (default), off or on
-v, --verbose Verbose mode
-D, --debug-file=[debugfile] Debugging to output file
-V, --version Output version information and exit
-h, --help Display this help and exit
--power-timeout=[seconds] Test X seconds for status change after ON/OFF
--shell-timeout=[seconds] Wait X seconds for cmd prompt after issuing command
--login-timeout=[seconds] Wait X seconds for cmd prompt after login
--power-wait=[seconds] Wait X seconds after issuing ON/OFF
--delay=[seconds] Wait X seconds before fencing is started
--retry-on=[attempts] Count of attempts to retry power on