Hello there, I recently upgraded from proxmox 5 to 6 as well as ceph luminous to nautilus. I wanted to go through and re-create the osds I have in my cluster. I ran into an issue with the second osd I wanted to convert (the first went fine). Here's what I get after I zap the disk:
I can see it complaining about a missing key but I'm not really sure where that key should be coming from.
Code:
pveceph createosd /dev/nvme8n2
create OSD on /dev/nvme8n2 (bluestore)
wipe disk/partition: /dev/nvme8n2
200+0 records in
200+0 records out
209715200 bytes (210 MB, 200 MiB) copied, 0.417411 s, 502 MB/s
--> OSError: [Errno 5] Input/output error: '/var/lib/ceph/osd/ceph-2'
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new 7f015a78-6062-4026-9a8a-7895aecf2eda
Running command: /sbin/vgcreate -s 1G --force --yes ceph-a449d0c2-542e-42cb-a5c3-395070ab51ca /dev/nvme8n2
stdout: Physical volume "/dev/nvme8n2" successfully created.
stdout: Volume group "ceph-a449d0c2-542e-42cb-a5c3-395070ab51ca" successfully created
Running command: /sbin/lvcreate --yes -l 100%FREE -n osd-block-7f015a78-6062-4026-9a8a-7895aecf2eda ceph-a449d0c2-542e-42cb-a5c3-395070ab51ca
stdout: Logical volume "osd-block-7f015a78-6062-4026-9a8a-7895aecf2eda" created.
Running command: /usr/bin/ceph-authtool --gen-print-key
--> Was unable to complete a new OSD, will rollback changes
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring osd purge-new osd.2 --yes-i-really-mean-it
stderr: 2019-07-30 11:13:50.300 7f3e0f70b700 -1 auth: unable to find a keyring on /etc/pve/priv/ceph.client.bootstrap-osd.keyring: (2) No such file or directory
2019-07-30 11:13:50.300 7f3e0f70b700 -1 AuthRegistry(0x7f3e0807ed58) no keyring found at /etc/pve/priv/ceph.client.bootstrap-osd.keyring, disabling cephx
stderr: purged osd.2
command 'ceph-volume lvm create --cluster-fsid 0504a312-6d92-4443-b250-5e790079210e --data /dev/nvme8n2' failed: exit code 1
I can see it complaining about a missing key but I'm not really sure where that key should be coming from.