Non-pristine devices detected, consult `list-disks`, `zap-disk` and `blacklist-*` actions.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
New
|
Undecided
|
Unassigned |
Bug Description
ceph-osd rev 308, one osd reported non-pristine devices detected
Be aware you will find in the log I tried later several zap-disk actions and add-disk unsuccessfully after this stayed in blocked state for some time.
this is lsblk from working OSD
sdb 8:16 0 20G 0 disk
├─sdb1 8:17 0 1M 0 part
└─sdb2 8:18 0 18.6G 0 part
├─bcache0 252:0 0 20G 0 disk
│ └─crypt-
│ └─ceph-
├─bcache1 252:128 0 165.8G 0 disk
│ └─crypt-
└─bcache2
and this is from failing ceph-osd/0
sdb 8:16 0 20G 0 disk
├─sdb1 8:17 0 1M 0 part
└─sdb2 8:18 0 18.6G 0 part
├─bcache0 252:0 0 20G 0 disk
│ └─crypt-
├─bcache1 252:128 0 74.5G 0 disk /
└─bcache2 252:256 0 165.8G 0 disk
└─crypt-
This is the first time it happened in this test environment, those nodes are redeployed often
This is a safety feature of the charm to stop it overwriting date if it is incorrectly configured. For it to be a bug, it's necessary to check the the block device configured for the charm is pristine; if it's not then the charm is working as advertised.
Is it possible to verify that a pristine device was configured for the charm and the charm incorrectly decided it wasn't pristine?