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

Eliezer Croitoru 1889846 at bugs.launchpad.net
Fri Jul 31 15:32:40 UTC 2020


Public bug reported:

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

** Affects: cloud-archive
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic third-party-packages uec-images

-- 
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/1889846

Title:
  Cannot purge biond glance-common (train)

Status in Ubuntu Cloud Archive:
  New

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