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:
Xiaofeng Wang 2023-06-28 21:32:34 +08:00
parent 6040c10e10
commit 2baaa20859
7 changed files with 14 additions and 51 deletions

View file

@ -17,6 +17,12 @@ sudo pip3 install yq==v3.2.1
sudo dnf install -y fdo-admin-cli
# Start fdo-aio to have /etc/fdo/aio folder
sudo systemctl enable --now fdo-aio
# Wait until config file serviceinfo_api_server.yml exists
# to avoid file not available to use flaky issue
until [ -f /etc/fdo/aio/configs/serviceinfo_api_server.yml ]
do
sleep 2
done
# Prepare service api server config filef
sudo /usr/local/bin/yq -iy '.service_info.diskencryption_clevis |= [{disk_label: "/dev/vda4", reencrypt: true, binding: {pin: "tpm2", config: "{}"}}]' /etc/fdo/aio/configs/serviceinfo_api_server.yml
sudo systemctl restart fdo-aio