Bug 1584681

Summary: [install_specs] install_specs() based package exclude not working/working differently
Product: [Fedora] Fedora Reporter: Martin Kolman <mkolman>
Component: dnfAssignee: rpm-software-management
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dmach, jmracek, jrohel, mhatina, mkolman, 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-09-24 17:37:45 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
packaging.log from the installation run
none
anaconda.log from the installation run
none
add DNF debug solver data none

Description Martin Kolman 2018-05-31 12:42:54 UTC
NOTE: This bug report concerns the install_specs branch of DNF, where the API Anaconda needs for module installation support is being stabilized.

(https://github.com/mhatina/dnf/tree/install_specs)


Description of problem:
there is a change in behavior in excluding packages between current Rawhide Anaconda/DNF and the install_specs branch DNF & Anaconda that makes use of it


Version-Release number of selected component (if applicable):
commit 1263ddc0ebf7bcc6496d90225ddaca4fdf47c1f1 (HEAD -> install_specs, mhatina/install_specs)
Author: Martin Hatina <mhatina>
Date:   Tue May 29 13:37:27 2018 +0200


How reproducible:
always

Steps to Reproduce:
1. attempt an installation with the following %packages section:

%packages
@^xfce-desktop-environment   

# (1) Test that you can remove a package that's part of a group
@c-development
-valgrind
  
# (2) Test that you can add and then remove the same package.
qemu-kvm
-qemu-kvm
 
# (3) Test that you can add packages with a glob.
kacst*
  
# (4) Test that you can remove packages with a glob.
-ibus*
%end

This basically translates to:

Install environment xfce-desktop-environment & group @c-development & packages qemu-kvm + kcast*.

Exclude packages qemu-kvm, valgrind, ibus*.


2. check if the packages are excluded correctly

Actual results:
The qemu-kvm package is not installed (this is correct).

The valgrind package as well as many ibus* packages are installed.


Expected results:
The qemu-kvm package is not installed.
The valgrind package as well as any ibus* packages are not installed.

Comment 1 Martin Kolman 2018-05-31 12:59:23 UTC
Created attachment 1446279 [details]
packaging.log from the installation run

Comment 2 Martin Kolman 2018-05-31 12:59:49 UTC
Created attachment 1446280 [details]
anaconda.log from the installation run

Comment 3 Martin Kolman 2018-06-01 13:07:23 UTC
Created attachment 1446692 [details]
add DNF debug solver data

Comment 4 Jan Kurik 2018-08-14 10:00:05 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 5 Jaroslav Mracek 2018-09-24 17:37:45 UTC
I believe that the problem was solved in dnf-3.5.1