Bug 1305356

Summary: dnf groupinstall does not install packages, only marks them
Product: [Fedora] Fedora Reporter: cornel panceac <cpanceac>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: cpanceac, jmracek, jsilhan, mluscon, packaging-team-maint, pnemade, rdieter, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-1.1.7-2.fc23 dnf-1.1.7-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-26 17:58:22 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:
Attachments:
Description Flags
dnf log none

Description cornel panceac 2016-02-07 14:21:16 UTC
Created attachment 1121912 [details]
dnf log

Description of problem:
On a freshly installed and updated F23 x64 i tried:

# dnf groupinstall MATE\ Compiz MAte\ Applications Sound\ and\ Video Office/Productivity Games\ and\ Entertainment LibreOffice 

The outcome was a list of one group and several packages proposed to be marked as installed. But they were not actually installed.

See attachment for details.

Version-Release number of selected component (if applicable):
dnf-1.1.6-2.fc23.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jaroslav Mracek 2016-02-08 13:21:41 UTC
Please could you try to compare list of mandatory packages for a group (dnf group info <group>) with installed packages (dnf repoquery --installed). If all mandatory packages of the group are installed, dnf only marks the group as installed, because there in nothing to install. Thank you very much for your feedback.

Comment 2 Rex Dieter 2016-02-08 14:43:47 UTC
OK, interesting, at least some of these groups of *zero* mandatory packages, including:
Games and Entertainment
Office/Productivity
Sound and Video

Libreoffice, Mate Compiz, Mate Applications all include some without type= specified, do those count as mandatory (or just default)?

Comment 3 cornel panceac 2016-02-09 07:21:25 UTC
Hi, this is not easy to do because i've already installed those packages. On the other hand, having groups with no mandatory packages makes no sense to me. And the question reains, why some packages are 'marked' as installed but not actualy installed.

Comment 4 Honza Silhan 2016-02-18 13:15:34 UTC
(In reply to Rex Dieter from comment #2)
> Libreoffice, Mate Compiz, Mate Applications all include some without type=
> specified, do those count as mandatory (or just default)?

yes, non typed packagereq tags are considered as mandatory type.
mandatory type -> always install or fail
default type -> always install, if some deps cannot be satisfied ignore them
optional type -> install with ``--with-optional` switch, if some deps cannot be satisfied ignore them

From "Mate Applications" I get all these packages into transaction. "Sound and Video" contain just optional packages (don't know the reason).

I believe that bug report is about skipping the default packages that are not installed, which deps cannot be satisfied but still shown as marked as installed. This issue is fixed in this PR [1].

[1] https://github.com/rpm-software-management/dnf/pull/444

Comment 5 Fedora Update System 2016-02-25 13:53:37 UTC
dnf-plugins-core-0.1.17-1.fc23 dnf-1.1.7-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1

Comment 6 Fedora Update System 2016-02-25 13:56:28 UTC
dnf-plugins-core-0.1.17-1.fc22 dnf-1.1.7-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075

Comment 7 Fedora Update System 2016-03-09 17:19:52 UTC
dnf-1.1.7-2.fc23 dnf-plugins-core-0.1.17-1.fc23 libsolv-0.6.19-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1

Comment 8 Fedora Update System 2016-03-09 17:21:40 UTC
dnf-1.1.7-2.fc22 dnf-plugins-core-0.1.17-1.fc22 libsolv-0.6.19-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075

Comment 9 Fedora Update System 2016-03-10 16:53:04 UTC
dnf-1.1.7-2.fc22, dnf-plugins-core-0.1.17-1.fc22, libsolv-0.6.19-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075

Comment 10 Fedora Update System 2016-03-10 16:54:38 UTC
dnf-1.1.7-2.fc23, dnf-plugins-core-0.1.17-1.fc23, libsolv-0.6.19-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1

Comment 11 Fedora Update System 2016-03-13 23:55:03 UTC
dnf-1.1.7-2.fc23, dnf-plugins-core-0.1.17-1.fc23, libsolv-0.6.19-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-03-19 12:16:10 UTC
dnf-1.1.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c030d24231

Comment 13 Fedora Update System 2016-03-20 03:58:00 UTC
dnf-1.1.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c030d24231

Comment 14 Fedora Update System 2016-03-26 17:57:49 UTC
dnf-1.1.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.