integ/ceph/ceph
Dan Voiculeasa 5bcfd552de debian: Fix ceph lsb script
This work is part of Debian integration effort.
This work only affect Debian. We can port this to CentOS without
issues.

This prevents Maintenance check for /etc/services.d/controller/ceph.sh
from successfully completing after unlock, which results in a reboot.

Debian uses /lib/lsb/init-functions vs CentOS /etc/init.d/functions.
init-functions calls hooks from /lib/lsb/init-functions.d/.
One of the hooks redirect the lsb script call to a systemctl call.
Systemctl calls for ceph service don't work on CentOS or Debian.
There is no sourcing of /etc/init.d/functions so we don't need it for
/lib/lsb/init-functions either.

Using the reasoning above drop sourcing of /lib/lsb/init-functions.

Tests on AIO-SX:
CentOS: not affected, skip
Debian:
PASS: live patch controller, unlock, no unwanted reboot initiated by
Maintenance
PASS: build-pkgs, extract contents and check /etc/init.d/ceph

Story: 2009101
Task: 44791
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I49b79e78b0f832096dca98ca2cfd68c454679b95
2022-03-16 15:42:51 +02:00
..
centos Merge "Enable generation of Ceph's Python 3 packages" 2022-01-21 00:26:05 +00:00
debian debian: Fix ceph lsb script 2022-03-16 15:42:51 +02:00
files Ceph mgr-restful-plugin has new server_port config location 2021-12-09 21:23:36 +00:00