[Bug 1859103] Re: package nova-compute-libvirt 2:14.1.0-0ubuntu1~cloud1 [origin: Canonical] failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1

Corey Bryant corey.bryant at canonical.com
Fri Jan 10 14:44:39 UTC 2020


It's hard to tell what happened here but I think the postinstall script
failed. You can manually execute the script to see what is failing:

1) add 'set -x' to postinst script in /var/lib/dpkg/info/nova-compute-libvirt.postinst
2) sudo sh /var/lib/dpkg/info/nova-compute-libvirt.postinst configure

Note that this version of nova (Newton) is end of life, but this
postinst script hasn't changed in newer releases of the package so
please reopen the bug if you have more details to share.

Here is the script for reference:

#!/bin/sh -e

if [ "$1" = "configure" ]; then
    # libvirt switched from libvirtd group to libvirt group in 1.3.3
    libvirt_group=$(getent group libvirt) || true
    libvirtd_group=$(getent group libvirtd) || true

    if [ $libvirt_group ]; then
        if ! echo $libvirt_group | grep -qE '\<nova\>'; then
            adduser nova libvirt
        fi
    elif [ $libvirtd_group ]; then
        if ! echo $libvirtd_group | grep -qE '\<nova\>'; then
            adduser nova libvirtd
        fi
    fi
fi

#DEBHELPER#

** Changed in: cloud-archive
       Status: New => Incomplete

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

Title:
  package nova-compute-libvirt 2:14.1.0-0ubuntu1~cloud1 [origin:
  Canonical] failed to install/upgrade: 子进程 已安装 post-installation 脚本
  返回错误状态 1

Status in Ubuntu Cloud Archive:
  Incomplete

Bug description:
  It happened that i assembled openstack software.

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: nova-compute-libvirt 2:14.1.0-0ubuntu1~cloud1 [origin: Canonical]
  ProcVersionSignature: Ubuntu 4.15.0-74.83~16.04.1-generic 4.15.18
  Uname: Linux 4.15.0-74-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.21
  Architecture: amd64
  CrashDB:
   {
                  "impl": "launchpad",
                  "project": "cloud-archive",
                  "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
               }
  Date: Sat Jan 11 10:06:13 2020
  ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
  InstallationDate: Installed on 2019-02-28 (317 days ago)
  InstallationMedia: Ubuntu 16.04.5 LTS "Xenial Xerus" - Release amd64 (20180731)
  PackageArchitecture: all
  SourcePackage: nova
  Title: package nova-compute-libvirt 2:14.1.0-0ubuntu1~cloud1 [origin: Canonical] failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1859103/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list