2024.1-eom
This patch avoids the following error raised when configuration options are modified (e.g. by registering or unregistering an opt) during iteration in mutate_config_files() or related methods: RuntimeError: dictionary changed size during iteration The error was observed in Neutron after oslo.service was refactored to use dynamic backends, slightly changing signal handling and restart timing. We fix this by copying the values of the affected dicts before iterating, ensuring the iteration is stable and thread-safe. Closes-Bug: #2100001 Change-Id: Ic576f7031e07f5615cd1fbc157ddfbb89b61a130 (cherry picked from commitbbb9ab163b) (cherry picked from commit485b600b2c) (cherry picked from commitbb1dd3bfbd)
Team and repository tags
Oslo Configuration Library
The Oslo configuration API supports parsing command line arguments and .ini style configuration files.
- License: Apache License, Version 2.0
- Documentation: https://docs.openstack.org/oslo.config/latest/
- Source: https://opendev.org/openstack/oslo.config/
- Bugs: https://bugs.launchpad.net/oslo.config
- Release notes: https://docs.openstack.org/releasenotes/oslo.config/
Description
Languages
Python
99.8%
Shell
0.2%