Skip to content

Commit 9225637

Browse files
authored
Merge pull request #151 from sap-linuxlab/dev
Merge dev to main for release 1.3.1
2 parents d227920 + 3745682 commit 9225637

19 files changed

Lines changed: 332 additions & 34 deletions

File tree

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ skip_list:
4444
- yaml[line-length]
4545
- no-tabs
4646
# - var-naming[no-jinja]
47+
# Rule for variable naming is required because of stricter linting requirements.
48+
- var-naming[no-role-prefix]

CHANGELOG.rst

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

55
.. contents:: Topics
66

7+
v1.3.1
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
Various minor enhancements and compatibility fixes for ansible-core 2.20.
14+
15+
Minor Changes
16+
--------
17+
18+
- collection - Update workflows with dedicated github actions (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/127)
19+
- collection - Add contributors list and sanity ignore files for future-proofing (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/130)
20+
- collection - Add linting rule to ignore stricter var naming rule in 2.20 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/136)
21+
- collection - Add kubernetes.core 5.3.0 to requirements (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/138)
22+
- sap_vm_provision - Remove ansible.posix dependency for issue 126 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/135)
23+
- sap_vm_provision - Add SLES 16 images, fix sshd_config and add python311 workaround (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/149)
24+
- sap_vm_provision/kubevirt_vm - Make usage of hugepages configurable (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/147)
25+
- sap_hypervisor_node_preconfigure - Update until conditional for ansible-core 2.19 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/133)
26+
- sap_hypervisor_node_preconfigure - Add check for webhook endpoint availability (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/142)
27+
28+
Bugfixes
29+
--------
30+
31+
- sap_hypervisor_node_preconfigure/kubevirt_vm - Fix installation of CNV operator (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/148)
32+
33+
734
v1.3.0
835
======
936

CONTRIBUTORS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ For specific role maintainers, see the `README.md` file in the corresponding rol
2525
| Name | Commits | Lines Changed | Last Commit |
2626
| ---- | ------- | ------------- | ----------- |
2727
| [Sean Freeman](https://github.com/sean-freeman) | 100 | 27358 | 2025-06-20 |
28-
| [Marcel Mamula](https://github.com/marcelmamula) | 53 | 5728 | 2025-09-30 |
29-
| [Nils Koenig](https://github.com/newkit) | 41 | 3753 | 2025-09-22 |
28+
| [Marcel Mamula](https://github.com/marcelmamula) | 60 | 6100 | 2026-01-07 |
29+
| [Nils Koenig](https://github.com/newkit) | 59 | 3971 | 2026-01-12 |
3030
| [Bernd Finger](https://github.com/berndfinger) | 7 | 285 | 2025-02-25 |
31-
| [Geetika Kapoor](https://github.com/geetikakay) | 5 | 116 | 2024-12-06 |
31+
| [Geetika Kapoor](https://github.com/geetikakay) | 6 | 124 | 2025-11-14 |
3232
| [Janine Fuchs](https://github.com/ja9fuchs) | 1 | 2 | 2024-09-03 |
3333
| [Markus Koch](https://github.com/rhmk) | 1 | 35 | 2024-08-27 |
3434

@@ -53,8 +53,8 @@ For specific role maintainers, see the `README.md` file in the corresponding rol
5353
| Name | Commits | Lines Changed | Last Commit |
5454
| ---- | ------- | ------------- | ----------- |
5555
| [Sean Freeman](https://github.com/sean-freeman) | 85 | 22396 | 2025-05-26 |
56-
| [Marcel Mamula](https://github.com/marcelmamula) | 30 | 3264 | 2025-09-01 |
57-
| [Nils Koenig](https://github.com/newkit) | 14 | 1045 | 2025-09-22 |
56+
| [Marcel Mamula](https://github.com/marcelmamula) | 34 | 3496 | 2026-01-07 |
57+
| [Nils Koenig](https://github.com/newkit) | 23 | 1136 | 2026-01-12 |
5858
| [Bernd Finger](https://github.com/berndfinger) | 3 | 5 | 2025-02-19 |
5959
| [Janine Fuchs](https://github.com/ja9fuchs) | 1 | 2 | 2024-09-03 |
6060
| [Markus Koch](https://github.com/rhmk) | 1 | 35 | 2024-08-27 |
@@ -63,8 +63,8 @@ For specific role maintainers, see the `README.md` file in the corresponding rol
6363

6464
| Name | Commits | Lines Changed | Last Commit |
6565
| ---- | ------- | ------------- | ----------- |
66-
| [Nils Koenig](https://github.com/newkit) | 26 | 1741 | 2025-09-22 |
67-
| [Geetika Kapoor](https://github.com/geetikakay) | 5 | 115 | 2024-12-06 |
66+
| [Nils Koenig](https://github.com/newkit) | 31 | 1847 | 2025-12-23 |
67+
| [Geetika Kapoor](https://github.com/geetikakay) | 6 | 123 | 2025-11-14 |
6868
| [Marcel Mamula](https://github.com/marcelmamula) | 3 | 455 | 2025-08-20 |
6969
| [Sean Freeman](https://github.com/sean-freeman) | 2 | 1870 | 2024-05-07 |
7070

changelogs/changelog.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,20 @@ releases:
115115
bugfixes:
116116
- sap_hypervisor_node_preconfigure - Fix ansible-lint errors from issue 101 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/116)
117117
- sap_vm_provision - Removed update-ca-certificates for issue 119 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/121)
118+
119+
1.3.1:
120+
release_date: '2026-01-12'
121+
changes:
122+
release_summary: Various minor enhancements and compatibility fixes for ansible-core 2.20
123+
minor_changes:
124+
- collection - Update workflows with dedicated github actions (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/127)
125+
- collection - Add contributors list and sanity ignore files for future-proofing (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/130)
126+
- collection - Add linting rule to ignore stricter var naming rule in 2.20 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/136)
127+
- collection - Add kubernetes.core 5.3.0 to requirements (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/138)
128+
- sap_vm_provision - Remove ansible.posix dependency for issue 126 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/135)
129+
- sap_vm_provision - Add SLES 16 images, fix sshd_config and add python311 workaround (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/149)
130+
- sap_vm_provision/kubevirt_vm - Make usage of hugepages configurable (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/147)
131+
- sap_hypervisor_node_preconfigure - Update until conditional for ansible-core 2.19 (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/133)
132+
- sap_hypervisor_node_preconfigure - Add check for webhook endpoint availability (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/142)
133+
bugfixes:
134+
- sap_hypervisor_node_preconfigure/kubevirt_vm - Fix installation of CNV operator (https://github.com/sap-linuxlab/community.sap_infrastructure/pull/148)

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace: community
1010
name: sap_infrastructure
1111

1212
# The version of the collection. Must be compatible with semantic versioning
13-
version: 1.3.0
13+
version: 1.3.1
1414

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

requirements.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ collections:
3535
- name: kubevirt.core
3636
type: galaxy
3737
version: 1.5.0
38+
- name: kubernetes.core
39+
type: galaxy
40+
version: ">=5.2.0,<7.0.0"
3841
# For Red Hat OpenShift
3942
- name: community.okd
4043
type: galaxy

roles/sap_hypervisor_node_preconfigure/tasks/platform/redhat_ocp_virt/operators/install-cnv-operator.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,11 @@
9595
delay: 60
9696
until: __sap_hypervisor_node_preconfigure_register_hco_webhook_pod.resources | selectattr('status.phase', 'equalto', 'Running') | list | length == __sap_hypervisor_node_preconfigure_register_hco_webhook_pod.resources | length
9797

98-
- name: Wait and check if hco-webhook-service exists in the namespace "{{ sap_hypervisor_node_preconfigure_ocpv_namespace }}"
99-
kubernetes.core.k8s_info:
100-
kind: Service
101-
namespace: "{{ sap_hypervisor_node_preconfigure_ocpv_namespace }}"
102-
name: hco-webhook-service
103-
register: webhook_service
104-
retries: 2
105-
delay: 60
106-
until: webhook_service.resources
98+
- name: Check if hco-webhook-service webhook endpoint is available
99+
ansible.builtin.include_tasks: wait_for_webhook_endpoints.yml
100+
vars:
101+
sap_hypervisor_node_preconfigure_webhook_service_name: hco-webhook-service
102+
sap_hypervisor_node_preconfigure_webhook_namespace: "{{ sap_hypervisor_node_preconfigure_ocpv_namespace }}"
107103

108104
- name: Create CNV HyperConverged
109105
kubernetes.core.k8s:

roles/sap_hypervisor_node_preconfigure/tasks/platform/redhat_ocp_virt/operators/install-nmstate-operator.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
register: operatorgroup_status
4040
retries: 30
4141
delay: 10
42-
until: operatorgroup_status.resources | length > 0
42+
until: operatorgroup_status.resources | default([]) | length > 0
4343

4444
- name: Subscribe to the nmstate Operator
4545
kubernetes.core.k8s:
@@ -98,7 +98,7 @@
9898
register: nmstate_status
9999
retries: 30
100100
delay: 10
101-
until: nmstate_status.resources | length > 0
101+
until: nmstate_status.resources | default([]) | length > 0
102102

103103
- name: Wait and check for pod with label name nmstate-webhook under the namespace "{{ sap_hypervisor_node_preconfigure_nmstate_namespace }}"
104104
kubernetes.core.k8s_info:
@@ -110,3 +110,9 @@
110110
retries: 5
111111
delay: 60
112112
until: sap_hypervisor_node_preconfigure_register_webhook_pod.resources | selectattr('status.phase', 'equalto', 'Running') | list | length == sap_hypervisor_node_preconfigure_register_webhook_pod.resources | length
113+
114+
- name: Check if nmstate webhook endpoint is available
115+
ansible.builtin.include_tasks: wait_for_webhook_endpoints.yml
116+
vars:
117+
sap_hypervisor_node_preconfigure_webhook_service_name: nmstate-webhook
118+
sap_hypervisor_node_preconfigure_webhook_namespace: openshift-nmstate

roles/sap_hypervisor_node_preconfigure/tasks/platform/redhat_ocp_virt/operators/install-sriov-operator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
register: operatorgroup_status
6969
retries: 30
7070
delay: 10
71-
until: operatorgroup_status.resources
71+
until: operatorgroup_status.resources | default([]) | length > 0
7272

7373
- name: Check if SriovOperatorConfig exists # noqa: ignore-errors
7474
kubernetes.core.k8s_info:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
- name: Wait for webhook endpoints
3+
kubernetes.core.k8s_info:
4+
api_version: v1
5+
kind: Endpoints
6+
name: "{{ sap_hypervisor_node_preconfigure_webhook_service_name }}"
7+
namespace: "{{ sap_hypervisor_node_preconfigure_webhook_namespace }}"
8+
register: __sap_hypervisor_node_preconfigure_register_webhook_check
9+
until:
10+
- __sap_hypervisor_node_preconfigure_register_webhook_check is defined
11+
- __sap_hypervisor_node_preconfigure_register_webhook_check.resources | length > 0
12+
- __sap_hypervisor_node_preconfigure_register_webhook_check.resources[0].subsets is defined
13+
- __sap_hypervisor_node_preconfigure_register_webhook_check.resources[0].subsets | length > 0
14+
- __sap_hypervisor_node_preconfigure_register_webhook_check.resources[0].subsets[0].addresses is defined
15+
- __sap_hypervisor_node_preconfigure_register_webhook_check.resources[0].subsets[0].addresses | length > 0
16+
retries: "{{ sap_hypervisor_node_preconfigure_webhook_retries | default(30) }}"
17+
delay: "{{ sap_hypervisor_node_preconfigure_webhook_delay | default(10) }}"
18+
19+
- name: Fail if webhook endpoints never became available
20+
ansible.builtin.fail:
21+
msg: >
22+
Webhook {{ sap_hypervisor_node_preconfigure_webhook_service_name }} in namespace
23+
{{ sap_hypervisor_node_preconfigure_webhook_namespace }} did not become available in time.
24+
when: __sap_hypervisor_node_preconfigure_register_webhook_check is failed

0 commit comments

Comments
 (0)