Changed source of security group info

neutron security-group-list returns all security groups for all tenants when 
run as admin, we are also getting the "service" users sec group returned

looks like a quick fix would be to instead use nova secgroup-list
This commit is contained in:
Ryan Brady 2014-04-22 09:24:40 -04:00
parent 871a7d8693
commit ab4f0b56e1

View File

@ -57,7 +57,7 @@ tripleo wait_for 10 5 neutron port-list -f csv -c id --quote none \| grep id
PORT=$(neutron port-list | grep $PRIVATEIP | cut -d'|' -f2)
FLOATINGIP=$(neutron floatingip-create ext-net --port-id "${PORT//[[:space:]]/}" | awk '$2=="floating_ip_address" {print $4}')
SECGROUPID=$(neutron security-group-list -f csv --quote none | grep default | head -n 1 | cut -d, -f1)
SECGROUPID=$(nova secgroup-list -f csv --quote none | grep default | head -n 1 | cut -d, -f1)
neutron security-group-rule-create $SECGROUPID --protocol icmp \
--direction ingress --port-range-min 8 || true
neutron security-group-rule-create $SECGROUPID --protocol tcp \