ceph-volume fails with unable to find keyring
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.
stderr: 2018-05-04 09:45:45.526375 7f5fc71a8700 -1 auth: unable to find a keyring on /var/lib/
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.
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
ProcVersionSign
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_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ceph
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ceph (Ubuntu) → ceph-deploy (Ubuntu) |
Changed in ceph-deploy (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → Low |
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).