6wind-virtual-accelerator-plugin: update built-in tests for Fuel 8
This commit updates the plugin built-in tests to support Openstack Liberty command syntax. Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com> Change-Id: I3110798d3af5cca2bb3b72099b226221b9b7a290
This commit is contained in:
parent
226e3df0ae
commit
c2d0bffaef
|
@ -4,7 +4,7 @@
|
|||
|
||||
source openrc
|
||||
|
||||
FLOATING_IP=$(nova floating-ip-create net04_ext | grep net04_ext | tail -n1 | awk '{print $4}')
|
||||
FLOATING_IP=$(nova floating-ip-create admin_floating_net | grep admin_floating_net | tail -n1 | awk '{print $4}')
|
||||
|
||||
if [[ ! -z ${FLOATING_IP} ]]; then
|
||||
nova floating-ip-associate test_vm ${FLOATING_IP}
|
||||
|
|
|
@ -9,7 +9,7 @@ source openrc
|
|||
|
||||
#Required to be able to install iperf package since Cirros image does not provide it
|
||||
curl https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img -o $UBUNTU_IMAGE
|
||||
glance image-create --name $IMAGE_NAME --file $UBUNTU_IMAGE --disk-format qcow2 --container-format bare --is-public True --progress
|
||||
glance image-create --name $IMAGE_NAME --file $UBUNTU_IMAGE --disk-format qcow2 --container-format bare --visibility public --progress
|
||||
nova flavor-create m1.vm_hugepages auto 512 3 1
|
||||
nova flavor-key m1.vm_hugepages set hw:mem_page_size=large
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source openrc
|
||||
floating_ip=$(nova floating-ip-list | grep net04_ext | awk '{print $4}')
|
||||
floating_ip=$(nova floating-ip-list | grep admin_floating_net | awk '{print $4}')
|
||||
|
||||
apt-get install -y iperf
|
||||
iperf -c $floating_ip -p 6000
|
||||
|
|
Loading…
Reference in New Issue