Actions
action #131264
closedOSD deployment fails to install package os-autoinst-distri-opensuse size:M
Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2023-06-22
Due date:
% Done:
0%
Estimated time:
Tags:
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"
Actions