Modify OVS hostname value to match server's hostname

When an instance is scheduled to a compute node with the ML2/OVN plugin
configured, the hostname of the compute node must match the hostname
value set in the external_ids row of the Open_vSwitch table in OVS.

This commit replaces the use of inventory_hostname with ansible_hostname
when configuring the external_ids row of the local Open_vSwitch table in
OVS.

Change-Id: Ib26eda468fe512a58157911e3271bafb7924ff76
Closes-Bug: #1805626
This commit is contained in:
James Denton 2018-11-28 13:34:01 +00:00
parent a8bbde4226
commit 3c31148df0
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
# limitations under the License.
- name: Set openvswitch hostname
command: "ovs-vsctl set open_vswitch . external-ids:hostname='{{ inventory_hostname }}'"
command: "ovs-vsctl set open_vswitch . external-ids:hostname='{{ ansible_hostname }}'"
tags:
- ovn-config
when: