migrate-ovn-db action fails if qos service plugin is not enabled

Bug #1988089 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron API OVN Plugin Charm
New
Undecided
Unassigned
OpenStack Neutron Open vSwitch Charm
Fix Committed
Undecided
Unassigned

Bug Description

The neutron-openvswitch jammy-yoga functional test is failing when it runs:

juju run-action neutron-api-plugin-ovn/0 migrate-ovn-db i-really-mean-it=True

Full action output (traceback) is listed below:

ubuntu@coreycb-bastion:/mnt/release-tools/charms/neutron-openvswitch$ juju show-action-output 154

UnitId: neutron-api-plugin-ovn/0
id: "154"
message: Execution failed, please investigate output.
results:
  Stderr: |+
    migrate-ovn-db: OUTPUT FROM SYNC ON STDERR:

  Stdout: "migrate-ovn-db: OUTPUT FROM SYNC ON STDOUT:
2022-08-29 19:26:54.002 82899
    INFO neutron.cmd.ovn.neutron_ovn_db_sync_util [-] Started Neutron OVN db sync
2022-08-29
    19:26:54.497 82899 INFO neutron.manager [-] Loading core plugin: neutron.cmd.ovn.neutron_ovn_db_sync_util.Ml2Plugin
2022-08-29
    19:26:54.501 82899 INFO neutron.plugins.ml2.managers [-] Configured type driver
    names: ['geneve', 'vxlan', 'vlan', 'flat', 'local']
2022-08-29 19:26:54.503
    82899 INFO neutron.plugins.ml2.drivers.type_flat [-] Allowable flat physical_network
    names: ['physnet1']
2022-08-29 19:26:54.504 82899 INFO neutron.plugins.ml2.drivers.type_local
    [-] ML2 LocalTypeDriver initialization complete
2022-08-29 19:26:54.505
    82899 INFO neutron.plugins.ml2.drivers.type_vlan [-] Network VLAN ranges: OrderedDict([('physnet1',
    [(1000, 2000)])])
2022-08-29 19:26:54.506 82899 INFO neutron.plugins.ml2.managers
    [-] Loaded type driver names: ['flat', 'geneve', 'local', 'vlan', 'vxlan']
2022-08-29
    19:26:54.507 82899 INFO neutron.plugins.ml2.managers [-] Registered types: dict_keys(['flat',
    'geneve', 'local', 'vlan', 'vxlan'])
2022-08-29 19:26:54.509 82899 INFO
    neutron.plugins.ml2.managers [-] Tenant network_types: ['geneve', 'vxlan', 'vlan',
    'flat', 'local']
2022-08-29 19:26:54.509 82899 INFO neutron.plugins.ml2.managers
    [-] Configured extension driver names: []
2022-08-29 19:26:54.509 82899
    INFO neutron.plugins.ml2.managers [-] Loaded extension driver names: []
2022-08-29
    19:26:54.510 82899 INFO neutron.plugins.ml2.managers [-] Registered extension
    drivers: []
2022-08-29 19:26:54.510 82899 INFO neutron.plugins.ml2.managers
    [-] Configured mechanism driver names: ['ovn-sync']
2022-08-29 19:26:54.510
    82899 INFO neutron.plugins.ml2.managers [-] Loaded mechanism driver names: ['ovn-sync']
2022-08-29
    19:26:54.510 82899 INFO neutron.plugins.ml2.managers [-] Registered mechanism
    drivers: ['ovn-sync']
2022-08-29 19:26:54.510 82899 INFO neutron.plugins.ml2.managers
    [-] No mechanism drivers provide segment reachability information for agent scheduling.
2022-08-29
    19:26:54.511 82899 INFO neutron.plugins.ml2.managers [-] Initializing driver for
    type 'flat'
2022-08-29 19:26:54.511 82899 INFO neutron.plugins.ml2.drivers.type_flat
    [-] ML2 FlatTypeDriver initialization complete
2022-08-29 19:26:54.511
    82899 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'geneve'
2022-08-29
    19:26:54.512 82899 INFO neutron.plugins.ml2.drivers.type_tunnel [-] geneve ID
    ranges: [(1001, 2000)]
2022-08-29 19:26:55.060 82899 INFO neutron.plugins.ml2.managers
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] Initializing driver for type
    'local'
2022-08-29 19:26:55.061 82899 INFO neutron.plugins.ml2.managers
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] Initializing driver for type
    'vlan'
2022-08-29 19:26:55.127 82899 INFO neutron.plugins.ml2.drivers.type_vlan
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] VlanTypeDriver initialization
    complete
2022-08-29 19:26:55.128 82899 INFO neutron.plugins.ml2.managers
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] Initializing driver for type
    'vxlan'
2022-08-29 19:26:55.128 82899 INFO neutron.plugins.ml2.drivers.type_tunnel
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] vxlan ID ranges: [(1001,
    2000)]
2022-08-29 19:26:55.163 82899 INFO neutron.plugins.ml2.managers
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] Initializing mechanism driver
    'ovn-sync'
2022-08-29 19:26:55.163 82899 INFO neutron.plugins.ml2.drivers.ovn.mech_driver.mech_driver
    [req-073bdec9-8f92-463a-9df6-7d701cb0a907 - - - - -] Starting OVNMechanismDriver
2022-08-29
    19:26:55.221 82899 INFO neutron.services.logapi.drivers.ovn.driver [req-073bdec9-8f92-463a-9df6-7d701cb0a907
    - - - - -] OVN logging driver registered
2022-08-29 19:26:55.222 82899
    CRITICAL neutron_ovn_db_sync_util [req-073bdec9-8f92-463a-9df6-7d701cb0a907 -
    - - - -] Unhandled error: neutron.plugins.ml2.common.exceptions.ExtensionDriverNotFound:
    Extension driver qos required for service plugin qos not found.
2022-08-29 19:26:55.222
    82899 ERROR neutron_ovn_db_sync_util Traceback (most recent call last):
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util File \"/usr/bin/neutron-ovn-db-sync-util\",
    line 10, in <module>
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ sys.exit(main())
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/neutron/cmd/ovn/neutron_ovn_db_sync_util.py\",
    line 222, in main
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ manager.init()
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/neutron/manager.py\", line 301, in init
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util NeutronManager.get_instance()
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util File \"/usr/lib/python3/dist-packages/neutron/manager.py\",
    line 252, in get_instance
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ cls._create_instance()
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py\", line
    391, in inner
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util return
    f(*args, **kwargs)
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/neutron/manager.py\", line 238, in _create_instance
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util cls._instance = cls()
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util File \"/usr/lib/python3/dist-packages/neutron/manager.py\",
    line 126, in __init__
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ plugin = self._get_plugin_instance(CORE_PLUGINS_NAMESPACE,
2022-08-29 19:26:55.222
    82899 ERROR neutron_ovn_db_sync_util File \"/usr/lib/python3/dist-packages/neutron/manager.py\",
    line 162, in _get_plugin_instance
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ plugin_inst = plugin_class()
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/neutron/quota/resource_registry.py\",
    line 124, in wrapper
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ return f(*args, **kwargs)
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ File \"/usr/lib/python3/dist-packages/neutron/plugins/ml2/plugin.py\", line
    281, in __init__
2022-08-29 19:26:55.222 82899 ERROR neutron_ovn_db_sync_util
    \ self._verify_service_plugins_requirements()
2022-08-29 19:26:55.222 82899
    ERROR neutron_ovn_db_sync_util File \"/usr/lib/python3/dist-packages/neutron/plugins/ml2/plugin.py\",
    line 313, in _verify_service_plugins_requirements
2022-08-29 19:26:55.222 82899
    ERROR neutron_ovn_db_sync_util raise ml2_exc.ExtensionDriverNotFound(
2022-08-29
    19:26:55.222 82899 ERROR neutron_ovn_db_sync_util neutron.plugins.ml2.common.exceptions.ExtensionDriverNotFound:
    Extension driver qos required for service plugin qos not found.
2022-08-29 19:26:55.222
    82899 ERROR neutron_ovn_db_sync_util

"
status: failed
timing:
  completed: 2022-08-29 19:26:56 +0000 UTC
  enqueued: 2022-08-29 19:26:47 +0000 UTC
  started: 2022-08-29 19:26:50 +0000 UTC

After enabling the qos plugin for neutron-api:

juju config neutron-api enable-qos=true

The migrate-ovn-db action runs successfully.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've added a change to the bundles here to enable the gate to pass for neutron-openvswitch on master:

https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/850210

Changed in charm-neutron-openvswitch:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-openvswitch (master)

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/850210
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/9a0e63964a3d8a7e55902b12baefe9354e33aa11
Submitter: "Zuul (22348)"
Branch: master

commit 9a0e63964a3d8a7e55902b12baefe9354e33aa11
Author: Corey Bryant <email address hidden>
Date: Fri Jun 10 20:14:48 2022 +0000

    Add Kinetic and Zed support

    * sync charm-helpers to classic charms
    * change openstack-origin/source default to zed
    * align testing with zed
    * add new zed bundles
    * add zed bundles to tests.yaml
    * add zed tests to osci.yaml and .zuul.yaml
    * update build-on and run-on bases
    * add bindep.txt for py310
    * sync tox.ini and requirements.txt for ruamel
    * use charmcraft_channel 2.0/stable
    * drop reactive plugin overrides
    * move interface/layer env vars to charmcraft.yaml
    * enable qos service plugin for neutron-api to ensure
      migrate-ovn-db action is successful

    Change-Id: I6f94ff3e557413b6096493f839c0a5f217c017d3
    Closes-Bug: #1988089

Changed in charm-neutron-openvswitch:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.