Merge "Gate: prepopulate cluster with one server"

This commit is contained in:
Jenkins 2016-06-02 13:35:01 +00:00 committed by Gerrit Code Review
commit 629d563911

View File

@ -59,6 +59,17 @@ if rally deployment check | grep 'nova' | grep 'Available' > /dev/null; then
nova flavor-create m1.nano 42 64 0 1
fi
# TODO(stpierre): We should prepopulate the cluster with a wide
# variety of resources to ensure that Rally cleanup isn't overzealous,
# but in the meantime this solves an issue with resource
# comparison. When the first instance is booted, default security
# groups are created in the 'service' tenant, and they were being
# reported (erroneously) in the resource comparison. This forces
# creation of those security groups before we record the initial
# resources, and also starts us along the path of prepopulating
# resources.
nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --poll test-server
python $BASE/new/rally/tests/ci/osresources.py\
--dump-list resources_at_start.txt