Skip to content

Conversation

@marcelmamula
Copy link
Contributor

Changes

Tests

This change was tested on AWS, GCP and AZ for SLES_SAP 15 SP7 and SLES_SAP 16.0 images.

@marcelmamula marcelmamula self-assigned this Jan 7, 2026
Copy link
Member

@sean-freeman sean-freeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@marcelmamula
Copy link
Contributor Author

Added extra sanitization for slower VMs, where even raw module attempt would fail with Unreachable.

Example for SLES_15 SP7 PAYG, which does not have Python 3.11

TASK [community.sap_infrastructure.sap_vm_provision : Wait for SSH port on provisioned host to become available] *************************
 [started TASK: community.sap_infrastructure.sap_vm_provision : Wait for SSH port on provisioned host to become available on h01hana]
FAILED - RETRYING: [h01hana -> localhost]: Wait for SSH port on provisioned host to become available (30 retries left).
FAILED - RETRYING: [h01hana -> localhost]: Wait for SSH port on provisioned host to become available (29 retries left).
FAILED - RETRYING: [h01hana -> localhost]: Wait for SSH port on provisioned host to become available (28 retries left).
ok: [h01hana -> localhost]

TASK [community.sap_infrastructure.sap_vm_provision : Check if provisioned host is SLES 15 SP5-SP7 without Python 3.11 installed] ********
 [started TASK: community.sap_infrastructure.sap_vm_provision : Check if provisioned host is SLES 15 SP5-SP7 without Python 3.11 installed on h01hana]
ok: [h01hana -> 10.10.10.46]

TASK [community.sap_infrastructure.sap_vm_provision : Inform that SLES 15 SP5-SP7 without Python 3.11 installed was detected] ************
 [started TASK: community.sap_infrastructure.sap_vm_provision : Inform that SLES 15 SP5-SP7 without Python 3.11 installed was detected on h01hana]
ok: [h01hana -> 10.10.10.46] =>
    msg: |-
        INFO: Provisioned host is SLES 15 SP5-7 without Python 3.11 installed.
        Some Google Cloud images do not have Python 3.11 pre-installed which is required for Ansible modules to work.
        Proceeding to install Python 3.11...

TASK [community.sap_infrastructure.sap_vm_provision : Install required Python 3.11 on SLES 15 SP5-SP7 host] ******************************
 [started TASK: community.sap_infrastructure.sap_vm_provision : Install required Python 3.11 on SLES 15 SP5-SP7 host on h01hana]
FAILED - RETRYING: [h01hana -> 10.10.10.46]: Install required Python 3.11 on SLES 15 SP5-SP7 host (30 retries left).
FAILED - RETRYING: [h01hana -> 10.10.10.46]: Install required Python 3.11 on SLES 15 SP5-SP7 host (29 retries left).
FAILED - RETRYING: [h01hana -> 10.10.10.46]: Install required Python 3.11 on SLES 15 SP5-SP7 host (28 retries left).
FAILED - RETRYING: [h01hana -> 10.10.10.46]: Install required Python 3.11 on SLES 15 SP5-SP7 host (27 retries left).
FAILED - RETRYING: [h01hana -> 10.10.10.46]: Install required Python 3.11 on SLES 15 SP5-SP7 host (26 retries left).
changed: [h01hana -> 10.10.10.46]

Copy link
Member

@sean-freeman sean-freeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM x2 power-up 👍 👍

😄

@marcelmamula marcelmamula merged commit c242c12 into sap-linuxlab:dev Jan 7, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants