Use neutron client instead of openstackclient

This is a small fix that works round bug https://bugs.launchpad.net/python-openstackclient/+bug/1650896
('Network' object has no attribute 'keys') when running 'deploy-test-vms.sh'
script (specifically: 'openstack network show int-net -f value -c id').
It should be resolved by new release of python-openstackclient
(https://review.openstack.org/#/c/413493/) but we don't have to wait for it.

Change-Id: Ia0ff48b3e72fdf69ed5e9f40a1d1e7542719d2c4
This commit is contained in:
Marek Zawadzki 2016-12-21 11:22:34 +01:00
parent d8b879f0d8
commit b21f43005f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ create() {
openstack image create --disk-format qcow2 --public --file /tmp/cirros.img cirros
rm -f /tmp/cirros.img
fi
NETID="$(openstack network show int-net -f value -c id)"
NETID="$(neutron net-show int-net -f value -c id)"
openstack server create --flavor m1.tiny --image "${IMAGE}" --nic net-id="$NETID" --min $NUMBER --max $NUMBER --wait test_vm
if [ -n "${ADD_FLOATING}" ]; then
for vm in $(openstack server list -f value -c Name | grep test_vm); do