commit b36bfdc6cf009872850a728065939de20ad35a02
Author: Michel Nederlof <email address hidden>
Date: Thu Jan 18 14:01:18 2024 +0100
Fix startup if the hostname is not configured in OVS
When deployed with Kolla Ansible, the hostname field is not configured
in the external_ids column, and apparently ovn-controller is not
populating it as well if it is missing.
Since ovn-controller is using the hostname of the machine if it is not set
[1][2], it makes sense to do so here as well.
Reviewed: https:/ /review. opendev. org/c/openstack /ovn-bgp- agent/+ /906139 /opendev. org/openstack/ ovn-bgp- agent/commit/ b36bfdc6cf00987 2850a728065939d e20ad35a02
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.2
commit b36bfdc6cf00987 2850a728065939d e20ad35a02
Author: Michel Nederlof <email address hidden>
Date: Thu Jan 18 14:01:18 2024 +0100
Fix startup if the hostname is not configured in OVS
When deployed with Kolla Ansible, the hostname field is not configured
in the external_ids column, and apparently ovn-controller is not
populating it as well if it is missing.
Since ovn-controller is using the hostname of the machine if it is not set
[1][2], it makes sense to do so here as well.
[1] https:/ /github. com/ovn- org/ovn/ blob/v23. 09.1/controller /chassis. c#L99 /github. com/ovn- org/ovn/ blob/v20. 03.0/controller /chassis. c#L126
[2] https:/
Closes-Bug: #2049756 0cf4773dae4e91a f5d11c758c7 32fcee7ed9b5de5 8f1c33fe1d)
Change-Id: Ic602c3fa9928e0
(cherry picked from commit c8970b667c984e2