test: Four fixes for RHEL for Edge tests
1. Remove ansible-blocking-io.py workaround. It's not required. 2. Variable should be PROD_REPO_URL, not STAGE_REPO_URL in ostree-raw-image.sh 3. Use --reboot in rpm-ostree install to reboot VM instead of a reboot ansible task 4. Wait until config file serviceinfo_api_server.yml exists, to avoid file not available to use flaky issue
This commit is contained in:
parent
6040c10e10
commit
2baaa20859
7 changed files with 14 additions and 51 deletions
|
|
@ -755,21 +755,15 @@
|
|||
- name: install sanely failing health check unit to test red boot status behavior
|
||||
block:
|
||||
- name: install sanely failing health check unit to test red boot status behavior
|
||||
command: rpm-ostree install --cache-only https://s3.amazonaws.com/org.osbuild.test-dependencies/greenboot-failing-unit-1.0-1.el8.noarch.rpm
|
||||
command: rpm-ostree install --cache-only https://s3.amazonaws.com/org.osbuild.test-dependencies/greenboot-failing-unit-1.0-1.el8.noarch.rpm --reboot
|
||||
become: yes
|
||||
register: install_result
|
||||
retries: 30 # due to https://github.com/osbuild/osbuild-composer/issues/2492
|
||||
delay: 2
|
||||
until: install_result is success
|
||||
ignore_errors: yes
|
||||
ignore_unreachable: yes
|
||||
|
||||
- name: delay 10 seconds before reboot to make system stable
|
||||
- name: delay 30 seconds before reboot to make system stable
|
||||
pause:
|
||||
seconds: 10
|
||||
|
||||
- name: reboot to deploy new ostree commit
|
||||
reboot:
|
||||
post_reboot_delay: 10
|
||||
become: yes
|
||||
seconds: 30
|
||||
delegate_to: 127.0.0.1
|
||||
|
||||
- name: wait for connection to become reachable/usable
|
||||
wait_for_connection:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue