Skip to content

Commit 22c8977

Browse files
authored
Merge pull request #1080 from sap-linuxlab/dev
Merge dev to main for release 1.6.1
2 parents e2c2e92 + 43d159f commit 22c8977

18 files changed

+139
-89
lines changed

CHANGELOG.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ community.sap\_install Release Notes
44

55
.. contents:: Topics
66

7+
v1.6.1
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
A few minor bug fixes
14+
15+
Bugfixes
16+
--------
17+
18+
- sap_*_preconfigure - Assert the presence of the IBM tools only if necessary (https://github.com/sap-linuxlab/community.sap_install/pull/1078)
19+
- sap_*_preconfigure - Define needs-restarting also for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1071)
20+
- sap_*_preconfigure - Define needs-restarting also for RHEL 10, assert mode (https://github.com/sap-linuxlab/community.sap_install/pull/1076)
21+
- sap_ha_pacemaker_cluster - Remove NIC parameter from IPaddr2 resource agents (https://github.com/sap-linuxlab/community.sap_install/pull/1074)
22+
723
v1.6.0
824
======
925

changelogs/changelog.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,3 +332,12 @@ releases:
332332
- sap_swpm - Fix TEMP handling (https://github.com/sap-linuxlab/community.sap_install/pull/1019)
333333
- sap_swpm - Remove selinux role dependency from README.md (https://github.com/sap-linuxlab/community.sap_install/pull/1012)
334334
- sap_ha_pacemaker_cluster/SUSE - Remove python3-rpm dependency in pre_steps_hana (https://github.com/sap-linuxlab/community.sap_install/pull/1028)
335+
1.6.1:
336+
release_date: '2025-07-17'
337+
changes:
338+
release_summary: A few minor bug fixes
339+
bugfixes:
340+
- sap_ha_pacemaker_cluster - Remove NIC parameter from IPaddr2 resource agents (https://github.com/sap-linuxlab/community.sap_install/pull/1074)
341+
- sap_*_preconfigure - Assert the presence of the IBM tools only if necessary (https://github.com/sap-linuxlab/community.sap_install/pull/1078)
342+
- sap_*_preconfigure - Define needs-restarting also for RHEL 10, assert mode (https://github.com/sap-linuxlab/community.sap_install/pull/1076)
343+
- sap_*_preconfigure - Define needs-restarting also for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1071)

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace: community
1111
name: sap_install
1212

1313
# The version of the collection. Must be compatible with semantic versioning
14-
version: 1.6.0
14+
version: 1.6.1
1515

1616
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1717
readme: README.md

roles/sap_general_preconfigure/tasks/RedHat/assert-installation.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@
168168
awk '/Name/{n=$NF}/Version/{v=$NF}/Release/{r=$NF}/Description/{printf ("%s\n", n)}'
169169
register: __sap_general_preconfigure_register_required_ppc64le_packages_assert
170170
changed_when: false
171-
when: ansible_architecture == "ppc64le"
171+
when:
172+
- ansible_architecture == "ppc64le"
173+
- sap_general_preconfigure_install_ibm_power_tools
172174
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
173175

174176
- name: Assert that all required IBM packages are installed
@@ -180,7 +182,9 @@
180182
- "{{ __sap_general_preconfigure_required_ppc64le }}"
181183
loop_control:
182184
loop_var: line_item
183-
when: ansible_architecture == "ppc64le"
185+
when:
186+
- ansible_architecture == "ppc64le"
187+
- sap_general_preconfigure_install_ibm_power_tools
184188
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
185189

186190
- name: Minimum required package version check
@@ -278,13 +282,11 @@
278282
__sap_general_preconfigure_fact_needs_restarting_command_assert: "needs-restarting -r"
279283
when: ansible_distribution_major_version == '7'
280284

281-
- name: "Assert - Set needs-restarting command in case of RHEL 8 or RHEL 9, except RHEL 8.0"
285+
- name: "Assert - Set needs-restarting command in case of RHEL 8 or greater, except RHEL 8.0"
282286
ansible.builtin.set_fact:
283287
__sap_general_preconfigure_fact_needs_restarting_command_assert: "yum needs-restarting -r"
284288
when:
285-
- (ansible_distribution_major_version == '8' or
286-
ansible_distribution_major_version == '9'
287-
)
289+
- ansible_distribution_major_version | int >= 8
288290
- ansible_distribution_version != '8.0'
289291

290292
- name: "Assert - Set customized needs-restarting command in case of RHEL 8.0"

roles/sap_general_preconfigure/tasks/RedHat/installation.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,11 @@
241241
__sap_general_preconfigure_fact_needs_restarting_command: "needs-restarting -r"
242242
when: ansible_distribution_major_version == '7'
243243

244-
- name: "Set needs-restarting command in case of RHEL 8 or RHEL 9, except RHEL 8.0"
244+
- name: "Set needs-restarting command in case of RHEL 8 or greater, except RHEL 8.0"
245245
ansible.builtin.set_fact:
246246
__sap_general_preconfigure_fact_needs_restarting_command: "yum needs-restarting -r"
247247
when:
248-
- (ansible_distribution_major_version == '8' or
249-
ansible_distribution_major_version == '9'
250-
)
248+
- ansible_distribution_major_version | int >= 8
251249
- ansible_distribution_version != '8.0'
252250

253251
- name: "Set customized needs-restarting command in case of RHEL 8.0"

roles/sap_ha_pacemaker_cluster/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ For RHEL System Roles for SAP, or Red Hat Automation Hub, use 'redhat.rhel_syste
10981098

10991099
OS device name of the network interface to use for the Virtual IP configuration.<br>
11001100
When there is only one interface on the system, its name will be used by default.<br>
1101+
Ensure that same network interface is present on all cluster nodes.<br>
1102+
IPaddr2 resource agent does not require network interface defined (except Google Cloud).<br>
11011103

11021104
### sap_ha_pacemaker_cluster_vip_hana_primary_ip_address
11031105
- _Type:_ `string`<br>

roles/sap_ha_pacemaker_cluster/meta/argument_specs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ argument_specs:
154154
description:
155155
- OS device name of the network interface to use for the Virtual IP configuration.
156156
- When there is only one interface on the system, its name will be used by default.
157+
- Ensure that same network interface is present on all cluster nodes.
158+
- IPaddr2 resource agent does not require network interface defined (except Google Cloud).
157159

158160
sap_ha_pacemaker_cluster_stonith_custom:
159161
type: list

roles/sap_ha_pacemaker_cluster/tasks/construct_vars_vip_resources_default.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,22 @@
1313
ansible.builtin.set_fact:
1414
__sap_ha_pacemaker_cluster_resource_primitives: "{{ __sap_ha_pacemaker_cluster_resource_primitives + [__resource_vip] }}"
1515
vars:
16+
__ipaddr_ip:
17+
- name: ip
18+
value: "{{ vip_list_item.value | quote }}"
19+
# Create separate list for nic parameter only when it is defined and not empty.
20+
__ipaddr_nic:
21+
- name: nic
22+
value: "{{ sap_ha_pacemaker_cluster_vip_client_interface | d('') }}"
23+
1624
__resource_vip:
1725
id: "{{ vip_list_item.key }}"
1826
agent: "{{ __sap_ha_pacemaker_cluster_available_vip_agents['ipaddr'].agent }}"
1927
instance_attrs:
20-
- attrs:
21-
- name: ip
22-
value: "{{ vip_list_item.value | quote }}"
23-
- name: nic
24-
value: "{{ sap_ha_pacemaker_cluster_vip_client_interface }}"
28+
# Combine both lists if sap_ha_pacemaker_cluster_vip_client_interface is defined and not empty.
29+
- attrs: "{{ __ipaddr_ip + __ipaddr_nic
30+
if sap_ha_pacemaker_cluster_vip_client_interface is defined and sap_ha_pacemaker_cluster_vip_client_interface | length > 0
31+
else __ipaddr_ip }}"
2532
when:
2633
- vip_list_item.key not in (__sap_ha_pacemaker_cluster_resource_primitives | map(attribute='id'))
2734
- sap_ha_pacemaker_cluster_vip_method == 'ipaddr' or

roles/sap_ha_pacemaker_cluster/tasks/include_vars_common.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@
88
ansible.builtin.setup:
99
gather_subset: hardware,interfaces
1010

11-
# Multi-NIC:
12-
# Find out if there is more than one interface present, this will
13-
# be used for determining the target NIC for VIP configurations.
14-
# Assumption: The local loopback "lo" is always in the list.
15-
- name: "SAP HA Prepare Pacemaker - Set multi-NIC when more than one interface is found"
16-
ansible.builtin.set_fact:
17-
__sap_ha_pacemaker_cluster_nic_multi_bool: true
18-
when:
19-
- ansible_interfaces | length > 2
2011

21-
- name: "SAP HA Prepare Pacemaker - Set interface name when only one interface is present"
12+
# Use default ipv4 interface when one interface is detected.
13+
# Assumption: The local loopback "lo" is always in the list.
14+
- name: "SAP HA Prepare Pacemaker - Set network interface name when only one interface is present"
2215
ansible.builtin.set_fact:
23-
sap_ha_pacemaker_cluster_vip_client_interface: "{{ ansible_default_ipv4.interface }}"
16+
__sap_ha_pacemaker_cluster_vip_client_interface: "{{ ansible_default_ipv4.interface }}"
2417
when:
25-
- not __sap_ha_pacemaker_cluster_nic_multi_bool
18+
- ansible_interfaces | length <= 2
2619
- sap_ha_pacemaker_cluster_vip_client_interface == ''
2720

2821

roles/sap_ha_pacemaker_cluster/tasks/platform/construct_vars_vip_resources_cloud_aws_ec2_vs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
- name: ip
5959
value: "{{ vip_list_item.value }}"
6060
- name: interface
61-
value: "{{ sap_ha_pacemaker_cluster_vip_client_interface }}"
61+
value: "{{ __sap_ha_pacemaker_cluster_vip_client_interface | d(sap_ha_pacemaker_cluster_vip_client_interface) }}"
6262
- name: routing_table
6363
value: "{{ sap_ha_pacemaker_cluster_aws_vip_update_rt }}"
6464
when:

0 commit comments

Comments
 (0)