yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83381
[Bug 1888920] [NEW] neutron-sanity-check fails with NoSuchOptError: no such option vf_management
Public bug reported:
High level description:
A critical error is thrown when running the neutron-sanity-check script
CRITICAL neutron [-] Unhandled error: oslo_config.cfg.NoSuchOptError: no
such option vf_management in group [DEFAULT]
This was initially seen in a containerized environment configured by
openstack-helm. The error causes the openstack_neutron-ovs-agent-init
container to fail.
It can also be reproduced in devstack
Step-By-Step:
- Grab the latest devstack as of 2020-07-24.
- Run neutron-sanity-check --config-file /etc/neutron/neutron.conf --ovsdb_native --nokeepalived_ipv6_support
Analysis:
This line probably needs to be removed:
https://opendev.org/openstack/neutron/src/branch/master/neutron/cmd/sanity_check.py#L360
See related bug https://bugs.launchpad.net/neutron/+bug/1878042
Logs:
neutron-sanity-check --config-file /etc/neutron/neutron.conf --ovsdb_native --nokeepalived_ipv6_support
2020-07-25 03:34:41.484 21383 INFO neutron.common.config [-] Logging enabled!
2020-07-25 03:34:41.484 21383 INFO neutron.common.config [-] /usr/local/bin/neutron-sanity-check version 16.1.0.dev369
CRITICAL neutron [-] Unhandled error: oslo_config.cfg.NoSuchOptError: no such option vf_management in group [DEFAULT]
ERROR neutron Traceback (most recent call last):
ERROR neutron File "/usr/local/bin/neutron-sanity-check", line 10, in <module>
ERROR neutron sys.exit(main())
ERROR neutron File "/opt/stack/neutron/neutron/cmd/sanity_check.py", line 417, in main
ERROR neutron enable_tests_from_config()
ERROR neutron File "/opt/stack/neutron/neutron/cmd/sanity_check.py", line 360, in enable_tests_from_config
ERROR neutron cfg.CONF.set_default('vf_management', True)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2055, in __inner
ERROR neutron result = f(self, *args, **kwargs)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2459, in set_default
ERROR neutron opt_info = self._get_opt_info(name, group)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2854, in _get_opt_info
ERROR neutron raise NoSuchOptError(opt_name, group)
ERROR neutron oslo_config.cfg.NoSuchOptError: no such option vf_management in group [DEFAULT]
ERROR neutron
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1888920
Title:
neutron-sanity-check fails with NoSuchOptError: no such option
vf_management
Status in neutron:
New
Bug description:
High level description:
A critical error is thrown when running the neutron-sanity-check
script
CRITICAL neutron [-] Unhandled error: oslo_config.cfg.NoSuchOptError:
no such option vf_management in group [DEFAULT]
This was initially seen in a containerized environment configured by
openstack-helm. The error causes the openstack_neutron-ovs-agent-init
container to fail.
It can also be reproduced in devstack
Step-By-Step:
- Grab the latest devstack as of 2020-07-24.
- Run neutron-sanity-check --config-file /etc/neutron/neutron.conf --ovsdb_native --nokeepalived_ipv6_support
Analysis:
This line probably needs to be removed:
https://opendev.org/openstack/neutron/src/branch/master/neutron/cmd/sanity_check.py#L360
See related bug https://bugs.launchpad.net/neutron/+bug/1878042
Logs:
neutron-sanity-check --config-file /etc/neutron/neutron.conf --ovsdb_native --nokeepalived_ipv6_support
2020-07-25 03:34:41.484 21383 INFO neutron.common.config [-] Logging enabled!
2020-07-25 03:34:41.484 21383 INFO neutron.common.config [-] /usr/local/bin/neutron-sanity-check version 16.1.0.dev369
CRITICAL neutron [-] Unhandled error: oslo_config.cfg.NoSuchOptError: no such option vf_management in group [DEFAULT]
ERROR neutron Traceback (most recent call last):
ERROR neutron File "/usr/local/bin/neutron-sanity-check", line 10, in <module>
ERROR neutron sys.exit(main())
ERROR neutron File "/opt/stack/neutron/neutron/cmd/sanity_check.py", line 417, in main
ERROR neutron enable_tests_from_config()
ERROR neutron File "/opt/stack/neutron/neutron/cmd/sanity_check.py", line 360, in enable_tests_from_config
ERROR neutron cfg.CONF.set_default('vf_management', True)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2055, in __inner
ERROR neutron result = f(self, *args, **kwargs)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2459, in set_default
ERROR neutron opt_info = self._get_opt_info(name, group)
ERROR neutron File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2854, in _get_opt_info
ERROR neutron raise NoSuchOptError(opt_name, group)
ERROR neutron oslo_config.cfg.NoSuchOptError: no such option vf_management in group [DEFAULT]
ERROR neutron
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1888920/+subscriptions
Follow ups