Project

General

Profile

Bug #22282

ceph-volume fails when sudo is not installed

Added by Alwin Antreich over 6 years ago. Updated over 6 years ago.

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

0%

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

Description

On systems where sudo is not installed, ceph-volume fails. Debian 9.1 / Python 2.7.13

root@sumi1:~# ceph-volume lvm create --bluestore --data /dev/sdh
-->  OSError: [Errno 2] No such file or directory

As sudo is not installed by default on some systems, ceph-volume should be able to run without. This would make it possible to run it as root on systems w/o sudo and by user intention with sudo (eg. sudo ceph-volume ...).

History

#1 Updated by Alfredo Deza over 6 years ago

  • Category set to 135

#2 Updated by Andrew Schoen over 6 years ago

  • Assignee set to Andrew Schoen

#3 Updated by Patrick Donnelly over 6 years ago

  • Project changed from Ceph to ceph-volume

#4 Updated by Andrew Schoen over 6 years ago

  • Status changed from New to Fix Under Review

#5 Updated by Andrew Schoen over 6 years ago

  • Status changed from Fix Under Review to Resolved

#6 Updated by Alfredo Deza over 6 years ago

this PR targeted mimic-dev1

#7 Updated by Andrew Schoen over 6 years ago

backporting to luminous here https://github.com/ceph/ceph/pull/19525

Also available in: Atom PDF