← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1888920] Re: neutron-sanity-check fails with NoSuchOptError: no such option vf_management

 

Reviewed:  https://review.opendev.org/743190
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6da99368141e9be53be9d013de9180a527bcbd90
Submitter: Zuul
Branch:    master

commit 6da99368141e9be53be9d013de9180a527bcbd90
Author: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>
Date:   Mon Jul 27 10:47:16 2020 +0000

    Remove "vf_management" and "vf_extended_management" checks
    
    Since [1], the SR-IOV commands are executed using Pyroute2. The
    support to execute those commands is guaranteed by the requested
    minimum version of this library.
    
    [1]https://review.opendev.org/#/c/727811/
    
    Change-Id: I53372524c9cdc75c4b24e1f3c973f8f87a73a8f9
    Closes-Bug: #1888920


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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


References