Skip to content

Commit bb94e2e

Browse files
kayrusstephenfin
andauthored
Bump CSI test timeouts (#2966) (#2972)
* Bump CSI test timeouts We have worked around Nova bug #2119114 by lowering the device detach threshold to 1 second. Unfortunately this still leaves us with a N seconds of additional runtime, where N is the number of device detaches incurred by our test suite (since we run tests serially). This has put us right on the cusp of timeouts, meaning our jobs occasionally pass and occasionally fail, depending on the node we end up on. Add a bit more breathing room for the jobs while we wait for the Nova fix. Note that we do this for both Cinder and Manila to try keep those jobs consistent where possible. [1] https://bugs.launchpad.net/nova/+bug/2119114 * tests: Temporarily remove share v1 endpoint --------- Signed-off-by: Stephen Finucane <[email protected]> Co-authored-by: Stephen Finucane <[email protected]>
1 parent 1f4ca27 commit bb94e2e

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@
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 \
193-
--ginkgo.timeout=24h \
193+
--ginkgo.timeout=1h45m \
194194
-test.timeout=0 \
195195
-report-dir="/var/log/csi-pod" | tee "/var/log/csi-pod/cinder-csi-e2e.log"
196196
register: functional_test_result
197197
ignore_errors: true
198-
async: 5400 # wait 1h30m then fail and fetch the logs
198+
async: 6600 # wait 1h50m (i.e. 5 mins longer than the ginkgo timeout) then fail and fetch the logs
199199
poll: 15
200200

201201
- name: Collect pod logs for debug purpose

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=1h45m \
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: 6600 # wait 1h50m (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:

tests/playbooks/roles/install-devstack/tasks/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,19 @@
133133
fi
134134
openstack service create --name cinder volumev3
135135
openstack endpoint create --region RegionOne volumev3 public "${URL}"
136+
137+
# FIXME(stephenfin): We should remove this as soon as [1] merges and we
138+
# bump our dependencies to include it.
139+
# [1] https://github.com/gophercloud/gophercloud/pull/3435
140+
- name: Delete legacy manila endpoint
141+
shell:
142+
executable: /bin/bash
143+
chdir: "{{ workdir }}"
144+
cmd: |
145+
set -ex
146+
export OS_CLOUD=devstack-admin
147+
148+
# delete legacy manila API endpoints
149+
if openstack service show manila > /dev/null 2>&1; then
150+
openstack service delete manila
151+
fi

0 commit comments

Comments
 (0)