Bug 55070 - univention-network-common installation failes because weird dependency on univention-management-console-web-server
univention-network-common installation failes because weird dependency on uni...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Network
UCS 5.0
Other Linux
: P3 critical (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-04 13:58 CEST by Lukas Zumvorde
Modified: 2022-08-08 10:21 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Zumvorde univentionstaff 2022-08-04 13:58:14 CEST
A customer has several UCS systems on which the UMC is not installed. During the Upgrade to UCS 5 the package univention-network-common got updated from 11.0.0-2 to 11.0.0-3. This update contained two bug fixes. One of those (https://forge.univention.org/bugzilla/show_bug.cgi?id=52959) introduced the issue by assuming that univention-management-console-web-server is installed, despite not being a dependency. 
I do not think that univention-management-console-web-server should be a dependency. We should strife to minimize dependencies, especially if they involve services that are potentially externally available.

The issue he experienced was logges in /var/log/univention/updater.log
```
insserv: Service univention-management-console-web-server has to be enabled to start service univention-network-common
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: Fehler beim Bearbeiten des Paketes univention-network-common (--configure):
…
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von univention-ifplugd:
univention-ifplugd hängt ab von univention-network-common (= 11.0.0-3A~4.4.0.202207201501); aber:
Paket univention-network-common ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes univention-ifplugd (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
…
Fehler traten auf beim Bearbeiten von:
univention-network-common
univention-ifplugd
```
The offending line from the for for the bug 52959 is 
```
# Required-Start:    $network $remote_fs univention-management-console-web-server apache2
```
in univention-network-common.init

The package univention-network-common has the dependencies
 python-netifaces,
 python-univention-lib,
 univention-config (>= 8.0.2),
 ${misc:Depends},
 ${python:Depends},

This issue currently necessitates a fork of the package for a customer. We want to avoid this.
Comment 1 Philipp Hahn univentionstaff 2022-08-04 15:27:38 CEST
Please give this change a try:
> {Required → Should}-Start: univention-network-common apache2

FYI: There is an ongoing effort to replace all legacy SysV-init-scripts with proper systemd units: Bug #43691