Add unmanaged vm to nodepool functional tests

In order to increase test coverage we should add an unmanaged vm to
the functional tests.

Change-Id: I3908c74ea6e581d61180e1b238e4d0e869751cf3
Depends-On: https://review.openstack.org/625923
This commit is contained in:
Tobias Henkel 2018-12-19 17:29:58 +01:00
parent 0d17a2527d
commit 52fe25da25
1 changed files with 7 additions and 0 deletions

View File

@ -691,6 +691,10 @@ function start_nodepool {
openstack --os-project-name demo --os-username demo security group rule create --ingress --protocol udp --dst-port 1:65535 --remote-ip 0.0.0.0/0 default
fi
# start an unmanaged vm that should be ignored by nodepool
local cirros_image=$(openstack --os-project-name demo --os-username demo image list | grep cirros | awk '{print $4}' | head -n1)
openstack --os-project-name demo --os-username demo server create --flavor cirros256 --image $cirros_image unmanaged-vm
# create root keypair to use with glean for devstack cloud.
nova --os-project-name demo --os-username demo \
keypair-add --pub-key $NODEPOOL_PUBKEY $NODEPOOL_KEY_NAME
@ -715,6 +719,9 @@ function start_nodepool {
function shutdown_nodepool {
stop_process nodepool
# Verify that the unmanaged vm still exists
openstack --os-project-name demo --os-username demo server show unmanaged-vm
:
}