nexus-public icon indicating copy to clipboard operation
nexus-public copied to clipboard

No module metadata when using yum proxy repositories

Open yeradd12 opened this issue 1 year ago • 14 comments

  • What problem are you trying to solve?

I want to use Nexus Repository OSS to proxy Rocky yum repositories (for example Appstream) but Nexus doesn't create/support module metadata and there are issues when installing some packages. When executing dnf module list I get empty list. I'm looking for a way around this problem, I'm wondering if it's possible to somehow generate metadata manually or fix it in some other way.

One example is that when I'm using proxy repository I cannot install docker because module container-tools isn't visble for packet manager.

  • Do you have a workaround you are using at present?

No, I am looking for one.

  • What feature or behavior is this required for?

To install some packages which use modules feature from RHEL.

  • How could we solve this issue? (Not knowing is okay!)

I think the problem is that Nexus does not generate a file module.yaml.gz in repodata? I'm not sure but that is my guess.

  • Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?

Nexus Repository OSS 3.53.1-02 on Rocky Linux 9.2

yeradd12 avatar Jul 21 '23 12:07 yeradd12

Thanks @yeradd12 for opening an issue. We aren't familiar with Rocky linux, so this is a new area for us. We'll keep this open to gauge demand and interest from the community.

nblair avatar Aug 01 '23 19:08 nblair

I experience the same problem with almalinux

hartmannm avatar Aug 14 '23 21:08 hartmannm

I experience the same problem with almalinux

I think this problem affects all derivatives of Red Hat 8+ as all of them use module functionality.

yeradd12 avatar Aug 14 '23 23:08 yeradd12

I experience the same problem with almalinux I think this problem affects all derivatives of Red Hat 8+ as all of them use module functionality.

Do you plan add support for RHEL 8+ and when? CentOS is reaching eol and many companies will switch to alternatives.

hartmannm avatar Aug 15 '23 06:08 hartmannm

Same issue. Since Nexus3 changed how files are stored it's trickier to create a script as workaround. @nblair https://github.com/rpm-software-management/modulemd-tools this is the tool I have used to create the metadata previously.

DanyPops avatar Aug 17 '23 09:08 DanyPops

Same use for me on RHEL8 and Oracle Linux 8. I can't do "yum update" after installing some fonctionality like "cpan" that use module mode to download updates.

slhotellier avatar Nov 17 '23 16:11 slhotellier

Same use for me on rockylinux9

905839698 avatar Apr 01 '24 08:04 905839698

I have a same problem on rockylinux9 and almalinux9.

The error log is "Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried" on rockylinux9 and almalinux9.

@nblair Do you have any plan to support centOS 8+ ? Can I know when will you support centOS 8+ ?

hojeonghan avatar Apr 30 '24 07:04 hojeonghan

This happens to me with Rocky 8.9 and 'yum install ruby'

anthonyeleven avatar May 25 '24 19:05 anthonyeleven

Just switched to pulp. bye nexus

hartmannm avatar May 25 '24 20:05 hartmannm

Any idea to this issue?

wahello avatar Aug 05 '24 10:08 wahello

Sonotype support eventually clued me in.

They have no plans to generate this wacky metadata, but there is a raw repository type that just serves up the data as-is, like a regular static web site. For local snapshots of Linux package repositories, this does the job, and avoids the manifold shortcomings of a proxy repository / group.

Use repoclone to snag an upstream snapshot then nexus3-cli to recursively stuff it into Nexus.

anthonyeleven avatar Aug 05 '24 13:08 anthonyeleven

Just switched to pulp. bye nexus

I deployed pulp, and have a problem. Did you have such problem?

wahello avatar Aug 07 '24 00:08 wahello