Bug 57045 - no working settings for components in sources and mirror list if localmirror is activated
no working settings for components in sources and mirror list if localmirror ...
Status: NEW
Product: UCS
Classification: Unclassified
Component: General
UCS 5.0
Other Linux
: P5 major (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-06 14:37 CET by Lukas Zumvorde
Modified: 2024-02-12 08:41 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023101721000215
Bug group (optional): Regression
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 2024-02-06 14:37:19 CET
For repository mirrors if we use the localmirror setting the mirror.list and sources.list file don't fit together. In essence there is no possible setting that allows both the customer scope to be mirrored successfully from the official repository and subsequently read locally by the repository mirror for local installation. 

In one example when the sources list is generated on the repo mirror it is creating the path

http://repo.mirror.example/univention-repository/univention-repository/5.0/maintained/component/xyz/

based on the UCRV repository/online/server: http://repo.mirror.example:80/univention-repository

However the correct path would be
http://repo.mirror.example/univention-repository/apt/xxxxx/5.0/maintained/component/xyz/

Any setting of the prefix or the like based on the component is ignored.

Looking at the comment in
ucs/base/univention-updater/modules/univention/updater/tools.py
line 949: def baseurl()
this is the intended behavior, but is faulty.

Since this is a very basic scenario and the feature is quite established, it would be good to ensure that it has sane defaults.
Comment 1 Mirac Erdemiroglu univentionstaff 2024-02-06 14:45:21 CET
Customer affected 2023101721000215