Update devstack plugin for security groups

The nova client no longer supports security group actions. Use the
openstack client instead.

Change-Id: I208e8c009d0438de19cd3eb08dc45ddebb45d3e9
This commit is contained in:
David Shrewsbury 2017-05-15 14:22:34 -04:00
parent 4170b3eb3b
commit 1cb82d6313
1 changed files with 5 additions and 5 deletions

View File

@ -509,11 +509,11 @@ function start_nodepool {
# build sec group rules to reach the nodes, we need to do this
# this late because nova hasn't started until this phase.
if [[ -z $(nova secgroup-list-rules default | grep 'tcp' | grep '65535') ]]; then
nova --os-project-name demo --os-username demo \
secgroup-add-rule default tcp 1 65535 0.0.0.0/0
nova --os-project-name demo --os-username demo \
secgroup-add-rule default udp 1 65535 0.0.0.0/0
if [[ -z $(openstack security group rule list --protocol tcp default | grep '65535') ]]; then
openstack --os-project-name demo --os-username demo security group rule create --ingress --protocol tcp --dst-port 1:65535 --remote-ip 0.0.0.0/0 default
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
# create root keypair to use with glean for devstack cloud.