ceph - cephadm - 2024-06-28

Timestamp (UTC)Message
2024-06-28T10:43:31.048Z
<info> Hey, it seems that cephadm has a Bug on Debian 12 Bookworm. I try to Install the ceph-common tools with cephadm:
`cephadm install ceph-common`  after that command cephadm tries to install ceph-common but it thrwos me an error:

<https://gist.githubusercontent.com/pomland-94/0a675f414449602dc022aa96fc8d12ee/raw/86b7570b7bb27152be5f080f4ff9ed161b78e819/gistfile1.txt>
When i run the command `apt-get install -y ceph-common` manually, it throws me an error that he can create the directory `/home/cephadm/.ssh` it seems that in the post install step is an error. The Folder under `/home/cephadm` also doesn't exists:
```[root::ceph-01-de-nbg1-dc3]
~: apt-get install -y ceph-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ceph-common is already the newest version (18.2.2-1~bpo12+1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cephadm (18.2.2-1~bpo12+1) ...
usermod: unlocking the user's password would result in a passwordless account.
You should set a password with usermod -p to unlock this user's password.
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
Errors were encountered while processing:
 cephadm
E: Sub-process /usr/bin/dpkg returned an error code (1)
[root::ceph-01-de-nbg1-dc3]
~:```
When i manually create the folder `/home/cephadm` everything is working fine.
2024-06-28T18:39:08.248Z
<Michael W> Have you tried appending 'sudo' before running the commands?
2024-06-28T18:39:53.068Z
<info> Des
2024-06-28T18:40:35.120Z
<info> *yes 
2024-06-28T18:40:55.869Z
<info> Hey, it seems that cephadm has a Bug on Debian 12 Bookworm. I try to Install the ceph-common tools with cephadm:
`cephadm install ceph-common`  after that command cephadm tries to install ceph-common but it thrwos me an error:

<https://gist.githubusercontent.com/pomland-94/0a675f414449602dc022aa96fc8d12ee/raw/86b7570b7bb27152be5f080f4ff9ed161b78e819/gistfile1.txt>
When i run the command `apt-get install -y ceph-common` manually, it throws me an error that he can create the directory `/home/cephadm/.ssh` it seems that in the post install step is an error. The Folder under `/home/cephadm` also doesn't exists:
```[root::ceph-01-de-nbg1-dc3]
~: apt-get install -y ceph-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ceph-common is already the newest version (18.2.2-1~bpo12+1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cephadm (18.2.2-1~bpo12+1) ...
usermod: unlocking the user's password would result in a passwordless account.
You should set a password with usermod -p to unlock this user's password.
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
Errors were encountered while processing:
 cephadm
E: Sub-process /usr/bin/dpkg returned an error code (1)
[root::ceph-01-de-nbg1-dc3]
~:```
When i manually create the folder `/home/cephadm` everything is working fine.
2024-06-28T18:47:28.193Z
<Michael W> I am just looking at how you are doing it from what you have done so far. Is it possible you can paste a list of the commands you have done up to this point to see how you are setting up the environment? Reason I ask is that you shouldn't, by best practice, install Ceph with a root account, but instead a normal account with sudo rights.
2024-06-28T18:48:06.060Z
<Michael W> This might not be for Debian 12, but this is what I used to setup a home lab environment and it worked the first time -- <https://computingforgeeks.com/install-ceph-storage-cluster-on-ubuntu-linux-servers/>
2024-06-28T19:18:46.779Z
<info> Yes, sure. Every command i execute is as root and i follow this Howto here:

<https://docs.ceph.com/en/quincy/cephadm/install/#install-cephadm>

I install cephadm with `apt-get install cephadm`  the error apears when i execute the following command:
```cephadm add-repo --release quincy
cephadm install ceph-common```
2024-06-28T19:36:21.021Z
<Michael W> Just shooting from the hip, but see if this answer from Copilot will work based on your original post/code snippet. I've never had this problem, so giving the option to others that can chime in.: https://files.slack.com/files-pri/T1HG3J90S-F07AP4PLP4H/download/cephadm-debian12-copilot-answer.pdf

Any issue? please create an issue here and use the infra label.