puppet-pacemaker/agent_generator
Michele Baldessari 5deba125b1 Make the redfish stonith agent a manual agent and add two workaround
Due to  https://bugzilla.redhat.com/show_bug.cgi?id=1677020 we will
actually have pcs complaining if we use --system_uri or --redfish_uri.
The history about this problem starts with this commit
de490e0590

While this commit created obsolete and deprecated options in the
metadata xml, pcs never picked that up and always favours the parameters
with '-'. In the past they added workarounds for
fence_{compute,evacuate} but it was never a generic solution
(https://bugzilla.redhat.com/show_bug.cgi?id=1623181)

So for the time being we need to just workaround this by leaving the
puppet parameters as they are but then using the dash as opposed to the
underscore. Otherwise we will get the following error:

  pcs -f /var/lib/pacemaker/cib/puppet-cib-backup20190213-128853-ah8530
  create failed: Error: invalid stonith option 'systems_uri', allowed
  options are: action, debug, delay, gnutlscli_path, inet4_only,
  inet6_only, ipaddr, ipport, 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, port, port_as_ip, power_timeout, power_wait,
  priority, quiet, redfish-uri, retry_on, shell_timeout, ssl,
  ssl_insecure, ssl_secure, systems-uri, verbose, use --force to override

And no, we cannot have nice things.

Tested this with Ic85855b6789dbad918f709fdeeabc6934876ce72 and got a
proper redfish stonith configuration:
 stonith-fence_redfish-52540069824c     (stonith:fence_redfish):        Started controller-1
 stonith-fence_redfish-5254008adae4     (stonith:fence_redfish):        Started controller-2
 stonith-fence_redfish-5254004c56a8     (stonith:fence_redfish):        Started controller-1

Change-Id: I96fa203c706858f13d5bd6732c31003ecb193b62
2019-02-14 11:02:04 +01:00
..
src_xml Add fence-redfish support 2019-02-11 11:13:33 +01:00
agent_generator.rb Use resource collectors for ordering in stonith manifests 2017-10-25 08:35:16 +02:00
generate_manifests.sh Agent manifest batch generation scripts 2014-09-05 11:08:55 +02:00
update_sources.sh Agent manifest batch generation scripts 2014-09-05 11:08:55 +02:00
variables.sh Make the redfish stonith agent a manual agent and add two workaround 2019-02-14 11:02:04 +01:00