[Bug 2007919] Re: ovsdbapp: AttributeError: 'TableSchema' object has no attribute 'condition_state'

Andrea Ieri 2007919 at bugs.launchpad.net
Fri Apr 7 09:13:57 UTC 2023


** Tags added: bseng-1080

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-ovsdbapp in Ubuntu.
https://bugs.launchpad.net/bugs/2007919

Title:
  ovsdbapp: AttributeError: 'TableSchema' object has no attribute
  'condition_state'

Status in OpenStack Neutron API Charm:
  Invalid
Status in Ubuntu Cloud Archive:
  Invalid
Status in Ubuntu Cloud Archive wallaby series:
  New
Status in Ubuntu Cloud Archive xena series:
  New
Status in Ubuntu Cloud Archive yoga series:
  New
Status in python-ovsdbapp package in Ubuntu:
  Invalid
Status in python-ovsdbapp source package in Jammy:
  New

Bug description:
  After upgrade from victoria to wallaby neutron-api units firing
  errors. Exception is related to
  https://bugs.launchpad.net/ovsdbapp/+bug/1972989, which is fixed in
  ovsdbapp 1.9.3

  https://releases.openstack.org/wallaby/ states that ovsdbapp should be
  1.9.4 (latest for walalby)

  Installed in the unit is:

  root at juju-4c2163-3-lxd-14:~# python3 -m pip list | grep ovsdbapp
  ovsdbapp                1.9.0

  Also:
  root at juju-4c2163-3-lxd-14:~# apt-cache policy python3-ovsdbapp
  python3-ovsdbapp:
    Installed: 1.9.0-0ubuntu1~cloud0
    Candidate: 1.9.0-0ubuntu1~cloud0
    Version table:
   *** 1.9.0-0ubuntu1~cloud0 500
          500 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-updates/wallaby/main amd64 Packages
          100 /var/lib/dpkg/status
       1.1.0-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
       1.1.0-0ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

  
  So it looks like the charm doesn't upgrade ovsdbapp during openstack upgrade, because a newer version with the above fix doesn't exist in the UCA:

   python3-ovsdbapp | 1.9.0-0ubuntu1~cloud0  | wallaby           | focal-updates   | all
   python3-ovsdbapp | 1.9.0-0ubuntu1~cloud0  | wallaby-proposed  | focal-proposed  | all

  
  Full traceback:

  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn   File "/usr/lib/python3/dist-packages/ovsdbapp/backend/ovs_idl/connection.py", line 81, in start
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn     idlutils.wait_for_change(self.idl, self.timeout)
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py", line 52, in wait_for_change
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn     while idl_.change_seqno == seqno and not idl_.run():
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn   File "/usr/lib/python3/dist-packages/ovs/db/idl.py", line 541, in run
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn     self.__send_monitor_request()
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn   File "/usr/lib/python3/dist-packages/ovs/db/idl.py", line 850, in __send_monitor_request
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn     not ConditionState.is_true(table.condition_state.acked)):
  2023-02-21 07:39:19.639 431391 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.impl_idl_ovn AttributeError: 'TableSchema' object has no attribute 'condition_state'

  Worked around by:
  juju run -a neutron-api 'sudo python3 -m pip install ovsdbapp==1.9.4'
  juju run -a neutron-api 'sudo service neutron-* restart'

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-neutron-api/+bug/2007919/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list