Bug 33194 - Release updates via policy not possible
Release updates via policy not possible
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-0-errata
Assigned To: Philipp Hahn
Stefan Gohmann
:
: 23350 (view as bug list)
Depends on:
Blocks: 34055
  Show dependency treegraph
 
Reported: 2013-11-07 13:39 CET by Stefan Gohmann
Modified: 2014-03-19 09:41 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Stefan Gohmann univentionstaff 2013-11-07 13:39:18 CET
It is not possible to install UCS release updates via the release policy. At least the --noninteractive switch is missing for the univention-updater command.
Comment 1 Philipp Hahn univentionstaff 2014-02-04 22:31:58 CET
r47636 | Bug #33194: Updater: Fix output messages
r47635 | Bug #33194: updater: Force --noninteractive mode for maintenance mode
r47633 | Bug #33194: Updater: Extend copyright to 2014.
univention-updater_9.0.38-10.1245.201402042222
r47637 | Bug #33189,33194: Updater release policy
Comment 2 Stefan Gohmann univentionstaff 2014-02-10 21:31:05 CET
(In reply to Philipp Hahn from comment #1)
> r47636 | Bug #33194: Updater: Fix output messages

Code: OK

> r47635 | Bug #33194: updater: Force --noninteractive mode for maintenance
> mode

Code: Fail:
 s/noninteracive/noninteractive/

> r47633 | Bug #33194: Updater: Extend copyright to 2014.

Code: OK

> univention-updater_9.0.38-10.1245.201402042222
> r47637 | Bug #33189,33194: Updater release policy

Tests: Failed
univention-updater does not know the --noninteractive flag. I think you have to set the environment variable UCS_FRONTEND to noninteractive.

YAML: OK
Comment 3 Philipp Hahn univentionstaff 2014-02-11 11:48:36 CET
(In reply to Stefan Gohmann from comment #2)
> Code: Fail:
>  s/noninteracive/noninteractive/
Fixed.

> > r47637 | Bug #33189,33194: Updater release policy
> 
> Tests: Failed
> univention-updater does not know the --noninteractive flag. I think you have
> to set the environment variable UCS_FRONTEND to noninteractive.

"univention-updater --noninteractive" added to have the code in one place. The </dev/null is sometimes needed, since programs still try to read from STDIN.

3.2-0: r47725 | Bug #33189,#33194: updater --noninteractive
univention-updater_9.0.38-11.1247.201402111139
YAML: r47727 | Bug #33189,#33194: updater --noninteractive YAML
3.2-1: r47726 | Bug #33189,#33194: updater --noninteractive

# ucr set repository/online/server=apt.knut.univention.de
# /usr/lib/univention-directory-policy/univention-policy-maintenance
# cat /etc/cron.d/univention-maintenance# cron job for update
PATH=/sbin:/usr/sbin:/usr/bin:/bin
5 * * * *  root /usr/sbin/jitter 600 /usr/share/univention-updater/univention-updater local --updateto=3.2-1  --silent --noninteractive; /usr/share/univention-updater/univention-actualise --dist-upgrade --silent

# /usr/share/univention-updater/univention-updater net --updateto=3.2-1 --noninteractive
...
WARNING: You are logged in using SSH -- this may interrupt the update and result in an inconsistent system!
# xargs -0n1 echo </proc/`pgrep -f preup`/environ | grep FRONT
UCS_FRONTEND=noninteractive

# /usr/share/univention-updater/univention-updater net --updateto=3.2-1
...
Do you want to continue [Y/n]? n
Comment 4 Philipp Hahn univentionstaff 2014-02-11 15:36:49 CET
Fix /etc/init.d/univention-maintenance to not print the message about running the updater, when the release update is not allowed by policy.

3.2-0:  r47744 | Bug #33194: updater: maintenance policy
YAML:   r47747 | Bug #33194: updater: maintenance policy YAML
3.2-1:  r47746 | Bug #33194: updater: maintenance policy
Comment 5 Stefan Gohmann univentionstaff 2014-02-11 16:47:02 CET
YAML: OK
Code: OK
Tests: OK
Comment 6 Moritz Muehlenhoff univentionstaff 2014-02-12 10:26:17 CET
http://errata.univention.de/ucs/3.2/55.html
Comment 7 Philipp Hahn univentionstaff 2014-03-19 09:41:36 CET
*** Bug 23350 has been marked as a duplicate of this bug. ***