Project

General

Profile

Bug #25070

lvm activate --all uses systemctl although --no-systemd option is set

Added by Jonas Licht over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/23/2018
Due date:
% Done:

0%

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

Description

Hi

I'm use a gentoo with no systemd.
If I run ceph-volume lvm activate --all --no-systemd, I got this:

--> Absolute path not found for executable: systemctl
--> Ensure $PATH environment variable contains common executable locations
Traceback (most recent call last):
File "/usr/sbin/ceph-volume", line 6, in <module>
main.Volume()
File "/usr/lib64/python3.5/site-packages/ceph_volume/main.py", line 37, in init
self.main(self.argv)
File "/usr/lib64/python3.5/site-packages/ceph_volume/decorators.py", line 59, in newfunc
return f(*a, **kw)
File "/usr/lib64/python3.5/site-packages/ceph_volume/main.py", line 153, in main
terminal.dispatch(self.mapper, subcommand_args)
File "/usr/lib64/python3.5/site-packages/ceph_volume/terminal.py", line 182, in dispatch
instance.main()
File "/usr/lib64/python3.5/site-packages/ceph_volume/devices/lvm/main.py", line 38, in main
terminal.dispatch(self.mapper, self.argv)
File "/usr/lib64/python3.5/site-packages/ceph_volume/terminal.py", line 182, in dispatch
instance.main()
File "/usr/lib64/python3.5/site-packages/ceph_volume/devices/lvm/activate.py", line 316, in main
self.activate_all(args)
File "/usr/lib64/python3.5/site-packages/ceph_volume/decorators.py", line 16, in is_root
return func(*a, **kw)
File "/usr/lib64/python3.5/site-packages/ceph_volume/devices/lvm/activate.py", line 203, in activate_all
if systemctl.osd_is_active(osd_id):
File "/usr/lib64/python3.5/site-packages/ceph_volume/systemd/systemctl.py", line 52, in osd_is_active
return is_active(osd_unit % id_)
File "/usr/lib64/python3.5/site-packages/ceph_volume/systemd/systemctl.py", line 30, in is_active
verbose_on_failure=False
File "/usr/lib64/python3.5/site-packages/ceph_volume/process.py", line 197, in call
**kw
File "/usr/lib64/python3.5/subprocess.py", line 676, in init
restore_signals, start_new_session)
File "/usr/lib64/python3.5/subprocess.py", line 1289, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

History

#1 Updated by Alfredo Deza over 1 year ago

systemd is a hard dependency for this to run. How are you planning on managing the OSD daemons without it?

#2 Updated by Jonas Licht over 1 year ago

The activate_bluestore and activate_filestore functions can run without systemd.

What would be the problem to not check whether the daemon is running?
As I see it, the activate functions don't check if the daemon is running and it looks they can handle that the daemon is already running.

Also available in: Atom PDF