[Bug 2003526] [NEW] package cephadm postinst fails when non-standard $HOME

Erik Braun 2003526 at bugs.launchpad.net
Fri Jan 20 09:57:20 UTC 2023


Public bug reported:

The postinst script of cephadm fails when the $HOME of the user cephadm is not located in /home.
Instead of using a hard coded path, the entry from `getent passwd cephadm` should be used.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: cephadm 15.2.17-0ubuntu0.20.04.1
ProcVersionSignature: Ubuntu 5.4.0-137.154-generic 5.4.218
Uname: Linux 5.4.0-137-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.25
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Jan 20 10:50:59 2023
DuplicateSignature:
 package:cephadm:15.2.17-0ubuntu0.20.04.1
 Setting up cephadm (15.2.17-0ubuntu0.20.04.1) ...
 mkdir: cannot create directory ‘/home/cephadm/.ssh’: No such file or directory
 dpkg: error processing package cephadm (--configure):
  installed cephadm package post-installation script subprocess returned error exit status 1
ErrorMessage: installed cephadm package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-07-29 (175 days ago)
InstallationMedia: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 (20210824)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3.2
 apt  2.0.9
SourcePackage: ceph
Title: package cephadm 15.2.17-0ubuntu0.20.04.1 failed to install/upgrade: installed cephadm package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2023-01-20 (0 days ago)

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package focal third-party-packages uec-images

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

Title:
  package cephadm postinst fails when non-standard $HOME

Status in ceph package in Ubuntu:
  New

Bug description:
  The postinst script of cephadm fails when the $HOME of the user cephadm is not located in /home.
  Instead of using a hard coded path, the entry from `getent passwd cephadm` should be used.

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: cephadm 15.2.17-0ubuntu0.20.04.1
  ProcVersionSignature: Ubuntu 5.4.0-137.154-generic 5.4.218
  Uname: Linux 5.4.0-137-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.25
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Fri Jan 20 10:50:59 2023
  DuplicateSignature:
   package:cephadm:15.2.17-0ubuntu0.20.04.1
   Setting up cephadm (15.2.17-0ubuntu0.20.04.1) ...
   mkdir: cannot create directory ‘/home/cephadm/.ssh’: No such file or directory
   dpkg: error processing package cephadm (--configure):
    installed cephadm package post-installation script subprocess returned error exit status 1
  ErrorMessage: installed cephadm package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2022-07-29 (175 days ago)
  InstallationMedia: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 (20210824)
  Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.19.7ubuntu3.2
   apt  2.0.9
  SourcePackage: ceph
  Title: package cephadm 15.2.17-0ubuntu0.20.04.1 failed to install/upgrade: installed cephadm package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to focal on 2023-01-20 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2003526/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list