]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
openstack: retry if volume create+attach operation fails
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 18 Oct 2018 00:41:41 +0000 (02:41 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
commit729585c9506e055a742c19d5034bba6e7a9cf95c
treef46ad59a85f2e8261833579d72b6fa897800376d
parent5f25e89a44e9a0511b610426e054f50e77b1f5e6
openstack: retry if volume create+attach operation fails

Once in awhile, a created volume fails to become available within
a reasonable period of time. When this happens, the entire test job
fails with the following error:

2018-10-02T06:52:44.106 ERROR:teuthology.provision.openstack:'volume
target192168000058-2' reached maximum tries (100) after waiting for 200
seconds

With this commit, we catch that exception and retry with a new volume.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kyrylo Shatskyy <kyrylo.shatskyy@suse.com>
Conflicts:
teuthology/provision/openstack.py
teuthology/openstack/__init__.py
teuthology/provision/openstack.py