Browse Source

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
tags/3.4.0
Tobias Henkel 6 months ago
parent
commit
52fe25da25
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      devstack/plugin.sh

+ 7
- 0
devstack/plugin.sh View File

@@ -691,6 +691,10 @@ function start_nodepool {
691 691
         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
692 692
     fi
693 693
 
694
+    # start an unmanaged vm that should be ignored by nodepool
695
+    local cirros_image=$(openstack --os-project-name demo --os-username demo image list | grep cirros | awk '{print $4}' | head -n1)
696
+    openstack --os-project-name demo --os-username demo server create --flavor cirros256 --image $cirros_image unmanaged-vm
697
+
694 698
     # create root keypair to use with glean for devstack cloud.
695 699
     nova --os-project-name demo --os-username demo \
696 700
         keypair-add --pub-key $NODEPOOL_PUBKEY $NODEPOOL_KEY_NAME
@@ -715,6 +719,9 @@ function start_nodepool {
715 719
 
716 720
 function shutdown_nodepool {
717 721
     stop_process nodepool
722
+
723
+    # Verify that the unmanaged vm still exists
724
+    openstack --os-project-name demo --os-username demo server show unmanaged-vm
718 725
     :
719 726
 }
720 727
 

Loading…
Cancel
Save