-
Notifications
You must be signed in to change notification settings - Fork 12
sap_vm_provision: Add SLES 16 images, fix sshd_config and add python311 workaround #149
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
Conversation
…CP SLES 15 images.
roles/sap_vm_provision/tasks/platform_ansible/aws_ec2_vs/execute_provision.yml
Outdated
Show resolved
Hide resolved
sean-freeman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
Added extra sanitization for slower VMs, where even 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] |
sean-freeman
left a comment
There was a problem hiding this 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 👍 👍
😄
Changes
/usr/etc/ssh/sshd_configinstead of/etc/ssh/sshd_configpython311for SLES 15 GCP images sap_vm_provision: gcp_ce_vm provisioning no longer connects via SSH #117Tests
This change was tested on AWS, GCP and AZ for SLES_SAP 15 SP7 and SLES_SAP 16.0 images.