[Bug 1889846] Re: Cannot purge biond glance-common (train)

Corey Bryant 1889846 at bugs.launchpad.net
Thu Aug 27 15:07:44 UTC 2020


This bug was fixed in the package glance - 2:21.0.0~b2~git2020073013.cfbe5f76-0ubuntu2~cloud0
---------------

 glance (2:21.0.0~b2~git2020073013.cfbe5f76-0ubuntu2~cloud0) focal-victoria; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 glance (2:21.0.0~b2~git2020073013.cfbe5f76-0ubuntu2) groovy; urgency=medium
 .
   * d/glance-common.postrm: Drop --system from deluser/delgroup calls. This
     aligns with the glance-common.postinst script reserved glance uid/gid
     (LP: #1889846).


** Changed in: cloud-archive
       Status: Fix Committed => Fix Released

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

Title:
  Cannot purge biond glance-common (train)

Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive queens series:
  Triaged
Status in Ubuntu Cloud Archive rocky series:
  Triaged
Status in Ubuntu Cloud Archive stein series:
  Triaged
Status in Ubuntu Cloud Archive train series:
  Triaged
Status in Ubuntu Cloud Archive ussuri series:
  Triaged
Status in Ubuntu Cloud Archive victoria series:
  Fix Released
Status in glance package in Ubuntu:
  Fix Released
Status in glance source package in Bionic:
  Triaged
Status in glance source package in Focal:
  Triaged
Status in glance source package in Groovy:
  Fix Released

Bug description:
  when I am trying to purge glance-comon I am receiving and error.
  The question about this issue is at:
  https://answers.launchpad.net/ubuntu/+question/692151

  Output of:
  + cat -n /var/lib/dpkg/info/glance-common.postrm
       1 #!/bin/sh
       2
       3 set -e
       4
       5 case $1 in
       6 purge)
       7 if (which deluser && getent passwd glance) > /dev/null 2>&1; then
       8 deluser --system --quiet --backup-to /var/lib glance
       9 fi
      10 if (which delgroup && getent group glance) > /dev/null 2>&1; then
      11 delgroup --system --quiet glance
      12 fi
      13 ;;
      14 esac
      15
      16
  + getent passwd glance
  glance:x:64062:64062::/var/lib/glance:/bin/false
  + getent group glance
  glance:x:64062:
  + set +x

  Shows that the glance user and group id are not system(ie under 1000).
  Due to this the deluser and delgroup with the "--system" fails.

  I don't know if the UID and GID are wrong or if the "--system" flag is wrong.
  Either way it need to be fixed.

  Thanks,

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: glance-common 2:19.0.3-0ubuntu1~cloud0 [origin: Canonical]
  ProcVersionSignature: Ubuntu 4.15.0-112.113-generic 4.15.18
  Uname: Linux 4.15.0-112-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.15
  Architecture: amd64
  CrashDB:
   {
                  "impl": "launchpad",
                  "project": "cloud-archive",
                  "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
               }
  Date: Fri Jul 31 15:28:00 2020
  InstallationDate: Installed on 2020-07-31 (0 days ago)
  InstallationMedia: Ubuntu-Server 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: glance
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.glance.glance-api.conf: [modified]
  mtime.conffile..etc.glance.glance-api.conf: 2020-07-31T12:27:00.564285

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



More information about the Ubuntu-openstack-bugs mailing list