Bug 26477 - Add warning when stopping apache or UMC through UMC services module
Add warning when stopping apache or UMC through UMC services module
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - System services
UCS 4.1
Other Linux
: P4 minor (vote)
: UCS 4.3
Assigned To: Jannik Ahlers
Florian Best
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-13 17:00 CET by Tim Petersen
Modified: 2018-03-14 14:38 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
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.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Screenshot (43.32 KB, image/png)
2018-01-12 13:04 CET, Jannik Ahlers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2012-03-13 17:00:18 CET
Für Anwender, die das System-Dienste Modul in der UMC2 benutzen wäre es von Vorteil wenn beim Stoppen von apache2 eine Warnung angezeigt werden würde.
Es ist unter Umständen im Anschluss bedingt durch die Web 2.0 Technologie nicht direkt erkennbar, was das Problem ist.
Direkt im Anschluss an das Stoppen meldet die UMC per Popup "Ein unbekannter Fehler mit Status-Code 0 trat während des Verbindungsaufbaus zum Server auf. Bitte versuchen Sie es später noch einmal."
Selbige Meldung erscheint daraufhin bei jeder Aktion, es werden aber neue Tabs, Grids, etc gestartet (man kann neue Module, etc. starten).
Comment 1 Alexander Kläser univentionstaff 2012-03-14 09:37:47 CET
Stimmt, unter bestimmten Voraussetzungen kann es durch den Neustart des UMC-Servers sein, dass der UMC-Web-Server keine Verbindung mehr zu ihm aufbauen kann. Damit schlagen alle Request gegen das Backend fehl. Der Neustart des UMC-Web-Servers wäre dann notwendig, allerdings ist auch nicht in der Liste der Systemdienste eingetragen.
Comment 2 Tim Petersen univentionstaff 2012-03-14 09:50:10 CET
(In reply to comment #0)
> Für Anwender, die das System-Dienste Modul in der UMC2 benutzen wäre es von
> Vorteil wenn beim Stoppen von apache2 eine Warnung angezeigt werden würde.


Gleiches gilt imho für univention-management-console-web-server
Comment 3 Jannik Ahlers univentionstaff 2018-01-11 09:36:47 CET
Added a warning for:
    -Apache2
    -univention-management-console-server
    -univention-management-console-web-server

see branch jahlers/26477-services-stop-warning
Comment 4 Florian Best univentionstaff 2018-01-11 15:05:06 CET
Maybe the warning looks much more nice, if it occurs after the list of services instead of after every listed service?
Comment 5 Jannik Ahlers univentionstaff 2018-01-12 12:03:40 CET
It looked nice as it was with a shorter warning. The warning message you sent me (Warning: Stopping this service will interrupt all current connections to the Univention Management Console) produces a line break, which, indeed, looks bad. A message after the list of services gives less (or at least less organized) information as you cannot see which service is required for umc.
In my opinion the warnings should stay in the list, but with a shorter warning message (maybe something like "required for UMC"), and maybe in red to implicate warning.
Comment 6 Florian Best univentionstaff 2018-01-12 12:19:15 CET
And what if we name the services in the error message explicit and put it underneath of the list. This would also solve that the message is not shown multiple times.
Comment 7 Jannik Ahlers univentionstaff 2018-01-12 13:04:37 CET
Created attachment 9342 [details]
Screenshot

I made a screenshot to compare both versions.
The warning underneath is far too long imo, and easily overlooked.
I don't think it is a problem to show the warning multiple times if it is so short.
Anyway, if I still haven't convinced you, your solution is implemented and ready to go.
Comment 8 Florian Best univentionstaff 2018-01-22 21:15:03 CET
I think a hardcoded message is enough. It doesn't need to be in brackets. There don't have to be red text after each service:

Warning: Stopping apache or UMC services will interrupt all current connections to the Univention Management Console. It might be necessary for all users to login again.
Comment 9 Florian Best univentionstaff 2018-01-23 13:15:28 CET
Please make sure that the message is not displayed when starting services.
Comment 10 Jannik Ahlers univentionstaff 2018-01-24 10:57:01 CET
Added a warning for:
    -Apache2
    -univention-management-console-server
    -univention-management-console-web-server

The warning will appear when stopping or restarting the services or when setting them to never start or start manually.

changelog-4.3-0.xml
e059c9b953d0 | Bug #26477: changelog

univention-management-console-module-services (7.0.0-3)
f20a46e69c29 | Bug #26477: services UMC module warns when stopping of service breaks UMC

univention-directory-manager-modules (7.0.63-1)
r26477 | univention-directory-manager-modules (7.0.63-1) unstable; urgency=low

Successful build
Package: univention-management-console-module-services
Version: 7.0.0-3A~4.3.0.201801241026
Branch: ucs_4.3-0
Scope: 
User: jahlers
Comment 11 Florian Best univentionstaff 2018-01-24 11:17:37 CET
OK: warnings are shown when stopping, restarting, manually, deactivate UMC services.
OK: changelog entry
Comment 12 Stefan Gohmann univentionstaff 2018-03-14 14:38:29 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".