Give cinder time to create volume

Avoid error trying to use volume before create is done:
volume 'xxx' status must be 'available'. Currently in 'in-use'

Change-Id: I30231c6bfb30de07685ad2136fce18595302eac2
This commit is contained in:
Mark Vanderwiel 2016-04-13 15:12:36 -05:00
parent 4825218378
commit 6c965940e8
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ end
# Helper for setting up basic nova tests
def _run_nova_tests # rubocop:disable Metrics/MethodLength
uuid = `sudo bash -c '. /root/openrc && cinder list | grep test_volume | cut -d " " -f 2'`
_run_commands('nova boot tests post', {
'sleep' => ['10'],
'cinder' => ['list'] }
)
_run_commands('nova boot tests pre', {
'nova' => ['list', "boot test --image cirros --flavor 1 --block-device-mapping vdb=#{uuid.chomp!}:::1"],
'sleep' => ['25'] }