commit 49eab7d308b598e4c4966110d6aa61cd091cc3f6
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Nov 17 21:14:40 2022 +0100
Move registration "ChassisBandwidthConfigEvent" to OvnSbIdl init
The "ChassisBandwidthConfigEvent" event registration is now done in the
"OvnSbIdl" class initialization. That ensures this event is registered
in a worker thread.
If the event is called before the "OVNMechanismDriver"'s "OVNClient"
has been instantiated, the event is skipped. When the OVN placement
extension is loaded, all chassis configurations are read and loaded,
thus any previous event is not relevant.
This patch also adds a "match_fn" check to
"ChassisBandwidthConfigEvent". If during an update event, the bandwidth
options are not modified, this class does not update the resource
provider inventories.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/865857 /opendev. org/openstack/ neutron/ commit/ 49eab7d308b598e 4c4966110d6aa61 cd091cc3f6
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 49eab7d308b598e 4c4966110d6aa61 cd091cc3f6
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Nov 17 21:14:40 2022 +0100
Move registration "ChassisBandwid thConfigEvent" to OvnSbIdl init
The "ChassisBandwid thConfigEvent" event registration is now done in the
"OvnSbIdl" class initialization. That ensures this event is registered
in a worker thread.
If the event is called before the "OVNMechanismDr iver"'s "OVNClient"
has been instantiated, the event is skipped. When the OVN placement
extension is loaded, all chassis configurations are read and loaded,
thus any previous event is not relevant.
This patch also adds a "match_fn" check to dwidthConfigEve nt". If during an update event, the bandwidth
"ChassisBan
options are not modified, this class does not update the resource
provider inventories.
Closes-Bug: #1998108 498299ebf2b5bf8 85776e241e0
Related-Bug: #1578989
Change-Id: I74883041c642b9