]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
cloud.openstack: Also retry on BaseHTTPError 1037/head
authorZack Cerza <zack@redhat.com>
Wed, 1 Mar 2017 23:20:35 +0000 (16:20 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 1 Mar 2017 23:20:35 +0000 (16:20 -0700)
commitca3bf4f20b615ce1145eede9fc8d6985f661c500
treea354d52f2ab27e1c955d35b3a6034585d14afb88
parentb1ca41b73aef0fd6b88a75c38d04d2b546d243d1
cloud.openstack: Also retry on BaseHTTPError

We attach volumes immediately after creating them; sometimes they are
still momentarily in the 'creating' state, causing the attach call to
throw a BaseHTTPError. When that happens, simply retry the request
instead of failing node creation, starting the entire cycle all over
again.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/provision/cloud/openstack.py