You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README seems to imply that you can extend the sap_ha_pacemaker_cluster_fence_options variable with any additional options you need.
For example, in our environment, we need the two additional options at the bottom of this variable definition:
However, when I try to run the role, it fails in the argument validation task:
TASK [redhat.sap_install.sap_ha_pacemaker_cluster : Validating arguments against arg spec 'main' - SAP HA automated cluster setup requirements]
fatal: [wo-cl-h01-1]: FAILED! => {"argument_errors": ["sap_ha_pacemaker_cluster_fence_options.pcmk_monitor_timeout, sap_ha_pacemaker_cluster_fence_options.pcmk_status_timeout. Supported parameters include: pcmk_reboot_retries, pcmk_reboot_timeout, power_timeout."], "argument_spec_data": {"ha_cluster": {"description": ["Optional _**host_vars**_ parameter - if defined it must be set for each node.", "Dictionary that can contain various node options for the pacemaker cluster configuration."
I suspect the problem is, that in meta/argument_specs.yml , the variable sap_ha_pacemaker_cluster_fence_options is defined with an additional options parameter. And within that options parameter, the three default pcmk.... option are defined.
It looks like whenever the options parameter is defined, the argument check validates whether the supplied parameters match one of the options.
In my case, it fails as the pcmk_monitor_timeout and pcmk_status_timeout parameters are not defined in the options parameter.
As soon as I take those two parameters out from the variable definition, the validation check runs without a problem.
The counter-example is the sap_ha_pacemaker_cluster_cluster_properties variable. I've added another option to that variable and this passes the check just fine.
The difference seems to be that this variables doesn't have the additional options parameter defined in the argument_specs.yml file
The text was updated successfully, but these errors were encountered:
You are correct, the parameter can be enhanced with custom options, which should be added correctly to the resource configuration.
argument_specs validation is indeed very strict and will not accept more options than those described.
The README seems to imply that you can extend the sap_ha_pacemaker_cluster_fence_options variable with any additional options you need.
For example, in our environment, we need the two additional options at the bottom of this variable definition:
However, when I try to run the role, it fails in the argument validation task:
I suspect the problem is, that in meta/argument_specs.yml , the variable sap_ha_pacemaker_cluster_fence_options is defined with an additional options parameter. And within that options parameter, the three default pcmk.... option are defined.
It looks like whenever the options parameter is defined, the argument check validates whether the supplied parameters match one of the options.
In my case, it fails as the pcmk_monitor_timeout and pcmk_status_timeout parameters are not defined in the options parameter.
As soon as I take those two parameters out from the variable definition, the validation check runs without a problem.
The counter-example is the sap_ha_pacemaker_cluster_cluster_properties variable. I've added another option to that variable and this passes the check just fine.
The difference seems to be that this variables doesn't have the additional options parameter defined in the argument_specs.yml file
The text was updated successfully, but these errors were encountered: