Bug 52197 - Add current phase to univention-updater.status
Add current phase to univention-updater.status
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-6-errata
Assigned To: Sönke Schwardt-Krummrich
Philipp Hahn
:
Depends on:
Blocks: 52909 51624
  Show dependency treegraph
 
Reported: 2020-10-08 15:34 CEST by Sönke Schwardt-Krummrich
Modified: 2021-03-15 11:48 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2020-10-08 15:34:03 CEST
The updater should add the current phase to the status file
/var/lib/univention-updater/univention-updater.status that is used by the maintenance mode and some other scripts to detect a running update.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2020-10-12 16:47:31 CEST
During the update from UCS 4.4 to UCS 5.0 the execution of joinscripts is postponed depending on the phase read from the updater status file (Bug 51624).

Therefore the status file
/var/lib/univention-updater/univention-updater.status
has been improved and the keyword "phase" has been added. "phase" is only available if the "status" is "RUNNING".

The order of phases is
status=RUNNING phase=PREPARATION
status=RUNNING phase=PREUP
status=RUNNING phase=UPDATE
status=RUNNING phase=POSTUP
status=DONE    or    status=FAILED errorsource=...

The format of the univention-updater.status has been documented in README.devel.

A new ucs-test script 29updater-status has been added that checks the correct content of the status file.

Changes have been made in branch sschwardt/446/US1205-no-joinscript-during-update
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2020-10-16 17:58:38 CEST
Branch has been merged and built.

Package: univention-updater
Version: 14.0.3-4A~4.4.0.202010161751
Branch: ucs_4.4-0
Scope: errata4.4-6
Comment 3 Philipp Hahn univentionstaff 2020-10-16 18:21:13 CEST
QA done as part of QA for Bug #51624

OK: errata-announce -V --only univention-updater.yaml