action #131264
closedOSD deployment fails to install package os-autoinst-distri-opensuse size:M
0%
Description
Observation¶
The OSD deployment failed in "deploy to production" because a package could not be installed as it was not found. As we install with zypper --no-refresh dup …
based on previously downloaded packages the problem is in a previous job "download new packages - worker" https://gitlab.suse.de/openqa/osd-deployment/-/jobs/1649329 which succeeded although workers did fail to download a package, e.g. in https://gitlab.suse.de/openqa/osd-deployment/-/jobs/1649329#L3508
The problem seems to be in
https://gitlab.suse.de/openqa/osd-deployment/-/blob/master/.gitlab-ci.yml#L207
that the error is not propagated from the retry loop.
Suggestions¶
- Use https://software.opensuse.org/package/retry (upstream https://github.com/okurz/retry) instead. Add that to our salt recipes
- If a package fails to download then try to call
zypper refresh
again and try to download again like we already do in other cases, os-autoinst-distri-openQA does that like thisretry -s 30 -- sh -c "zypper -n --gpg-auto-import-keys ref && zypper --no-cd -n in openQA-local-db"
so mayberetry -s 30 -- sh -c "zypper -n --gpg-auto-import-keys ref && zypper -n dup --download-only --details"
Updated by mkittler over 1 year ago
- Status changed from Workable to In Progress
- Assignee set to mkittler
Updated by mkittler over 1 year ago
- Status changed from In Progress to Feedback
Looks like retry
is not in Leap 15.4 and on https://build.opensuse.org/package/show/Base:System/retry it is also not built for it. So I guess the easiest approach is to simply install it from Git like we already do in other cases. MR: https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/900
Updated by okurz over 1 year ago
I suggest to still submit to Leap. I tried to submit to Leap:15.6 and then realized that this project does not exist. I suggest we (you?) reach out to openSUSE Leap maintainers to have that project created. IMHO as soon as submissions to an old version of Leap are disabled the new version project should already exist … as long as Leap exists.
Updated by mkittler over 1 year ago
Likely this exceeds the scope of this ticket.
Follow-up for using git.latest
: https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/901
Updated by mkittler over 1 year ago
Updated by okurz over 1 year ago
- Status changed from Feedback to Resolved
MR merged. A subsequent OSD deployment call is ok as well