Project

General

Profile

Actions

Bug #44879

closed

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

Added by Joshua Schmid about 4 years ago. Updated about 4 years 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 (v1):
Crash signature (v2):

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?

Actions #1

Updated by Jan Fajerski about 4 years 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?

Actions #2

Updated by Joshua Schmid about 4 years 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

Actions #3

Updated by Jan Fajerski about 4 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF