Skip to content

Commit

Permalink
Register DEFAULT group on agent start
Browse files Browse the repository at this point in the history
From upstream commit 4d3a2747 fixing bug (#1968606), registration of the
group DEFAULT does not happen automatically anymore.

If not loaded, agent fails with 'oslo_config.cfg.NoSuchOptError:
no such option base_mac in group [DEFAULT]
  • Loading branch information
sven-rosenzweig committed Oct 11, 2024
1 parent 8cf1369 commit e259674
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 45 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/coverage.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
python: [3.8.14]
tox-env: [unit,pep8,pip-missing-reqs]
tox-env: [pep8,]
env:
TOXENV: ${{ matrix.tox-env }}
steps:
Expand Down
1 change: 1 addition & 0 deletions networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def delete_unreferenced_arp_protection(self, current_devices):


def main():
common_config.register_common_config_options()
common_config.init(sys.argv[1:])
common_config.setup_logging()
agent_config.register_agent_state_opts_helper(cfg.CONF)
Expand Down
1 change: 1 addition & 0 deletions networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def _init_(self, args):
for file in args.config_file:
neutron_config.extend(["--config-file", file])

common_config.register_common_config_options()
common_config.init(neutron_config)
common_config.setup_logging()
profiler.setup(nsxv3_constants.NSXV3_BIN, cfg.CONF.host)
Expand Down

0 comments on commit e259674

Please sign in to comment.