[Bug 1907081] [NEW] OVN database is not upgraded on package upgrade

Frode Nordahl 1907081 at bugs.launchpad.net
Mon Dec 7 11:39:07 UTC 2020


Public bug reported:

In the systemd service we make use of the `ovn-ctl` script
`run_nb_ovsdb` and `run_sb_ovsdb` sub-commands introduced in [0]. These
sub-commands fit nicely with systemd's expectations of modern daemons to
no longer detachand run in the background.

However, the change in [0] has the side effect of disabling automatic
upgrading of clustered databases. Previously this would have been done
on every startup [1].

A recent commit to master [2] addresses this and uses the combination of
presence of `--db-*-cluster-local-addr` and non-presence of the `--db
-*-cluster-remote-addr` to determine if the upgrade should be run.

We should backport [2] to our supported OVN packages to prepare for
supporting upgrades that require database schema changes. We may also
need to change the behavior of the ovn-central charm to not set the
`--db-*-cluster-remote-addr` argument on the leader unit.

0: https://github.com/ovn-org/ovn/commit/6444059b5f9444ce06634794d275257f945a6ce5
1: https://github.com/ovn-org/ovn/blob/5c2d311b8b7b4d5c3a619de72be6a433aa4c44db/utilities/ovn-ctl#L312-L314
2: https://github.com/ovn-org/ovn/commit/67e2f386cc838d0b0f9b4b5da7fe611e1113b70c

** Affects: charm-ovn-central
     Importance: Medium
         Status: Triaged

** Affects: ovn (Ubuntu)
     Importance: Medium
         Status: Triaged

** Changed in: ovn (Ubuntu)
       Status: New => Triaged

** Changed in: ovn (Ubuntu)
   Importance: Undecided => Medium

** Also affects: charm-ovn-central
   Importance: Undecided
       Status: New

** Changed in: charm-ovn-central
       Status: New => Triaged

** Changed in: charm-ovn-central
   Importance: Undecided => Medium

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

Title:
  OVN database is not upgraded on package upgrade

Status in charm-ovn-central:
  Triaged
Status in ovn package in Ubuntu:
  Triaged

Bug description:
  In the systemd service we make use of the `ovn-ctl` script
  `run_nb_ovsdb` and `run_sb_ovsdb` sub-commands introduced in [0].
  These sub-commands fit nicely with systemd's expectations of modern
  daemons to no longer detachand run in the background.

  However, the change in [0] has the side effect of disabling automatic
  upgrading of clustered databases. Previously this would have been done
  on every startup [1].

  A recent commit to master [2] addresses this and uses the combination
  of presence of `--db-*-cluster-local-addr` and non-presence of the
  `--db-*-cluster-remote-addr` to determine if the upgrade should be
  run.

  We should backport [2] to our supported OVN packages to prepare for
  supporting upgrades that require database schema changes. We may also
  need to change the behavior of the ovn-central charm to not set the
  `--db-*-cluster-remote-addr` argument on the leader unit.

  0: https://github.com/ovn-org/ovn/commit/6444059b5f9444ce06634794d275257f945a6ce5
  1: https://github.com/ovn-org/ovn/blob/5c2d311b8b7b4d5c3a619de72be6a433aa4c44db/utilities/ovn-ctl#L312-L314
  2: https://github.com/ovn-org/ovn/commit/67e2f386cc838d0b0f9b4b5da7fe611e1113b70c

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-ovn-central/+bug/1907081/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list