Bug 1729170

Summary: On Fedora Rawhide, the varnish module does not have the default stream and profile set.
Product: [Fedora] Fedora Reporter: Lukas Ruzicka <lruzicka>
Component: varnishAssignee: Ingvar Hagelund <ingvar>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 31CC: ingvar, luhliari, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-16 12:45:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Ruzicka 2019-07-11 13:36:03 UTC
Description of problem:
On Fedora Rawhide, the varnish module does not have the default stream and profile set. Therefore, DNF will not install the module using `dnf module install varnish`. It will only enable it. Since modules should be able to install using the aforementioned command, I consider this a bug.

How reproducible:
Always

Steps to reproduce:
1. dnf module list varnish

Expected results:
Modules should have the defaults set.

Additional info:
If you did not set the defaults on purpose, please share the reason and confirm that explicitely.

Comment 1 Lukas Ruzicka 2019-07-23 14:01:46 UTC
Default streams are no longer required, but default profiles are. Please, for every stream set a default profile. Thank you.

Comment 2 Lukas Ruzicka 2019-07-23 15:31:41 UTC
The yaml file shows that common is the default profile. I will check if it is correct in future composes.

Comment 3 Lukas Ruzicka 2019-07-31 15:07:37 UTC
The varnish module still does not correspond to the yaml file in fedora-module-defaults.

In the latest compose, it is defined as:

===
Last metadata expiration check: 0:04:05 ago on Wed 31 Jul 2019 05:02:07 PM CEST.
Fedora - Modular Rawhide - Developmental packages for the next Fedora release
Name    Stream Profiles Summary           
varnish 6      default  Varnish HTTP cache

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
===

but the yaml file looks like this:

===
document: modulemd-defaults
version: 1
data:
    module: varnish
    profiles: 
        6: [common]
===

Comment 4 Ben Cotton 2019-08-13 17:11:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 5 Ben Cotton 2019-08-13 18:51:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 6 Stephen Gallagher 2019-10-29 13:50:07 UTC
Lukas, It looks like it may have been displaying cached data. Can you run `dnf clean all` and retry? I can confirm that the correct default definition is present in https://dl.fedoraproject.org/pub/fedora/linux/updates/31/Modular/x86_64/repodata/57e36707b6ccbe1540b7d61393c0c6fddc22fcf30acb7c2d1d613be71ea1fb03-modules.yaml.gz

If it's still not displaying properly, there's a bug in DNF and this should be reassigned to that team.

Comment 7 Lukas Ruzicka 2020-04-16 07:31:43 UTC
I believe that this has become irrelevant. I am sorry for the late reaction, discovered this just now.