Project

General

Profile

Bug #22282

ceph-volume fails when sudo is not installed

Added by Alwin Antreich about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/30/2017
Due date:
% Done:

0%

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

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 about 1 year ago

  • Category set to 135

#2 Updated by Andrew Schoen about 1 year ago

  • Assignee set to Andrew Schoen

#3 Updated by Patrick Donnelly about 1 year ago

  • Project changed from Ceph to ceph-volume

#4 Updated by Andrew Schoen about 1 year ago

  • Status changed from New to Need Review

#5 Updated by Andrew Schoen about 1 year ago

  • Status changed from Need Review to Resolved

#6 Updated by Alfredo Deza about 1 year ago

this PR targeted mimic-dev1

#7 Updated by Andrew Schoen about 1 year ago

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

Also available in: Atom PDF