Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate_stage_repository for Katello 4.13 without setting OSES variable #449

Open
Odilhao opened this issue Nov 18, 2024 · 1 comment

Comments

@Odilhao
Copy link
Member

Odilhao commented Nov 18, 2024

We are not able to generate/sign/upload any bits from Katello 4.15 without adding the OSES= variable to releases/katello/4.15/settings , without the variable no action happens.

How to reproduce:

PROJECT=katello VERSION=4.15 ./generate_stage_repository

No package will be download.

After applying:

diff --git a/releases/katello/4.15/settings b/releases/katello/4.15/settings
index e39153a..f0c4519 100644
--- a/releases/katello/4.15/settings
+++ b/releases/katello/4.15/settings
@@ -1,2 +1,4 @@
 FULLVERSION='4.15.0-rc1'
 FOREMAN_VERSION='3.13'
+OSES="el9"

PROJECT=katello VERSION=4.15 ./generate_stage_repository

Will build the repo as expected:

PROJECT=katello VERSION=4.15 ./generate_stage_repository 
+ for os in $OSES
+ ./build_stage_repository katello 4.15 el9 3.13
Syncing katello 4.15 RPM repository from https://yum.theforeman.org/katello/4.15/katello/el9/x86_64
Errors during downloading metadata for repository 'el9-katello-4.15-x86_64':
  - Status code: 404 for https://yum.theforeman.org/katello/4.15/katello/el9/x86_64/repodata/repomd.xml (IP: 151.101.194.49)
Error: Failed to download metadata for repo 'el9-katello-4.15-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: el9-katello-4.15-x86_64
Syncing katello 4.15 Source RPM repository from https://yum.theforeman.org/katello/4.15/katello/el9/source
Errors during downloading metadata for repository 'el9-katello-4.15-source':
  - Status code: 404 for https://yum.theforeman.org/katello/4.15/katello/el9/source/repodata/repomd.xml (IP: 151.101.194.49)
Error: Failed to download metadata for repo 'el9-katello-4.15-source': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: el9-katello-4.15-source
Fetching comps: https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/3.13/comps/comps-katello-el9.xml
dnf4 --config tmp/dnf.conf repodiff --simple --refresh --compare-arch --repofrompath new,https://download.copr.fedorainfracloud.org/results/@theforeman/katello-4.15-staging/rhel-9-x86_64 --repofrompath old,tmp/katello/4.15/el9/x86_64 --repo-old old --repo-new new --arch noarch,x86_64
Errors during downloading metadata for repository 'old':
  - Curl error (37): Could not read a file:// file for file:///home/path/theforeman-rel-eng/tmp/katello/4.15/el9/x86_64/repodata/repomd.xml [Couldn't open file /home/path/theforeman-rel-eng/tmp/katello/4.15/el9/x86_64/repodata/repomd.xml]
Error: Failed to download metadata for repo 'old': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: old
Skipping ansible-collection-redhat-satellite-4.2.0-1.el9.noarch. Package not present in comps.
Skipping ansible-collection-redhat-satellite_operations-3.0.0-1.el9.noarch. Package not present in comps.
Downloading https://download.copr.fedorainfracloud.org/results/@theforeman/katello-4.15-staging/rhel-9-x86_64/foreman-proxy-content-4.15.0-0.1.rc1.el9.noarch.rpm to tmp/katello/4.15/el9/x86_64
Downloading https://download.copr.fedorainfracloud.org/results/@theforeman/katello-4.15-staging/rhel-9-x86_64/katello-4.15.0-0.1.rc1.el9.noarch.rpm to tmp/katello/4.15/el9/x86_64
Downloading https://download.copr.fedorainfracloud.org/results/@theforeman/katello-4.15-staging/rhel-9-x86_64/katello-client-bootstrap-1.7.9-2.el9.noarch.rpm to tmp/katello/4.15/el9/x86_64
Downloading https://download.copr.fedorainfracloud.org/results/@theforeman/katello-4.15-staging/rhel-9-x86_64/katello-common-4.15.0-0.1.rc1.el9.noarch.rpm to tmp/katello/4.15/el9/x86_64

@evgeni
Copy link
Member

evgeni commented Nov 18, 2024

This is what #419 was trying to fix, but breaks other things :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants