Project

General

Profile

Actions

action #165399

closed

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #80150: [epic] Scale out openQA: Easier openQA setup

Unable to use openqa-single-instance due to "Valid metadata not found at specified URL" reproducing often size:S

Added by okurz 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2024-08-16
Due date:
% Done:

0%

Estimated time:

Description

Observation

podman run --pull=newer --name openqa --device /dev/kvm -p 1080:80 -p 1443:443 --rm -it registry.opensuse.org/devel/openqa/containers/openqa-single-instance

fails to start up with

Trying to pull registry.opensuse.org/devel/openqa/containers/openqa-single-instance:latest...
Getting image source signatures
Copying blob a513c4d5e8db done   | 
Copying blob 3f6d2e730494 done   | 
Copying config 3df73baa0a done   | 
Writing manifest to image destination
+ dbname=openqa
+ dbuser=geekotest
+ running_systemd=
+ skip_suse_specifics=1
+ skip_suse_tests=1
+ setup_web_proxy=
++ ps --no-headers -o comm 1
+ [[ openqa-bootstra = \s\y\s\t\e\m\d ]]
+ [[ 0 -gt 0 ]]
+ . /etc/os-release
++ NAME='openSUSE Tumbleweed'
++ ID=opensuse-tumbleweed
++ ID_LIKE='opensuse suse'
++ VERSION_ID=20240813
++ PRETTY_NAME='openSUSE Tumbleweed'
++ ANSI_COLOR='0;32'
++ CPE_NAME='cpe:2.3:o:opensuse:tumbleweed:20240813:*:*:*:*:*:*:*'
++ BUG_REPORT_URL=https://bugzilla.opensuse.org
++ SUPPORT_URL=https://bugs.opensuse.org
++ HOME_URL=https://www.opensuse.org
++ DOCUMENTATION_URL=https://en.opensuse.org/Portal:Tumbleweed
++ LOGO=distributor-logo-Tumbleweed
+ [[ openSUSE Tumbleweed = \o\p\e\n\S\U\S\E\ \L\e\a\p ]]
+ command -v retry
+ zypper -n --gpg-auto-import-keys in retry
Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata ..................................................................................................................................................................[error]
Repository 'openSUSE-Tumbleweed-Non-Oss' is invalid.
[repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://download.opensuse.org/tumbleweed/repo/non-oss/'

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'openSUSE-Tumbleweed-Non-Oss' because of the above error.
Retrieving repository 'Open H.264 Codec (openSUSE Tumbleweed)' metadata .......................................................................................................................................................[error]
Repository 'Open H.264 Codec (openSUSE Tumbleweed)' is invalid.
[repo-openh264|http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed'

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'Open H.264 Codec (openSUSE Tumbleweed)' because of the above error.
Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata ......................................................................................................................................................................[error]
Repository 'openSUSE-Tumbleweed-Oss' is invalid.
[repo-oss|http://download.opensuse.org/tumbleweed/repo/oss/] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://download.opensuse.org/tumbleweed/repo/oss/'

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'openSUSE-Tumbleweed-Oss' because of the above error.
Retrieving repository 'openSUSE-Tumbleweed-Update' metadata ...................................................................................................................................................................[error]
Repository 'openSUSE-Tumbleweed-Update' is invalid.
[repo-update|http://download.opensuse.org/update/tumbleweed/] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://download.opensuse.org/update/tumbleweed/'

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'openSUSE-Tumbleweed-Update' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
'retry' not found in package names. Trying capabilities.
No provider of 'retry' found.

Could be related to https://github.com/os-autoinst/openQA/pull/5840, at least related to #163112 . We should try to avoid all zypper operations in bootstrap if the container can already provide necessary dependencies.

Acceptance criteria

  • AC1: No errors due to retry not being installable from Tumbleweed sources

Suggestions

  • Install retry in the container - no need to install it and possibly fail to install it
  • go back to using scripted retry inside bootstrap

Related issues 2 (0 open2 closed)

Related to openQA Project (public) - action #163112: test fails in openqa_webui due to repeated and reproducible errors in reading from the devel:openQA repository "repodata…filelists-ext.xml.gz not found on medium" size:SResolvedokurz2024-07-02

Actions
Related to openQA Project (public) - action #165992: [openqa-in-openqa] test fails in container/build due to auto_review:"Valid metadata not found at specified URL" size:SResolvedjbaier_cz

Actions
Actions #1

Updated by okurz 4 months ago

  • Related to action #163112: test fails in openqa_webui due to repeated and reproducible errors in reading from the devel:openQA repository "repodata…filelists-ext.xml.gz not found on medium" size:S added
Actions #2

Updated by mkittler 4 months ago

We should try to avoid all zypper operations in bootstrap if the container can already provide necessary dependencies.

That makes sense but the script cannot magically know whether the environment it runs in has all necessary dependencies. I guess we could introduce an env variable to skip package installations completely and set it within the container env (that hopefully contains all the packages).

Actions #3

Updated by okurz 4 months ago

mkittler wrote in #note-2:

We should try to avoid all zypper operations in bootstrap if the container can already provide necessary dependencies.

That makes sense but the script cannot magically know whether the environment it runs in has all necessary dependencies.

No magic needed. Just check with command -v or also `rpm. But I guess first we need to actually built containers with those deps included

Actions #4

Updated by livdywan 4 months ago

  • Subject changed from Unable to use openqa-single-instance due to "Valid metadata not found at specified URL" reproducing often to Unable to use openqa-single-instance due to "Valid metadata not found at specified URL" reproducing often size:S
  • Description updated (diff)
Actions #5

Updated by mkittler 4 months ago

  • Status changed from New to In Progress
  • Assignee set to mkittler
Actions #6

Updated by mkittler 4 months ago

  • Status changed from In Progress to Feedback

The bootstrap script actually already has a check via command -v. So I guess we really only need to ensure that all packages installed by the boostrap script are already present in the container. PR for that: https://github.com/os-autoinst/openQA/pull/5899

I suppose the retry package is the most important here because further packages are at least retried. I nevertheless included further packages because we already include some of them to it makes sense to keep the list up-to-date.

Actions #7

Updated by mkittler 4 months ago

  • Status changed from Feedback to Resolved

I re-triggered the container build and tested the new container. Now zypper is no longer called to install retry and the other zypper call for extra packages (which has a retry) ends with Nothing to do.. So I guess we're good.

Actions #8

Updated by jbaier_cz 4 months ago

  • Related to action #165992: [openqa-in-openqa] test fails in container/build due to auto_review:"Valid metadata not found at specified URL" size:S added
Actions

Also available in: Atom PDF