ci: add option to download artifacts in canary test
this commit add option to download artifacts in canary integration test for better debug. Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
1 parent
4e151a7e78
commit
fcd1529b23
2 files changed
+84
-20
No files matched your search
@@ -77,6 +77,7 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh
|
||||
kubectl -n rook-ceph get pods
|
||||
|
||||
@@ -92,6 +93,14 @@ jobs:
|
||||
# copy the test file
|
||||
# execute the test file
|
||||
|
||||
- name: Upload canary test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: canary
|
||||
path: test
|
||||
|
||||
|
||||
pvc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -160,9 +169,17 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
|
||||
- name: Upload pvc test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: pvc
|
||||
path: test
|
||||
|
||||
pvc-db:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -239,9 +256,17 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
|
||||
- name: Upload pvc-db test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: pvc-db
|
||||
path: test
|
||||
|
||||
pvc-db-wal:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -320,8 +345,16 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
|
||||
- name: Upload pvc-db-wal test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: pvc-db-wal
|
||||
path: test
|
||||
|
||||
encryption-pvc:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -387,10 +420,18 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
kubectl -n rook-ceph get secrets
|
||||
sudo lsblk
|
||||
kubectl -n rook-ceph get secrets
|
||||
sudo lsblk
|
||||
|
||||
- name: Upload encryption-pvc test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: encryption-pvc
|
||||
path: test
|
||||
|
||||
encryption-pvc-db:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -469,9 +510,17 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
kubectl -n rook-ceph get secrets
|
||||
kubectl -n rook-ceph get secrets
|
||||
|
||||
- name: Upload encryption-pvc-db test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: encryption-pvc-db
|
||||
path: test
|
||||
|
||||
encryption-pvc-db-wal:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -548,9 +597,17 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
kubectl -n rook-ceph get secrets
|
||||
kubectl -n rook-ceph get secrets
|
||||
|
||||
- name: Upload encryption-pvc-db-wal test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: encryption-pvc-db-wal
|
||||
path: test
|
||||
|
||||
encryption-pvc-kms-vault-token-auth:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -623,10 +680,19 @@ jobs:
|
||||
|
||||
- name: wait for ceph to be ready
|
||||
run: |
|
||||
mkdir test
|
||||
tests/scripts/validate_cluster.sh osd
|
||||
kubectl -n rook-ceph get pods
|
||||
kubectl -n rook-ceph get secrets
|
||||
|
||||
- name: validate vault
|
||||
run: |
|
||||
tests/scripts/deploy-validate-vault.sh validate
|
||||
sudo lsblk
|
||||
tests/scripts/deploy-validate-vault.sh validate
|
||||
sudo lsblk
|
||||
|
||||
- name: Upload encryption-pvc-kms-vault-token-auth test result
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: encryption-pvc-kms-vault-token-auth
|
||||
path: test
|
||||
@@ -6,7 +6,6 @@ if [ -z "$DAEMON_TO_VALIDATE" ]; then
|
||||
DAEMON_TO_VALIDATE=all
|
||||
fi
|
||||
|
||||
trap display_status ERR
|
||||
|
||||
#############
|
||||
# FUNCTIONS #
|
||||
@@ -82,21 +81,18 @@ function test_csi {
|
||||
|
||||
function display_status {
|
||||
set +x
|
||||
echo "failed to wait for daemon to be ready"
|
||||
$EXEC_COMMAND -s
|
||||
$EXEC_COMMAND osd dump
|
||||
$EXEC_COMMAND -s > test/ceph-status.txt
|
||||
$EXEC_COMMAND osd dump > test/osd-dump.txt
|
||||
|
||||
kubectl -n rook-ceph logs "$(kubectl -n rook-ceph -l app=rook-ceph-operator get pods -o jsonpath='{.items[*].metadata.name}')"
|
||||
kubectl -n rook-ceph get pods
|
||||
kubectl -n rook-ceph describe job/"$(kubectl -n rook-ceph get pod -l app=rook-ceph-osd-prepare -o jsonpath='{.items[*].metadata.name}')"||true
|
||||
kubectl -n rook-ceph describe deploy/rook-ceph-osd-0||true
|
||||
kubectl get all -n rook-ceph -o wide
|
||||
kubectl get all -n rook-ceph -o yaml
|
||||
kubectl -n rook-ceph get cephcluster -o yaml
|
||||
sudo lsblk
|
||||
kubectl -n rook-ceph logs "$(kubectl -n rook-ceph -l app=rook-ceph-operator get pods -o jsonpath='{.items[*].metadata.name}')" > test/operator.txt
|
||||
kubectl -n rook-ceph get pods > test/pods-list.txt
|
||||
kubectl -n rook-ceph describe job/"$(kubectl -n rook-ceph get pod -l app=rook-ceph-osd-prepare -o jsonpath='{.items[*].metadata.name}')" > test/osd-prepare.txt
|
||||
kubectl -n rook-ceph describe deploy/rook-ceph-osd-0 > test/osd-deploy.txt
|
||||
kubectl get all -n rook-ceph -o wide > test/cluster-wide.txt
|
||||
kubectl get all -n rook-ceph -o yaml > test/cluster-yaml.txt
|
||||
kubectl -n rook-ceph get cephcluster -o yaml > test/cephcluster.txt
|
||||
sudo lsblk > test/lsblk.txt
|
||||
set -x
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
########
|
||||
@@ -147,6 +143,8 @@ for daemon in $daemons_list; do
|
||||
esac
|
||||
done
|
||||
|
||||
display_status
|
||||
|
||||
echo "Ceph is up and running, have a look!"
|
||||
$EXEC_COMMAND -s
|
||||
kubectl -n rook-ceph get pods
|
||||
|
||||
Reference in new issue
Block a user