Status code 404 cannot download metadata repomd.xml with composite view

Latest response

Hi all,

I have a content view with baseos en appstream rhel8 repos. I made another content view with the repos required for rhv manager 4.4 for rhel8.

Both content views are published and promoted after the repositories finished syncing (full sync, download policy immediate).

I made a composite content view of the rhel8 and manager content views, published and promoted.

When I update my activationkey to use the composite view, I receive the following error:
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                          797  B/s | 224  B     00:00    
Errors during downloading metadata for repository 'rhel-8-for-x86_64-appstream-rpms':
  - Status code: 404 for (IP:
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

I searched my butt off on this, there are no errors in foreman.log.

I found an article stating this happens when the release version is incorrect, I checked and its set correctly. Another article stated to resync the repos, and republish all content views. Doesn't help.

When I put all the repositories in a content view (not composite), it works fine.

The funny thing is, this has happened before on different setup where I decided not to bother with composite views.

Any ideas whats going on here?



I'm thinking it has to do with the repository being 'rhel-8-for-x86_64-appstream-rpms' and 'codeready-builder-for-rhel-8-x86_64-rpms', while the release is pinned to 8.3 on one system and 8.4 on another. When I browse on the Satellite to '/var/lib/pulp/published/yum/https/repos/Laboratory/prod/Red_Hat_8_with_Virtualization_Host/content/dist/rhel8/8.3/x86_64/appstream' I only find a kickstart symlink. In '/var/lib/pulp/published/yum/https/repos/Laboratory/prod/Red_Hat_8_with_Virtualization_Host/content/dist/rhel8/8.4/x86_64' I only see baseos and appstream, no codeready-builder directory or symlink.

A quick update before I drop off, adding and syncing the 8.3 and 8.4 repositories and adding those to their respective composite content views works fine.

So I must be doing something wrong with the 8Server repo's in combination with composite content views (remember those 8Server repo's work fine in standard content views for both 8.3 and 8.4).