[ovs-git] [ovn-org/ovn] 1f2df9: Revert "ovn-ctl: Handle cluster db upgrades for ru...

numansiddique noreply at github.com
Fri Mar 12 06:07:11 UTC 2021


  Branch: refs/heads/branch-20.03
  Home:   https://github.com/ovn-org/ovn
  Commit: 1f2df9ec3a5961f5d3159bced14311aa833c2b49
      https://github.com/ovn-org/ovn/commit/1f2df9ec3a5961f5d3159bced14311aa833c2b49
  Author: Frode Nordahl <frode.nordahl at canonical.com>
  Date:   2021-03-12 (Fri, 12 Mar 2021)

  Changed paths:
    M utilities/ovn-ctl

  Log Message:
  -----------
  Revert "ovn-ctl: Handle cluster db upgrades for run_(nb/sb)_ovsdb"

This reverts commit dce49ab7bf0365e50e9660098f743b340d444fbe.

Signed-off-by: Frode Nordahl <frode.nordahl at canonical.com>
Signed-off-by: Numan Siddique <numans at ovn.org>


  Commit: bc9d6611ba4f8e0d495f574fe09ff5ab6e9af66e
      https://github.com/ovn-org/ovn/commit/bc9d6611ba4f8e0d495f574fe09ff5ab6e9af66e
  Author: Numan Siddique <numans at ovn.org>
  Date:   2021-03-12 (Fri, 12 Mar 2021)

  Changed paths:
    M utilities/ovn-ctl

  Log Message:
  -----------
  ovn-ctl: Handle cluster db upgrades for run_(nb/sb)_ovsdb

when ovn-ctl run_(nb_sb)_ovsdb is called, the ovsdb-server is started without
passing --detach and --monoitor and the process is exec'd.

For cluster mode, upgrade_cluster is never called and hence the dbs are not upraded
to new schema. CMS has to handle the db upgrade separately.

This patch handles the db upgrade by starting ovsdb-server in background and then
waits on ovsdb-server to complete.

Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1868392
Acked-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>
(cherry picked from commit 67e2f386cc838d0b0f9b4b5da7fe611e1113b70c)
(adapted to not use `start_wrapped_daemon` which does not exist in branch-20.03)
Signed-off-by: Frode Nordahl <frode.nordahl at canonical.com>


Compare: https://github.com/ovn-org/ovn/compare/2283617adc56...bc9d6611ba4f


More information about the git mailing list