Skip to content

Conversation

@cardoe
Copy link
Contributor

@cardoe cardoe commented Oct 15, 2025

Dropped the old ml2_type_understack config options. Removed loading of the config options in the global module scope which seem to cause problems with 2025.2 versions of Neutron. The upstream ml2 drivers don't do it which is where I came to the conclusion. Updated the tests to use a fixture to allow overriding the config since its no longer global scope. This caused me to find an issue with one of the tests that needed to be resolved to make them pass again.

These options are all inside of ml2_understack and that should be where
everything is loaded from. Drop the backwards support as its been
deprecated long enough and there's no user of it.
Rather than patching the global scoped oslo_config, switch to using a
fixture which resets between tests to ensure that things are cleaned up
appropriately. This will be necessary when we no longer initialize
oslo_config in the global/import scope of the module. While moving this
it pointed out an issue with one of the tests missing a mock which
attempted to hit the DB, which now couldn't be initialized because we
didn't setup our configs because the data had the wrong types which is
being fixed in this as well.
Upstream mechanisms don't initialize the config options in the global
scope and this appears to cause issues in a 2025.2 world so follow how
upstream behaves.
@cardoe cardoe requested review from a team, mfencik, skrobul and stevekeay October 15, 2025 21:35
@cardoe cardoe added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit 7bf2dc7 Oct 16, 2025
39 checks passed
@cardoe cardoe deleted the update-neutron-cfg branch October 16, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants