Actions
Bug #25070
closedlvm activate --all uses systemctl although --no-systemd option is set
% Done:
0%
Source:
Community (user)
Tags:
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
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'
Updated by Alfredo Deza over 5 years ago
systemd is a hard dependency for this to run. How are you planning on managing the OSD daemons without it?
Updated by Jonas Licht over 5 years 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.
Updated by Sebastian Wagner over 2 years ago
- Related to Bug #52340: ceph-volume: lvm activate: "tags" not defined added
Updated by Sebastian Wagner over 2 years ago
- Has duplicate Bug #47724: ceph-volume -no-systemd fails without systemd added
Updated by Nico Schottelius over 2 years ago
Did anyone ever look into the source of this?
Updated by Dimitri Savineau over 2 years ago
- Status changed from New to Fix Under Review
- Assignee set to Dimitri Savineau
- Target version changed from v13.2.1 to v17.0.0
- Backport set to pacific,octopus
- Pull request ID set to 42912
- Affected Versions v14.2.22, v15.2.14, v16.2.5, v17.0.0 added
- Affected Versions deleted (
v13.2.0)
Updated by Dimitri Savineau over 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot over 2 years ago
- Copied to Backport #52587: octopus: lvm activate --all uses systemctl although --no-systemd option is set added
Updated by Backport Bot over 2 years ago
- Copied to Backport #52588: pacific: lvm activate --all uses systemctl although --no-systemd option is set added
Updated by Guillaume Abrioux over 2 years ago
- Status changed from Pending Backport to Resolved
Actions