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:
parent
4825218378
commit
6c965940e8
4
Rakefile
4
Rakefile
|
@ -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'] }
|
||||
|
|
Loading…
Reference in New Issue