Project

General

Profile

Actions

action #131264

closed

OSD deployment fails to install package os-autoinst-distri-opensuse size:M

Added by okurz over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
2023-06-22
Due date:
% Done:

0%

Estimated time:

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 this retry -s 30 -- sh -c "zypper -n --gpg-auto-import-keys ref && zypper --no-cd -n in openQA-local-db" so maybe retry -s 30 -- sh -c "zypper -n --gpg-auto-import-keys ref && zypper -n dup --download-only --details"
Actions #1

Updated by mkittler over 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to mkittler
Actions #2

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

Actions #3

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.

Actions #4

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

Actions #6

Updated by okurz over 1 year ago

  • Status changed from Feedback to Resolved

MR merged. A subsequent OSD deployment call is ok as well

Actions

Also available in: Atom PDF