Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a single option to override the default hypervisor name
Currently neutron uses socket.gethostname() to determine hypervisor names, but this implementation is not fully compatible with libvirt driver which uses canonical name for hypervisor name. This incompatibility causes an issue with root resource provider detection if a deployment uses FQDNs as canonicanl names. This change introduces the resource_provider_default_hypervisor option, so that users can override the hypervisor name by the single option(*1) instead of setting two list options(*2). This is especially useful if the deployment has multiple bridges or interfaces. (*1) [OVS] resource_provider_bandwidths=br-data1:1024:1024,br-data2:1024:1024,\ br-data3:1024,1024,br-data4,1024:1024 resource_provider_default_hypervisor=compute0.mydomain (*2) [OVS] resource_provider_bandwidths=br-data1:1024:1024,br-data2:1024:1024,\ br-data3:1024,1024,br-data4,1024:1024 resource_provider_hypervisors=br-data1:compute0.mydomain,br-data2:\ compute0.mydomain,br-data3:compute0.mydomain,br-data4:compute0.mydomain Related-Bug: #1926693 Change-Id: I692219200535df3af1265248e88c96947e4d8f9d
- Loading branch information
Showing
7 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/resource_priovider_default_hypervisor-b92cff207dfb94c0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
fixes: | ||
- | | ||
The new ``resource_provider_defualt_hypervisor`` option has been added, | ||
to replace the default hypervisor name to locates the root resource | ||
provider without giving a complete list of interfaces or bridges in | ||
the ``resource_provider_hypervisors`` option. This option is located in | ||
the ``[ovs]`` ini-section for ``ovs-agent`` and ``[sriov_nic]`` ini-section | ||
for ``sriov-agent``. |