This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OS version to check reboot happened
In some cases OS of VM shuts down very slowly. After post_reboot_delay (120 sec) ansible logs in to VM and runs "systemctl is-system-running | grep -qE "running|degraded" which works perfectly on RHEL/CentOS 7/8. Ansible will be puzzled as it doesn't detect any other statuses. This issue was solved in ansible 2.10 by redesigning reboot module where "boot_time_command" verifies boot_id before and after reboot. However, we cannot backport ansible 2.10 to product so this patch adds a little check to detect OS version to keep it simple. This works as leapp installs RHEL8 in disconnected mode after reboot, ansible won't be able to connect until leapp is done. Resolves: rhbz#1980542 Change-Id: I6190ee794dce461077b08b486aef18cbf9cc04b3 (cherry picked from commit 2b33594)
- Loading branch information