Bug 1583059 - [modularity] dnf update doesn't update modules, just packages
Summary: [modularity] dnf update doesn't update modules, just packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 27
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1478068
TreeView+ depends on / blocked
 
Reported: 2018-05-28 07:55 UTC by Karel Srot
Modified: 2018-11-22 18:06 UTC (History)
5 users (show)

Fixed In Version: dnf-4.0.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1583062 (view as bug list)
Environment:
Last Closed: 2018-11-22 18:06:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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