Bug 1583059

Summary: [modularity] dnf update doesn't update modules, just packages
Product: [Fedora] Fedora Reporter: Karel Srot <ksrot>
Component: dnfAssignee: rpm-software-management
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
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:
: 1583062 (view as bug list) Environment:
Last Closed: 2018-11-22 18:06: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 Karel Srot 2018-05-28 07:55:57 UTC
Description of problem:

Having ModuleA:f26:1 installed with update to v2 available.

bash-4.4# dnf module list
Last metadata expiration check: 0:02:01 ago on Mon May 28 07:48:23 2018.
modularityABDE
Name                                       Stream                                     Version                                    Profiles                                               
ModuleA                                    f26 [e]                                    2                                          client, default, ...                                   

bash-4.4# dnf module list --installed
Last metadata expiration check: 0:02:06 ago on Mon May 28 07:48:23 2018.
modularityABDE
Name                                      Stream                                    Version                                   Profiles                                                  
ModuleA                                   f26 [e]                                   1                                         client [i], default, ...                                  

After running dnf update the packages are updated but still ModuleA v1 is listed as installed.

bash-4.4# dnf -y update
bash-4.4# dnf module list --installed
Last metadata expiration check: 0:03:00 ago on Mon May 28 07:48:23 2018.
modularityABDE
Name                                      Stream                                    Version                                   Profiles                                                  
ModuleA                                   f26 [e]                                   1                                         client [i], default, ...                                  
bash-4.4# cat /etc/dnf/modules.d/ModuleA.module 
[ModuleA]
name = ModuleA
stream = f26
version = 1
profiles =client
enabled = 1
locked = 0


Version-Release number of selected component (if applicable):
dnf-2.7.5-14
libdnf-0.11.1-3

How reproducible:
always

Steps to Reproduce:
See above

Actual results:
Modules are not updated

Expected results:
Installed modules are updated to their latest versions.

Additional info:

Comment 1 Martin Hatina 2018-07-25 08:55:06 UTC
Version from config was dropped.
https://github.com/rpm-software-management/dnf/pull/1144