Bug 1684351 - module info shows the 'Default profiles' is 'default', but it should be 'common'
Summary: module info shows the 'Default profiles' is 'default', but it should be 'common'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: virt-80-module
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Danilo de Paula
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-01 03:31 UTC by yalzhang@redhat.com
Modified: 2020-11-14 06:35 UTC (History)
7 users (show)

Fixed In Version: virt:8.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 07:13:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3723 0 None None None 2019-11-06 07:13:56 UTC

Description yalzhang@redhat.com 2019-03-01 03:31:00 UTC
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

Comment 1 Jeff Nelson 2019-03-01 16:12:43 UTC
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.

Comment 2 Danilo de Paula 2019-03-01 17:10:52 UTC
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

Comment 3 Danilo de Paula 2019-04-15 21:13:34 UTC
The repository is suppose to be working with a default profile set.

$ "dnf module install virt:8.0" should work.

Comment 4 yalzhang@redhat.com 2019-08-02 07:42:02 UTC
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.

Comment 7 yalzhang@redhat.com 2019-08-30 06:21:17 UTC
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.

Comment 9 errata-xmlrpc 2019-11-06 07:13:36 UTC
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


Note You need to log in before you can comment on or make changes to this bug.