Set ovn hostname using nodename facts
Ansible hostname facts using short hostname which may not work for other senario where compute hostname is set to FQDN. OVN required ovs set hostname and compute hostname should be same. Change-Id: I585f73551c5a90841dcf2d1dd94a3e1fc90b04ac (cherry picked from commit 1403c6308bd99e1bb413186600e4693451c79be5)
This commit is contained in:
parent
ead864ba6e
commit
df35816daa
@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Set openvswitch hostname
|
||||
command: "ovs-vsctl set open_vswitch . external-ids:hostname='{{ ansible_facts['hostname'] }}'"
|
||||
command: "ovs-vsctl set open_vswitch . external-ids:hostname='{{ ansible_facts['nodename'] }}'"
|
||||
when:
|
||||
- (neutron_services['neutron-ovn-northd']['group'] in group_names) or
|
||||
(neutron_services['neutron-ovn-controller']['group'] in group_names)
|
||||
|
Loading…
x
Reference in New Issue
Block a user