From 8f1ac1931119a77003956706aa46a2f8c4dbb872 Mon Sep 17 00:00:00 2001 From: Peter Sabaini Date: Mon, 29 Jan 2024 10:44:43 +0100 Subject: [PATCH] Testing: add reef/stable to reef/candidate upgrade Signed-off-by: Peter Sabaini --- .github/workflows/r2r-candidate-upgrade.yaml | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/r2r-candidate-upgrade.yaml diff --git a/.github/workflows/r2r-candidate-upgrade.yaml b/.github/workflows/r2r-candidate-upgrade.yaml new file mode 100644 index 00000000..f00f9c3e --- /dev/null +++ b/.github/workflows/r2r-candidate-upgrade.yaml @@ -0,0 +1,62 @@ +name: Upgrade a r/stable cluster to r/candidate +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: null + +jobs: + # a2b upgrade implies a/stable -> b/candidate release upgrade. + r2r-upgrade-test: + name: Test reef/stable to reef/candidate upgrades + runs-on: ubuntu-22.04 + steps: + + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Copy utils + run: cp tests/scripts/actionutils.sh $HOME + + - name: Clear FORWARD firewall rules + run: ~/actionutils.sh cleaript + + - name: Free disk + run: ~/actionutils.sh free_runner_disk + + - name: Install dependencies + run: ~/actionutils.sh setup_lxd + + - name: Create containers with loopback devices + run: ~/actionutils.sh create_containers + + - name: Install quincy stable from store + run: ~/actionutils.sh install_store reef/stable + + - name: Bootstrap + run: ~/actionutils.sh bootstrap_head + + - name: Setup cluster + run: ~/actionutils.sh cluster_nodes + + - name: Add 3 OSDs + run: | + for c in node-wrk0 node-wrk1 node-wrk2 ; do + ~/actionutils.sh add_osd_to_node $c + done + ~/actionutils.sh headexec wait_for_osds 3 + + - name: Enable RGW + run: ~/actionutils.sh headexec enable_rgw + + - name: Exercise RGW + run: ~/actionutils.sh headexec testrgw + + - name: Upgrade to candidate + run: ~/actionutils.sh refresh_snap reef/candidate + + - name: Wait until 3 OSDs are up + run: ~/actionutils.sh headexec wait_for_osds 3 + + - name: Exercise RGW again + run: ~/actionutils.sh headexec testrgw