package cephadm postinst fails when non-standard $HOME

Bug #2003526 reported by Erik Braun
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph (Ubuntu)
New
Undecided
Unassigned

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)

Revision history for this message
Erik Braun (erik-braun) wrote :
tags: removed: need-duplicate-check
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.