[CI] Check nova is available in deployment

At current moment attempt to create flavor
without checking nova availability leads
to failures on some gates, for example
gate-kuryr-dsvm-rally-nv. This patch eliminates
that issue.

Change-Id: Iee1e76d2fe8cc326686b67a27e0ab90469d54944
Closes-Bug: #1556775
This commit is contained in:
Dmitry Ratushnyy 2016-03-17 14:06:57 +03:00
parent df39479657
commit d140ce4c3c

View File

@ -54,7 +54,9 @@ set -o pipefail
rally deployment use --deployment devstack
rally deployment check
source ~/.rally/openrc
nova flavor-create m1.nano 42 64 0 1
if rally deployment check | grep 'nova' | grep 'Available' > /dev/null; then
nova flavor-create m1.nano 42 64 0 1
fi
python $BASE/new/rally/tests/ci/osresources.py\
--dump-list resources_at_start.txt