From ea553c45dddffa3dd1c9f7ce2766c2bf6eaa5102 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Tue, 7 May 2024 12:46:12 +0530 Subject: [PATCH] ci: update ubuntu image to 22.04 updating ubuntu image to 22.04 from 20.04 which is used in ci test Signed-off-by: subhamkrai (cherry picked from commit 11ce20feaf21c4c1d99038f82c2b9f6694f97d78) Signed-off-by: subhamkrai --- .github/workflows/build.yml | 2 +- .github/workflows/canary-integration-test.yml | 42 +++++++++---------- .github/workflows/codegen.yml | 2 +- .github/workflows/codespell.yaml | 4 +- .github/workflows/commitlint.yml | 2 +- .github/workflows/crds-gen.yml | 2 +- .github/workflows/create-tag.yaml | 2 +- .github/workflows/daily-nightly-jobs.yml | 14 +++---- .github/workflows/docs-check.yml | 2 +- .../integration-test-helm-suite.yaml | 2 +- .../workflows/integration-test-mgr-suite.yaml | 2 +- .../integration-test-multi-cluster-suite.yaml | 2 +- .../integration-test-object-suite.yaml | 2 +- .../integration-test-smoke-suite.yaml | 2 +- .../integration-test-upgrade-suite.yaml | 4 +- .../integration-tests-on-release.yaml | 12 +++--- .github/workflows/mod-check.yml | 2 +- .github/workflows/push-build.yaml | 2 +- .github/workflows/rbac-gen.yaml | 2 +- .github/workflows/stale.yaml | 2 +- .github/workflows/unit-test.yml | 2 +- 21 files changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28f06ad3590c..7c31d709d154 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,7 +66,7 @@ jobs: run: tests/scripts/validate_modified_files.sh gen-rbac linux-build-all: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: fail-fast: false diff --git a/.github/workflows/canary-integration-test.yml b/.github/workflows/canary-integration-test.yml index 13653ea8dd97..3da8fdbe2ceb 100644 --- a/.github/workflows/canary-integration-test.yml +++ b/.github/workflows/canary-integration-test.yml @@ -15,7 +15,7 @@ defaults: jobs: canary: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -298,7 +298,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} raw-disk-with-object: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -375,7 +375,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} two-osds-in-device: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -424,7 +424,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} osd-with-metadata-partition-device: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -472,7 +472,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} osd-with-metadata-device: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -528,7 +528,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -578,7 +578,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} lvm: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -633,7 +633,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} pvc: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -709,7 +709,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} pvc-db: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -761,7 +761,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} pvc-db-wal: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -816,7 +816,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -884,7 +884,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc-db: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -938,7 +938,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc-db-wal: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1002,7 +1002,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc-kms-vault-token-auth: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1088,7 +1088,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc-kms-vault-k8s-auth: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1154,7 +1154,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} lvm-pvc: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1211,7 +1211,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} multi-cluster-mirroring: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1470,7 +1470,7 @@ jobs: additional-namespace: rook-ceph-secondary rgw-multisite-testing: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1499,7 +1499,7 @@ jobs: name: ${{ github.job }}-${{ matrix.ceph-image }} encryption-pvc-kms-ibm-kp: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1527,7 +1527,7 @@ jobs: artifact-name: ${{ github.job }}-${{ matrix.ceph-image }} multus-cluster-network: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: @@ -1615,7 +1615,7 @@ jobs: additional-namespace: kube-system csi-hostnetwork-disabled: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" strategy: matrix: diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index a2e084ec9c05..96dc1d7cf987 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -26,7 +26,7 @@ permissions: jobs: codegen: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" steps: - name: checkout diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml index f577dbc2efa7..9668fe290d67 100644 --- a/.github/workflows/codespell.yaml +++ b/.github/workflows/codespell.yaml @@ -22,7 +22,7 @@ permissions: jobs: codespell: name: codespell - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: @@ -50,7 +50,7 @@ jobs: check_hidden: true misspell: name: misspell - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 28ab3af37d8f..31aa97dc1f4d 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -24,7 +24,7 @@ jobs: permissions: contents: read # for actions/checkout to fetch code pull-requests: read # for wagoid/commitlint-github-action to get commits in PR - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: diff --git a/.github/workflows/crds-gen.yml b/.github/workflows/crds-gen.yml index 5e38fd2e0549..20320f48170c 100644 --- a/.github/workflows/crds-gen.yml +++ b/.github/workflows/crds-gen.yml @@ -26,7 +26,7 @@ permissions: jobs: crds-gen: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 diff --git a/.github/workflows/create-tag.yaml b/.github/workflows/create-tag.yaml index d18163b1544c..22152eac7579 100644 --- a/.github/workflows/create-tag.yaml +++ b/.github/workflows/create-tag.yaml @@ -13,7 +13,7 @@ defaults: jobs: Create-Tag: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'rook/rook' && contains('travisn,leseb,BlaineEXE,jbw976,galexrt,satoru-takeuchi', github.actor) steps: - name: checkout diff --git a/.github/workflows/daily-nightly-jobs.yml b/.github/workflows/daily-nightly-jobs.yml index 4608e4dea2a1..7173052e9385 100644 --- a/.github/workflows/daily-nightly-jobs.yml +++ b/.github/workflows/daily-nightly-jobs.yml @@ -117,7 +117,7 @@ jobs: smoke-suite-quincy-devel: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -157,7 +157,7 @@ jobs: smoke-suite-reef-devel: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -197,7 +197,7 @@ jobs: smoke-suite-ceph-main: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -237,7 +237,7 @@ jobs: object-suite-quincy-devel: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -277,7 +277,7 @@ jobs: object-suite-ceph-main: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -317,7 +317,7 @@ jobs: upgrade-from-reef-stable-to-reef-devel: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 @@ -357,7 +357,7 @@ jobs: upgrade-from-quincy-stable-to-quincy-devel: if: github.repository == 'rook/rook' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index 67a9597800ef..e665b4255dc5 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -22,7 +22,7 @@ permissions: jobs: docs-check: name: docs-check - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/integration-test-helm-suite.yaml b/.github/workflows/integration-test-helm-suite.yaml index 00813d8e444b..125eb646cc2c 100644 --- a/.github/workflows/integration-test-helm-suite.yaml +++ b/.github/workflows/integration-test-helm-suite.yaml @@ -21,7 +21,7 @@ concurrency: jobs: TestCephHelmSuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration-test-mgr-suite.yaml b/.github/workflows/integration-test-mgr-suite.yaml index d66c66d3fa12..0fcf2750e5bc 100644 --- a/.github/workflows/integration-test-mgr-suite.yaml +++ b/.github/workflows/integration-test-mgr-suite.yaml @@ -19,7 +19,7 @@ concurrency: jobs: TestCephMgrSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "contains(github.event.pull_request.labels.*.name, 'run-mgr-suite')" strategy: fail-fast: false diff --git a/.github/workflows/integration-test-multi-cluster-suite.yaml b/.github/workflows/integration-test-multi-cluster-suite.yaml index 130a6a786665..0badaee61fec 100644 --- a/.github/workflows/integration-test-multi-cluster-suite.yaml +++ b/.github/workflows/integration-test-multi-cluster-suite.yaml @@ -21,7 +21,7 @@ concurrency: jobs: TestCephMultiClusterDeploySuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration-test-object-suite.yaml b/.github/workflows/integration-test-object-suite.yaml index f5704d58cf13..1754fd5c8af9 100644 --- a/.github/workflows/integration-test-object-suite.yaml +++ b/.github/workflows/integration-test-object-suite.yaml @@ -21,7 +21,7 @@ concurrency: jobs: TestCephObjectSuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration-test-smoke-suite.yaml b/.github/workflows/integration-test-smoke-suite.yaml index 8210d8b34fdf..67b4808cbcdf 100644 --- a/.github/workflows/integration-test-smoke-suite.yaml +++ b/.github/workflows/integration-test-smoke-suite.yaml @@ -21,7 +21,7 @@ concurrency: jobs: TestCephSmokeSuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration-test-upgrade-suite.yaml b/.github/workflows/integration-test-upgrade-suite.yaml index 19a5a9ca7048..07ccb01d2299 100644 --- a/.github/workflows/integration-test-upgrade-suite.yaml +++ b/.github/workflows/integration-test-upgrade-suite.yaml @@ -21,7 +21,7 @@ concurrency: jobs: TestCephUpgradeSuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -65,7 +65,7 @@ jobs: TestHelmUpgradeSuite: if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration-tests-on-release.yaml b/.github/workflows/integration-tests-on-release.yaml index 6c332b82a2a2..067fd28bd2c9 100644 --- a/.github/workflows/integration-tests-on-release.yaml +++ b/.github/workflows/integration-tests-on-release.yaml @@ -14,7 +14,7 @@ defaults: jobs: TestCephHelmSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -54,7 +54,7 @@ jobs: path: /home/runner/work/rook/rook/tests/integration/_output/tests/ TestCephMultiClusterDeploySuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -95,7 +95,7 @@ jobs: path: /home/runner/work/rook/rook/tests/integration/_output/tests/ TestCephSmokeSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -133,7 +133,7 @@ jobs: path: /home/runner/work/rook/rook/tests/integration/_output/tests/ TestCephUpgradeSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -171,7 +171,7 @@ jobs: path: /home/runner/work/rook/rook/tests/integration/_output/tests/ TestHelmUpgradeSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -212,7 +212,7 @@ jobs: path: /home/runner/work/rook/rook/tests/integration/_output/tests/ TestCephObjectSuite: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/mod-check.yml b/.github/workflows/mod-check.yml index dc94a3bc7015..6324b73c4246 100644 --- a/.github/workflows/mod-check.yml +++ b/.github/workflows/mod-check.yml @@ -26,7 +26,7 @@ permissions: jobs: modcheck: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 diff --git a/.github/workflows/push-build.yaml b/.github/workflows/push-build.yaml index a5e441e185d0..b2444c957e93 100644 --- a/.github/workflows/push-build.yaml +++ b/.github/workflows/push-build.yaml @@ -17,7 +17,7 @@ permissions: jobs: push-image-to-container-registry: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'rook/rook' steps: - name: checkout diff --git a/.github/workflows/rbac-gen.yaml b/.github/workflows/rbac-gen.yaml index 58edf3cedb0a..b6fc391b350f 100644 --- a/.github/workflows/rbac-gen.yaml +++ b/.github/workflows/rbac-gen.yaml @@ -26,7 +26,7 @@ permissions: jobs: gen-rbac: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout uses: actions/checkout@v4 diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index a052d4dfbc1e..400786e846a9 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -12,7 +12,7 @@ jobs: permissions: issues: write # for actions/stale to close stale issues pull-requests: write # for actions/stale to close stale PRs - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'rook/rook' steps: - uses: actions/stale@v9 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a5b9aad4ae4a..ec7f1d2eb3f9 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -33,7 +33,7 @@ permissions: jobs: unittests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" steps: - name: checkout