Skip to content

Commit fd4f945

Browse files
committed
Align opts for Cinder, Manila tests
Add a timeout to the Manila job and otherwise move some lines around. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 7b78e2f commit fd4f945

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tests/playbooks/roles/install-csi-cinder/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@
187187
-storage.testdriver=tests/e2e/csi/cinder/test-driver.yaml \
188188
--ginkgo.focus='External.Storage' \
189189
--ginkgo.skip='\[Disruptive\]|\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+mount\s+multiple\s+PV\s+pointing\s+to\s+the\s+same\s+storage\s+on\s+the\s+same\s+node|\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]|should\s+support\s+expansion\s+of\s+pvcs\s+created\s+for\s+ephemeral\s+pvcs' \
190+
--ginkgo.v \
190191
--ginkgo.noColor \
191192
--ginkgo.progress \
192-
--ginkgo.v \
193193
--ginkgo.timeout=1h30m \
194194
-test.timeout=0 \
195195
-report-dir="/var/log/csi-pod" | tee "/var/log/csi-pod/cinder-csi-e2e.log"

tests/playbooks/roles/install-csi-manila/tasks/main.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,21 +227,23 @@
227227
set +x; source {{ devstack_workdir }}/openrc demo demo > /dev/null; set -x
228228
229229
cd {{ ansible_user_dir }}/src/k8s.io/cloud-provider-openstack
230-
231-
# GATEWAY_IP is the default value in devstack
232230
mkdir -p /var/log/csi-pod
231+
# GATEWAY_IP is the default value in devstack
233232
GATEWAY_IP=172.24.5.1 \
234233
OS_RC={{ devstack_workdir }}/openrc \
235234
go test -v ./cmd/tests/manila-csi-e2e-suite/manila_csi_e2e_suite_test.go \
235+
--ginkgo.focus="\[manila-csi-e2e\]" \
236+
--ginkgo.skip="\[Disruptive\]|\[sig-storage\]\s+\[manila-csi-e2e\]\s+CSI\s+Volumes\s+\[Driver:\s+nfs.manila.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]|should\s+provision\s+storage\s+with\s+snapshot\s+data\s+source|restoring\s+snapshot\s+to\s+larger\s+size" \
236237
--ginkgo.v \
237238
--ginkgo.noColor \
238239
--ginkgo.progress \
239-
--ginkgo.skip="\[Disruptive\]|\[sig-storage\]\s+\[manila-csi-e2e\]\s+CSI\s+Volumes\s+\[Driver:\s+nfs.manila.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]|should\s+provision\s+storage\s+with\s+snapshot\s+data\s+source|restoring\s+snapshot\s+to\s+larger\s+size" \
240-
--ginkgo.focus="\[manila-csi-e2e\]" \
241-
-report-dir /var/log/csi-pod \
242-
-timeout=0 | tee "/var/log/csi-pod/manila-csi-e2e.log"
240+
--ginkgo.timeout=1h30m \
241+
-timeout=0 \
242+
-report-dir /var/log/csi-pod | tee "/var/log/csi-pod/manila-csi-e2e.log"
243243
register: functional_test_result
244244
ignore_errors: true
245+
async: 5700 # wait 1h35m (i.e. 5 mins longer than the ginkgo timeout) then fail and fetch the logs
246+
poll: 15
245247

246248
- name: Collect pod logs for debug purpose
247249
shell:

0 commit comments

Comments
 (0)