Project

General

Profile

Bug #49436

cephadm bootstrap fails to create /etc/ceph directory

Added by Zac Dover about 3 years ago. Updated almost 2 years ago.

Status:
Can't reproduce
Priority:
Low
Assignee:
-
Category:
cephadm
Target version:
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In trials of Octopus and Pacific, cephadm fails to create /etc/ceph during the bootstrapping process.

These two etherpads provide CLI input and output for the cephadm bootstrap process:
https://pad.ceph.com/p/zdover23-docs-2021-Feb-22-install-output
https://pad.ceph.com/p/zdover23-2021-02-23-octopus-complete-mgr-install

inb4: If you run "# mkdir /etc/ceph", the bootstrap process works fine.


Related issues

Related to sepia - Bug #45009: https://download.ceph.com/keys/release.asc: ignored as the file has an unsupported filetype. Closed

History

#1 Updated by Sebastian Wagner about 3 years ago

  • Assignee changed from Sebastian Wagner to Paul Cuzner

#2 Updated by Paul Cuzner about 3 years ago

  • Status changed from New to In Progress
  • Assignee changed from Paul Cuzner to Sebastian Wagner

the creation of the missing dir is there in the src for octopus and pacific. In both examples provided, the source is downloaded, followed by add-repo and install. So the bootstrap runs from the packaged version, not from src.

I setup an ubuntu (20.04.02) vm, and installed the cephadm binary, to pull in the packaged version
paul@ubuntu20-04:~$ sudo dpkg -l cephadm
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description
+++-==============-=======================-============-=====================================================================
ii cephadm 15.2.7-0ubuntu0.20.04.2 amd64 cephadm utility to bootstrap ceph daemons with systemd and containers

this version does NOT have the patch in it

Checked a RHEL based deployment

[root@cephadmtest ~]# rpm -q cephadm
cephadm-15.2.9-0.el8.noarch

This version has the patch in it.

Looking at the ubuntu repos on the server the octopus repo is disabled due to no public key being installed - so the version installed is coming from the main ubuntu 'universe' repo.

@Zac can you please confirm that after installing the updated deb package (15.2.9 or above) that the directory issue is resolved?

If this is confirmed, we can close this tracker

Assigning back to Sebastian, since there seems to be an outstanding bug relating to gpg key and ubuntu - https://tracker.ceph.com/issues/45009

#3 Updated by Sebastian Wagner about 3 years ago

  • Related to Bug #45009: https://download.ceph.com/keys/release.asc: ignored as the file has an unsupported filetype. added

#4 Updated by Zac Dover about 3 years ago

I will run this test later today, after I am finished with my meetings.

I didn't see that this tracker had been updated. Is there a way that I can get updates emailed to me, so that I can reply in a more timely manner?

#5 Updated by Zac Dover about 3 years ago

No dice, guys.

I ran it again, and I get the same error.

Here's the full log of the install, done on Ubuntu 20.04:

https://pad.ceph.com/p/2021-Mar-12_cepahdm_no_etc_ceph_dir

#6 Updated by Zac Dover about 3 years ago

zdover@zdover-Standard-PC-i440FX-PIIX-1996:~$ apt show cephadm
Package: cephadm
Version: 15.2.8-0ubuntu0.20.04.1
Priority: optional
Section: universe/admin
Source: ceph
Origin: Ubuntu
Maintainer: Ubuntu Developers <>
Original-Maintainer: Ceph Packaging Team <>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 301 kB
Depends: lvm2, python3:any
Recommends: docker.io
Homepage: http://ceph.com/
Download-Size: 57.4 kB
APT-Manual-Installed: yes
APT-Sources: http://au.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
Description: cephadm utility to bootstrap ceph daemons with systemd and containers
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
block and file system storage.
.
The cephadm utility is used to bootstrap a Ceph cluster and to manage
ceph daemons deployed with systemd and containers.

N: There are 2 additional records. Please use the '-a' switch to see them.

#7 Updated by Zac Dover about 3 years ago

zdover@zdover-Standard-PC-i440FX-PIIX-1996:~$ sudo dpkg -l cephadm
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description
+++-==============-=======================-============-=======================>
ii cephadm 15.2.8-0ubuntu0.20.04.1 amd64 cephadm utility to boot>

#8 Updated by Zac Dover about 3 years ago

Stand by while I learn how to install cephadm 15.2.9.

#9 Updated by Zac Dover about 3 years ago

Okay. I've followed the instructions here and I still can get only 15.2.8:

https://docs.ceph.com/en/latest/install/get-packages/#install-packages-with-cephadm

I used the following command:

# ./cephadm add-repo --version 15.2.9

But only 15.2.8 was installed.

What gives?

#10 Updated by Sebastian Wagner almost 3 years ago

  • Status changed from In Progress to New
  • Assignee deleted (Sebastian Wagner)

no time to look into this

#11 Updated by Sebastian Wagner about 2 years ago

  • Tags set to low-hanging-fruit

#12 Updated by Redouane Kachach Elhichou about 2 years ago

  • Priority changed from Normal to Low

#13 Updated by Redouane Kachach Elhichou almost 2 years ago

I tried to reproduce this (old) issue with but was not able. If you think that's the issue still exists please provide more information to reproduce the BUG.

#14 Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from New to Can't reproduce

Also available in: Atom PDF