New Ceph deployment immediately goes to HEALTH_WARN - AUTH_INSECURE_GLOBAL_ID_RECLAIM_ALLOWED: mons are allowing insecure global_id reclaim
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
Fix Committed
|
Medium
|
Chris MacNaughton | ||
Prometheus Ceph Exporter Charm |
Invalid
|
Medium
|
Unassigned | ||
prometheus-ceph-exporter snap |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ juju deploy --series focal -n3 ceph-mon
$ juju run --unit ceph-mon/leader -- sudo ceph health detail
HEALTH_WARN mons are allowing insecure global_id reclaim; OSD count 0 < osd_pool_
[WRN] AUTH_INSECURE_
mon.
mon.
mon.
[WRN] TOO_FEW_OSDS: OSD count 0 < osd_pool_
So the Ceph deployment never goes to HEALTH_OK. I suppose this has been introduced by the upstream change as CVE-2021-20288 and SRU completed on May 20th, 2021:
https:/
https:/
https:/
We need to properly clear out the warning, otherwise any sort of monitoring doesn't work. We cannot unconditionally set auth_allow_
Related branches
- Xav Paice (community): Approve
-
Diff: 21 lines (+7/-0)1 file modifiedsnapcraft.yaml (+7/-0)
CVE References
Changed in charm-prometheus-ceph-exporter: | |
importance: | Undecided → Medium |
Changed in charm-ceph-mon: | |
assignee: | nobody → Chris MacNaughton (chris.macnaughton) |
Changed in charm-ceph-mon: | |
importance: | Undecided → Medium |
milestone: | none → 22.04 |
Subscribing ~field-high. It's hitting field deployments. It's not a critical blocker, but the charm needs to react to the upstream change appropriately. /docs.ceph. com/en/ latest/ security/ CVE-2021- 20288/
https:/
Workaround: it's not technically a workaround, but for new deployments with up-to-date packages, the following command can be executed to set the recommended value by the upstream: insecure_ global_ id_reclaim false /docs.ceph. com/en/ latest/ security/ CVE-2021- 20288/# recommendations
$ juju run --unit ceph-mon/leader -- \
sudo ceph config set mon auth_allow_
https:/
As a side note, in verification steps of SRU, it would be nice to check `ceph health` so we would have noticed this earlier.