Bug 1540165

Summary: [modularity] info prints incorrect messages for locked modules
Product: [Fedora] Fedora Reporter: Eva Mrakova <emrakova>
Component: dnfAssignee: Martin Hatina <mhatina>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 28CC: dmach, mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-25 06:30:47 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-01-30 12:09:33 UTC
Description of problem:
when there are multiple streams of a module and one of them is locked, 
'dnf module info' for non-locked streams prints incorrect output

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

How reproducible:
always

Steps to Reproduce:
1. create two streams of a module (e.g. ModuleA:f26, f27)
2. enable and lock one of them (e.g. f26)
3. run info for non-locked one: 
   dnf module info ModuleA:f27

Actual results:
# dnf module list ModuleA    
<snip>
Name            Stream          Version         Profiles                        
ModuleA         f26 [e]         2 [l]           client [i], default, ...        
ModuleA         f27             1               client, default, ...            
# dnf module info ModuleA:f27
<snip>
'ModuleA:f27' is locked to version: 2
Error: No such module: ModuleA:f27

Expected results:
info for ModuleA:f27 is printed correctly

Comment 2 Fedora End Of Life 2018-02-20 15:32:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 4 Martin Hatina 2018-07-25 06:30:47 UTC
Locking of modules was dropped.