Bug 50906 - Add flag to skip local repo update if noninteractive is set
Add flag to skip local repo update if noninteractive is set
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-09 12:08 CET by Valentin Heidelberger
Modified: 2020-03-09 13:11 CET (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
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?: Yes
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 Valentin Heidelberger univentionstaff 2020-03-09 12:08:36 CET
On an UCS with a repo mirror univention-upgrade performs an update of this error first thing when it's called. With --noninteractive this starts automatically.

It would help to have a flag for skipping the local repo update even if --noninteractive is set. The reasoning behind this is that repo mirror updates can take a long time (up to 5h at one of my customers). Because of this they basically can't update their UCS with the repo mirror on it with --noninteractive, because univention-upgrade would always "hang" for hours because of the unskippable repo mirror update.
Comment 1 Philipp Hahn univentionstaff 2020-03-09 13:11:20 CET
If a server is a local repository, it automatically re-configures itself to use itself as its update server: repository/online/server=localhost
So for updates to happen AUTOMATICALLY (e.g. "nonintractive") the local repository MUST be updates before there are any new packages to install.

Updating an "up-to-date" repository should not take ages, so maybe something with you network is broken?

Hint: By default `univention-repository-update` uses `apt-mirror` to mirror all previous minor and patch-level and errata repositories. If you know that all your systems are up-to-date you can disable mirroring previous errata repositories by setting `repository/online/component/4.$MINOR-$PATCH-errata/localmirror=no`. This can speed up the mirroring process slightly.
Be warned to NOT disable previous minor-releases as UCS-4.4 technically depends on UCS-4.3, 4.2, 4.1 and 4.0 and still required packages from those repositories.

Reducing the number of HTTP requests is planned for the future, but no ETA. So adding such an option might help for this special situation. (As a temporary work-around use `DEBIAN_FRONTEND=noninteractive apt-get` directly; see `ucr search ^update/commands/` for additional arguments).