package ovn-central 2.12.0-0ubuntu1 failed to install/upgrade: installed ovn-central package post-installation script subprocess returned error exit status 1

Bug #1856746 reported by Lars Zimmer Christense
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvswitch (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

During upgrade from Disco to eoan release

ProblemType: Package
DistroRelease: Ubuntu 19.10
Package: ovn-central 2.12.0-0ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-37.40-generic 5.0.21
Uname: Linux 5.0.0-37-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
Date: Tue Dec 17 19:45:32 2019
ErrorMessage: installed ovn-central package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-03-18 (639 days ago)
InstallationMedia: Ubuntu-Server 17.10 "Artful Aardvark" - Release amd64 (20180108.1)
Python3Details: /usr/bin/python3.7, Python 3.7.5, python3-minimal, 3.7.5-1
PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.17-1
RelatedPackageVersions:
 dpkg 1.19.7ubuntu2
 apt 1.9.4
SourcePackage: openvswitch
Title: package ovn-central 2.12.0-0ubuntu1 failed to install/upgrade: installed ovn-central package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to eoan on 2019-12-17 (0 days ago)

Revision history for this message
Lars Zimmer Christense (lazich) wrote :
tags: removed: need-duplicate-check
Revision history for this message
James Page (james-page) wrote :
Download full text (3.9 KiB)

Setting up ovn-central (2.12.0-0ubuntu1) ...
Job for ovn-central.service failed because a timeout was exceeded.
See "systemctl status ovn-central.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ovn-central, action "restart" failed.
● ovn-central.service - LSB: OVN central components
   Loaded: loaded (]8;;file://frigg1/etc/init.d/ovn-central/etc/init.d/ovn-central]8;;; generated)
   Active: failed (Result: timeout) since Tue 2019-12-17 19:45:32 CET; 13ms ago
     Docs: ]8;;man:systemd-sysv-generator(8)man:systemd-sysv-generator(8)]8;;
  Process: 21657 ExecStart=/etc/init.d/ovn-central start (code=killed, signal=TERM)
    Tasks: 8 (limit: 4915)
   Memory: 10.1M
   CGroup: /system.slice/ovn-central.service
           ├─ 2997 ovsdb-server: monitoring pid 2998 (healthy)
           ├─ 2998 ovsdb-server -vconsole:off -vfile:info --log-file=/var/log/openvswitch/ovsdb-server-nb.log --remote=punix:/var/run/openvswitch/ovnnb_db.sock --pidfile=/var/run/openvswitch/ovnnb_db.pid --unixctl=ovnnb_db.ctl --detach --monitor --remote=db:OVN_Northbound,NB_Global,connections --private-key=db:OVN_Northbound,SSL,private_key --certificate=db:OVN_Northbound,SSL,certificate --ca-cert=db:OVN_Northbound,SSL,ca_cert --ssl-protocols=db:OVN_Northbound,SSL,ssl_protocols --ssl-ciphers=db:OVN_Northbound,SSL,ssl_ciphers /etc/openvswitch/ovnnb_db.db
           ├─ 3007 ovsdb-server: monitoring pid 3008 (healthy)
           ├─ 3008 ovsdb-server -vconsole:off -vfile:info --log-file=/var/log/openvswitch/ovsdb-server-sb.log --remote=punix:/var/run/openvswitch/ovnsb_db.sock --pidfile=/var/run/openvswitch/ovnsb_db.pid --unixctl=ovnsb_db.ctl --detach --monitor --remote=db:OVN_Southbound,SB_Global,connections --private-key=db:OVN_Southbound,SSL,private_key --certificate=db:OVN_Southbound,SSL,certificate --ca-cert=db:OVN_Southbound,SSL,ca_cert --ssl-protocols=db:OVN_Southbound,SSL,ssl_protocols --ssl-ciphers=db:OVN_Southbound,SSL,ssl_ciphers /etc/openvswitch/ovnsb_db.db
           ├─ 3014 ovn-northd: monitoring pid 3015 (healthy)
           ├─ 3015 ovn-northd -vconsole:emer -vsyslog:err -vfile:info --ovnnb-db=unix:/var/run/openvswitch/ovnnb_db.sock --ovnsb-db=unix:/var/run/openvswitch/ovnsb_db.sock --no-chdir --log-file=/var/log/openvswitch/ovn-northd.log --pidfile=/var/run/openvswitch/ovn-northd.pid --detach --monitor
           ├─21664 /bin/sh /usr/share/openvswitch/scripts/ovn-ctl start_northd
           └─21710 ovn-sbctl init

Dec 17 19:40:32 frigg1 ovn-central[21657]: ovsdb-tool: I/O error: /etc/openvswitch/ovnsb_db.db: failed to lock lockfile (Resource temporarily unavailable)
Dec 17 19:40:32 frigg1 ovn-central[21657]: * Creating empty database /etc/openvswitch/ovnsb_db.db
Dec 17 19:40:32 frigg1 ovsdb-server[21707]: ovs|00001|vlog|INFO|opened log file /var/log/openvswitch/ovsdb-server-sb.log
Dec 17 19:40:32 frigg1 ovsdb-server[21709]: ovs|00002|lockfile|WARN|/etc/openvswitch/.ovnsb_db.db.~lock~: cannot lock file because it is already locked by pid 3008
Dec 17 19:40:32 frigg1 ovn-central[21657]: ovsdb-server: I/O error: /etc/openvswitch/ovnsb_db.db: failed to lock loc...

Read more...

Revision history for this message
James Page (james-page) wrote :

Confirmed - the init/upgrade process for the DB's is attempting to run without stopping the ovsdb-server instances first - hence they are locked.

Changed in openvswitch (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
James Page (james-page) wrote :

disco and eoan used init scripts whereas the packaging from focal onwards uses systemd units provided directly by the OVN package (the split from OVS happened @ focal).

As a result the issues seen here related to code that is no longer in a supported Ubuntu release (I had to pull from old-releases to confirm this was a problem).

Marking Won't Fix - if you have similar issues with focal or later please open a new bug.

Changed in openvswitch (Ubuntu):
status: Confirmed → Won't Fix
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.