Skip to content

Commit e107825

Browse files
Merge pull request #838 from fmount/kuttl_zuul_fix
Delete allocated PVCs after each kuttl test execution
2 parents 9cf2c73 + 29fc189 commit e107825

File tree

8 files changed

+25
-4
lines changed

8 files changed

+25
-4
lines changed

kuttl-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kind: TestSuite
1414
reportFormat: xml
1515
reportName: kuttl-report-glance
1616
reportGranularity: test
17-
timeout: 180
17+
timeout: 240
1818
namespace: glance-kuttl-tests
1919
parallel: 1
2020
suppress:

test/kuttl/tests/glance_dist_image_import/02-cleanup.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ commands:
55
oc -n $NAMESPACE kustomize ../../../../config/samples/layout/single | oc delete -n $NAMESPACE -f -
66
- script: |
77
oc -n $NAMESPACE kustomize --load-restrictor LoadRestrictionsNone ../../../../config/samples/openstackclient | oc -n $NAMESPACE delete -f -
8+
- script: |
9+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
10+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

test/kuttl/tests/glance_image_cache/04-cleanup-glance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/layout/single | oc delete -n $NAMESPACE -f -
6+
- script: |
7+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
8+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

test/kuttl/tests/glance_single/05-cleanup-glance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/layout/single | oc delete -n $NAMESPACE -f -
6+
- script: |
7+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
8+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

test/kuttl/tests/glance_single_tls/05-cleanup-glance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/layout/single | oc delete -n $NAMESPACE -f -
6+
- script: |
7+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
8+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

test/kuttl/tests/glance_split/05-cleanup-glance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/layout/split | oc delete -n $NAMESPACE -f -
6+
- script: |
7+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
8+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

test/kuttl/tests/glance_split_proxypass/05-cleanup-glance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/layout/split | oc delete -n $NAMESPACE -f -
6+
- script: |
7+
oc -n $NAMESPACE get pvc -l service=glance -o custom-columns=NAME:.metadata.name --no-headers | xargs -n 1 oc -n $NAMESPACE delete pvc;
8+
for pv in $(oc -n $NAMESPACE get pv | grep "Released.*glance" | cut -f 1 -d " "); do oc -n $NAMESPACE patch pv $pv -p '{"spec":{"claimRef": null}}'; done

zuul.d/jobs.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717
- ^renovate.json$
1818
vars:
1919
cifmw_install_yamls_sdk_version: v1.41.1
20-
cifmw_kuttl_tests_env_vars:
21-
CEPH_TIMEOUT: 90
22-
PV_NUM: 20
20+
cifmw_cls_pv_count: 20
2321
cifmw_kuttl_tests_operator_list:
2422
- glance
2523

2624
- job:
2725
name: glance-operator-tempest
2826
parent: podified-multinode-hci-deployment-crc-1comp-backends
2927
vars:
28+
cifmw_ceph_daemons_layout:
29+
rgw_enabled: false
30+
dashboard_enabled: false
31+
cephfs_enabled: true
32+
ceph_nfs_enabled: false
3033
cifmw_install_yamls_sdk_version: v1.41.1
3134
cifmw_test_operator_tempest_concurrency: 3
3235
cifmw_test_operator_tempest_include_list: |

0 commit comments

Comments
 (0)