Correct hostname for OVN agent
Currently Devstack uses short hostname for configuration of OVN. This leads to inability to start instances (failing port binding) on hosts with full hostnames (including dots). Open vSwitch expects hostname in external_ids that corresponds to one returned by ``hostname`` command. Closes-Bug: #1943631 Change-Id: I15b71a49c482be0c8f15ad834e29ea1b33307c86
This commit is contained in:
parent
eacaa99853
commit
8a38a73ddf
|
@ -642,7 +642,7 @@ function _start_ovs {
|
|||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-bridge="br-int"
|
||||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-type="geneve"
|
||||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-ip="$TUNNEL_IP"
|
||||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:hostname="$LOCAL_HOSTNAME"
|
||||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:hostname=$(hostname)
|
||||
# Select this chassis to host gateway routers
|
||||
if [[ "$ENABLE_CHASSIS_AS_GW" == "True" ]]; then
|
||||
sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-cms-options="enable-chassis-as-gw"
|
||||
|
|
Loading…
Reference in New Issue