-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sap_ha_pacemaker_cluster: regression on clusters with FQDN #924
Comments
@rob0d This change was done to remove need to provide mandatory input, as we can default into known values. This is why it contains task above one you linked, which uses User input variable - name: "SAP HA Prepare Pacemaker - Register sap_ha_pacemaker_cluster_ha_cluster"
when:
- __sap_ha_pacemaker_cluster_ha_cluster is not defined
- sap_ha_pacemaker_cluster_ha_cluster is defined
ansible.builtin.set_fact:
__sap_ha_pacemaker_cluster_ha_cluster: "{{ sap_ha_pacemaker_cluster_ha_cluster }}" |
@rob0d Did you define Previously, when not defined, the defaults of the If you define the role variable the way that your environment needs, it should work as expected. |
Hi @ja9fuchs, I haven't tried that (I couldn't at that time due to time pressure). I have commented out that piece of code. My view is that ha_cluster has been tested by way more people than sap_ha_pacemaker_cluster and ha_cluster does a good job at deciding the default values. I may be able to try with "{{ inventory_name }}", but it will a few more weeks before I can do it. |
@ja9fuchs @rob0d - name: "SAP HA Prepare Pacemaker - Generate default sap_ha_pacemaker_cluster_ha_cluster"
when:
- not __sap_ha_pacemaker_cluster_ha_cluster is defined
- not sap_ha_pacemaker_cluster_ha_cluster is defined
ansible.builtin.set_fact:
__sap_ha_pacemaker_cluster_ha_cluster: {}
|
@marcelmamula
This code that was added in #829 breaks cluster configurations which are using FQDN as node names.
I am not clear why was it added as it worked fine with pacemaker before and after commenting out the code it still works fine. I didn't want to commit a removal as I'm not sure if any code that I can't test relies on it.
Basically if the defaults are not set the ha_cluster role does a good job generating the correct config based on ansible facts and provided variables.
This change introduces a regression by setting defaults which don't match ansible facts when FQDNs are used in inventory and cluster node names.
It may be possible to fix this by changing
node_name: "{{ ansible_hostname }}"
tonode_name: "{{ inventory_name }}"
, but as I mention it doesn't seem like this code is needed?The text was updated successfully, but these errors were encountered: