uyuni-project / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
434 stars 181 forks source link

Uyuni Bugreport - Uyuni 2021.09: SysV service '/etc/init.d/susemanager' lacks a native systemd unit file #4378

Open stdevel opened 3 years ago

stdevel commented 3 years ago

Additional Information

When running dmesg, a warning is shown:

[    5.836325] systemd-sysv-generator[523]: SysV service '/etc/init.d/susemanager' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.

Anyhow, Uyuni is working fine in accordance with spacewalk-service status.

Version of Uyuni Server and Proxy (if used)

Loading repository data...
Reading installed packages...

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2021.09-141.3.uyuni1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1,4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2021.09-141.3.uyuni1.src
Summary        : Uyuni Server
Description    : 
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

This also applies to SUSE Manager 4.2:

# zypper info SUSE-Manager-*
Information for package SUSE-Manager-Server-release:
----------------------------------------------------
Repository : SLE-Product-SUSE-Manager-Server-4.2-Updates
Name : SUSE-Manager-Server-release
Version : 4.2-47.4.2
Arch : x86_64
Vendor : SUSE LLC <https://www.suse.com/>
Support Level : Level 3
Installed Size : 334.1 KiB
Installed : Yes
Status : up-to-date
Source package : SUSE-Manager-Server-release-4.2-47.4.2.src
Summary : SUSE Manager Server 4.2
Description :
SUSE Manager lets you efficiently manage physical, virtual,
and cloud-based Linux systems. It provides automated and cost-effective
configuration and software management, asset management, and system
provisioning.

Details about issue

It is just a warning, but Uyuni works. Maybe the legacy SysV init script needs to be replaced as Uyuni isn't supposed to run on SLES 12 or openSUSE Leap 42.x and older?

I also created a ticket within SCC (case #00317645).

aaannz commented 3 years ago

Thank you for the report. I am not sure why this file is still present, should be removed IMO. We have native systemd target and unit files already. ( https://github.com/uyuni-project/uyuni/blob/master/spacewalk/admin/ )

mcalmer commented 3 years ago

Well, this script should just print a message on the screen after the server is booted. It should tell which hostname the system has and which URL to use to access SUSE Manager :

    MYHOSTNAME=`hostname -f`
    echo -e "\n\t${done}SUSE Manager Server is running at https://$MYHOSTNAME ${norm}\n"

We need to find out how to print such messages in the days of systemd. systemd try very hard to prevent all messages on the screen during booting.

aaannz commented 3 years ago

We can write to /etc/issue to display this info before login. I don't know however if and when this file is regenerated.