Use seperate security group for o-hm0 port in devstack

OCTAVIA_HM_LISTEN_PORT is used for amphore to talk with o-hm.
This port need to be enabled in security group.

Change-Id: I686e49a502a1abf9afa5fc6b10d444fda98dc0d5
This commit is contained in:
chen-li 2016-07-15 04:23:06 -05:00
parent 79bcdeceb3
commit 686357ad29

View File

@ -148,7 +148,11 @@ function octavia_configure {
}
function create_mgmt_network_interface {
id_and_mac=$(neutron port-create --name octavia-health-manager-$OCTAVIA_NODE-listen-port --security-group lb-mgmt-sec-grp --device-owner Octavia:health-mgr --binding:host_id=$(hostname) lb-mgmt-net | awk '/ id | mac_address / {print $4}')
# Create security group and rules
neutron security-group-create lb-health-mgr-sec-grp
neutron security-group-rule-create --protocol udp --port-range-min $OCTAVIA_HM_LISTEN_PORT --port-range-max $OCTAVIA_HM_LISTEN_PORT lb-health-mgr-sec-grp
id_and_mac=$(neutron port-create --name octavia-health-manager-$OCTAVIA_NODE-listen-port --security-group lb-health-mgr-sec-grp --device-owner Octavia:health-mgr --binding:host_id=$(hostname) lb-mgmt-net | awk '/ id | mac_address / {print $4}')
id_and_mac=($id_and_mac)
MGMT_PORT_ID=${id_and_mac[0]}