Project

General

Profile

Bug #44879

--osd-id's validation for $id presence doesn't work in restricted environments

Added by Joshua Schmid 3 months ago. Updated 3 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

In cephadm the container only gets the minimal bootstrap-osd key, which doesn't have the permission to query: "osd tree -f json"

[ceph: root@cephadm-dev /]# ceph-volume lvm batch /dev/vdg --osd-id 2
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring osd tree -f json
 stderr: [errno 13] RADOS permission denied (error connecting to the cluster)
-->  RuntimeError: Unable check if OSD id exists: 2

We may implement this check in cephadm and pass a flag to skip this detection in c-v maybe?

History

#1 Updated by Jan Fajerski 3 months ago

hmm I'm confused. Iiuc the bootstrap keyring should be valid to read 'osd tree'. The check is done during the lvm prepare command as well, which should onlz have the bootstrap keyring.

Maybe something wrong with the keyring?

#2 Updated by Joshua Schmid 3 months ago

I also saw in the logs that `osd tree` was executed without issues. Probably an issue with the keyring in my previous environment. Closing

#3 Updated by Jan Fajerski 3 months ago

  • Status changed from New to Rejected

Also available in: Atom PDF