Stonith SBD fence method added with all extra variables required for ha_cluster
Significant changes to Stonith task file, adding lot of extra validations to avoid execution if:
ha_cluster variables are provided, just skip them because you cannot override precedence anyway
variables are empty, not required list or string where list is expected (iterable check fails to differentiate between string and list)
New repository dictionaries:
__sap_ha_pacemaker_cluster_repos_dict defined inside OS vars
Each platform vars loads __sap_ha_pacemaker_cluster_repos from dictionary
Dictionary is empty for SUSE as it comes with subscription.
New fence agent dictionaries for each platform
__sap_ha_pacemaker_cluster_stonith_default_dict defined in each platform vars, then selected correct entry into __sap_ha_pacemaker_cluster_stonith_default
This serves as baseline for future if we have different fence agents like AWS, where RHEL and SLES have different agents.
There is potential for future to shift these dictionaries into new OS_stonith.yml var files if need arises for different OS parameters under same agents.
Variable sap_ha_pacemaker_cluster_aws_credentials_setup that can be enabled to store AWS credentials. It is undefined by default to use attached IAM Role/Instance Profile done by AP4S.
Keeping AWS Credentials together with attached IAM, results in credentials overriding IAM permissions, requiring API user inside of AWS credentials to have fencing permissions.
Default ha_cluster definition from AP4S moved inside of vars code, to create baseline nodes for ha_cluster
pcs_address is required only for pcs, but it does not harm crmsh
New features:
Stonith SBD fence method added with all extra variables required for
ha_cluster
Significant changes to Stonith task file, adding lot of extra validations to avoid execution if:
ha_cluster
variables are provided, just skip them because you cannot override precedence anywayNew repository dictionaries:
__sap_ha_pacemaker_cluster_repos_dict
defined inside OS vars__sap_ha_pacemaker_cluster_repos
from dictionaryNew fence agent dictionaries for each platform
__sap_ha_pacemaker_cluster_stonith_default_dict
defined in each platform vars, then selected correct entry into__sap_ha_pacemaker_cluster_stonith_default
Variable
sap_ha_pacemaker_cluster_aws_credentials_setup
that can be enabled to store AWS credentials. It is undefined by default to use attached IAM Role/Instance Profile done by AP4S.Default
ha_cluster
definition from AP4S moved inside of vars code, to create baseline nodes forha_cluster
pcs_address
is required only forpcs
, but it does not harmcrmsh
Readme and argument_specs update with new variables and increased baseline version for required collections.
Tested on: