Description of problem: module info shows the 'Default profiles' is 'default', but it should be 'common' Version-Release number of selected component (if applicable): Name : virt Stream : 8.0.0 Version : 820190227090827 How reproducible: 100% Steps to Reproduce: 1. Prepare the repo for fast train virt, then run # yum module info virt Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:25:25 ago on Thu 28 Feb 2019 09:53:48 PM EST. Name : virt Stream : 8.0.0 Version : 820190227090827 Context : 9edba152 ** Profiles : common ** ** Default profiles : default ** Repo : fast_train Summary : Virtualization module Description : A virtualization module Artifacts : SLOF-0:20180702-3.git9b7ab2f.module+el8+2717+98011079.noarch ...... Actual results: It shows the 'Default profiles' is 'default' which do not exists, it should be "common" Expected results: The 'Profiles' and 'Default profiles' both should be 'common' Additional info: For the slow train virt: Name : virt Stream : rhel Version : 820190226174025 Context : 9edba152 Profiles : common [d] Default profiles : common Repo : beaker-AppStream Summary : Virtualization module Description : A virtualization module
Can't tell if this is due to how the module is defined or if this is a dnf issue. Assigning for further investigation/triage.
This is how it works: module defines a bunch of profiles, but they don't have any special meaning (as far as I can tell). There was this concept of a profile called 'Default', but it was dropped in favor of using one with no special meaning. In this case, 'common' profile. Then, libmodulemd [1] has a list of modules with the information about what profile should be used as the default. This is consumed by dnf. For virt:rhel, is the 'common' profile. The problem is: libmodulemd doesn't have a definition for layered products. I opened a ticket about this: https://projects.engineering.redhat.com/browse/RCM-52468 [1] https://code.engineering.redhat.com/gerrit/gitweb?p=redhat-module-defaults.git;a=blob;f=virt.yaml;h=575e82d032d50d7d4967cfe99a8defc9726d23c4;hb=refs/heads/rhel-8.0
The repository is suppose to be working with a default profile set. $ "dnf module install virt:8.0" should work.
Checked on latest module for different streams including: 8.0.0.z rhel; 8.1.0 rhel; 8.0.0.z rhel av; 8.0.1 rhel-av; 8.1.0 rhel-av; The module info shows for profiles info is correct for all the streams: ... Profiles : common [d] Default profiles : common ... And the module can be installed without specify the profile name as in comment 3.
Check on latest virt:8.1 module: # yum module info virt:8.1 ...... Name : virt Stream : 8.1 Version : 8010020190827203619 Context : cdc1202b Architecture : x86_64 Profiles : common [d] Default profiles : common ... And it can be installed without specify the profile name, which is expected, set the bug to be verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3723