Bug 1547006

Summary: [modularity] list - non-visible info about installed and default profiles
Product: [Fedora] Fedora Reporter: Eva Mrakova <emrakova>
Component: dnfAssignee: rpm-software-management
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 27CC: dmach, jmracek, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.0.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-22 18:22:52 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:
Bug Depends On:    
Bug Blocks: 1478068    

Description Eva Mrakova 2018-02-20 10:41:17 UTC
Description of problem:
when a module has more than two profiles, it is not possible to find out
reliable info about installed profiles; only the first two profiles are
always listed. 
Also, info about default profiles is not shown in the 'list' output
(it can be found only in .defaults cfg file).

Note: 
* wider terminal or stdout redirection to a file does not help, the 'list'
  output is always the same
* --installed option does not help
* only 'list' shows info about installed and default profiles so it's not
  possible to use 'profile' or 'info' subcommands instead

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. create a module with multiple profiles
   (e.g. ModuleA/client, default, devel, minimal, server)
2. enable the module, install a profile that is not visible in the
   output of 'dnf module list ModuleA'
3. run 'dnf module list ModuleA' again

Actual results:
# dnf module list ModuleA
<snip>
Name             Stream           Version          Profiles                     
ModuleA          f26 [e]          2                client, default, ...         
# dnf module install ModuleA/minimal
<snip>
Complete!
# dnf module list ModuleA
<snip>
Name             Stream           Version          Profiles                     
ModuleA          f26 [e]          2                client, default, ...   


Expected results:
it is possible to find out installed and default profiles in the 'list' output

Comment 1 Martin Hatina 2018-07-24 13:13:29 UTC
Fixed by https://github.com/rpm-software-management/dnf/pull/1144