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

Also available in: Atom PDF