Bug 1133423 - AutoYaST: repository priority not working in add-on section
AutoYaST: repository priority not working in add-on section
Status: NEW
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Installation
Leap 15.0
x86-64 Other
: P5 - None : Normal (vote)
: ---
Assigned To: YaST Team
Jiri Srain
https://trello.com/c/54bU05ML/3060-sl...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-25 15:07 UTC by Antoine POULAT
Modified: 2021-01-28 20:48 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
add-on.xml (907 bytes, text/xml)
2019-04-25 15:07 UTC, Antoine POULAT
Details
y2logs.tgz (1.66 MB, application/x-compressed-tar)
2019-04-26 15:04 UTC, Antoine POULAT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine POULAT 2019-04-25 15:07:45 UTC
Created attachment 803606 [details]
add-on.xml

Hi,

I've just seen that, for example with attached add-on.xml given to AutoYaST, with, as you can see one repository with priority 20 and another with priority 10, they both, after install, have a (default) 99 priority (checked with "zypper -lr -p" command).

See documentation about that here: https://doc.opensuse.org/projects/autoyast/#idm139966593990112

Note: I'm not sure on how <product> and <product_dir> tags are relevant then I tried without them and there is still the same issue.

Thanks
Comment 1 Antoine POULAT 2019-04-26 10:00:48 UTC
Note: I made a workaround adding a pre-install script that, for my example file attached, does this:

#!/bin/sh

ZYPP_LOCKFILE_ROOT="/var/run/autoyast"

declare -A priorityMap
priorityMap[Skype]=20
priorityMap[packman-essentials]=10

for key in "${!priorityMap[@]}"
do
    sudo zypper mr -r -p ${priorityMap[$key]} "${key}"
done

In addition, I've just seen I made a typo on how I checked the repos priority, it is actually "zypper lr -p" (not "-lr").
Comment 2 Lukas Ocilka 2019-04-26 12:49:36 UTC
Could you, please, attach YaST logs from the installation where this failed?

See https://en.opensuse.org/openSUSE:Report_a_YaST_bug
Comment 3 Antoine POULAT 2019-04-26 15:04:25 UTC
Created attachment 803706 [details]
y2logs.tgz

Please find attached the logs, please notice that there should be more repos appearing, as the attached add-on.xml was only an example, more precisely, all repos have 99 (default) priority except for packman-essentials that has 90.
Comment 4 Stefan Schubert 2019-04-29 14:57:41 UTC
(In reply to Antoine POULAT from comment #3)
> Created attachment 803706 [details]
> y2logs.tgz
> 
> Please find attached the logs, please notice that there should be more repos
> appearing, as the attached add-on.xml was only an example, more precisely,
> all repos have 99 (default) priority except for packman-essentials that has
> 90.

Thanks, I can reproduce the error. Tracked in Trello.
Comment 5 Pieter Hollants 2021-01-28 20:48:58 UTC
Also present in SLES 12 SP5.