Update devstack plugin for security groups

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

Change-Id: I6a7740340caa2a7607e95744de31801fa12955cf
This commit is contained in:
David Shrewsbury 2017-05-15 13:35:31 -04:00
parent dabb6d0a96
commit 13ad80ca31
1 changed files with 4 additions and 5 deletions

View File

@ -450,11 +450,10 @@ 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
export PATH=$NODEPOOL_INSTALL/bin:$PATH