ceph-volume fails with unable to find keyring

Bug #1769154 reported by James Seiters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph-deploy (Ubuntu)
Expired
Low
Unassigned

Bug Description

On a fresh install of Kubuntu 18.04, ceph-volume will fail with the following errors:

sudo ceph-volume lvm create --bluestore --data /dev/sdc
Running command: ceph-authtool --gen-print-key
Running command: ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new 994d129f-8c0a-4837-b25d-17425df64710
 stderr: 2018-05-04 09:45:45.526375 7f5fc71a8700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
 stderr: 2018-05-04 09:45:45.526390 7f5fc71a8700 -1 monclient: ERROR: missing keyring, cannot use cephx for authentication
 stderr: 2018-05-04 09:45:45.526393 7f5fc71a8700 0 librados: client.bootstrap-osd initialization error (2) No such file or directory
 stderr: [errno 2] error connecting to the cluster
--> RuntimeError: Unable to create a new OSD id

This can be fixed by running the ceph-create-keys command and then running ceph-volume again. This is most likely not a bug in ceph-volume, but more likely an improper ceph-deploy script.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ceph 12.2.4-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: KDE
Date: Fri May 4 10:28:11 2018
InstallationDate: Installed on 2018-04-29 (4 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ceph
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Seiters (cichlasoma) wrote :
Revision history for this message
James Page (james-page) wrote :

I tend to agree with your conclusion (This is most likely not a bug in ceph-volume, but more likely an improper ceph-deploy script) - where are you sourcing ceph-deploy from? This is not something I use (and for reference a charm based deployment of ceph using ceph-volume works fine for me).

Revision history for this message
James Seiters (cichlasoma) wrote :

I am using the package from the Ubuntu repository which is version 1.5.38-0ubuntu1. I will have to investigate the charm based ceph option.

James Page (james-page)
affects: ceph (Ubuntu) → ceph-deploy (Ubuntu)
Changed in ceph-deploy (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ceph-deploy (Ubuntu) because there has been no activity for 60 days.]

Changed in ceph-deploy (Ubuntu):
status: Incomplete → Expired
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.