RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2014103 - anaconda writes incorrect yum.conf entry with repo --includepkgs option
Summary: anaconda writes incorrect yum.conf entry with repo --includepkgs option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Radek Vykydal
QA Contact: Release Test Team
Sagar Dubewar
URL:
Whiteboard:
: 1879626 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-14 13:36 UTC by Steve Traylen
Modified: 2023-12-15 20:14 UTC (History)
10 users (show)

Fixed In Version: anaconda-33.16.8.6-1.el8
Doc Type: Bug Fix
Doc Text:
.The installer now adds configuration options correctly into the yum repo files Previously, the installer did not add configuration options correctly into yum repo files while including and excluding packages from additional installation repositories. With this update, yum repo files are created correctly. As a result, using the `--excludepkgs=` or `--includepkgs=` options in the `repo` kickstart command now excludes or includes the specified packages during installation as expected.
Clone Of:
: 2158210 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:15:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-99830 0 None None None 2021-10-14 13:37:00 UTC
Red Hat Issue Tracker RTT-5092 0 None None None 2023-01-05 20:43:58 UTC
Red Hat Issue Tracker RTT-5093 0 None None None 2023-01-05 20:44:04 UTC
Red Hat Product Errata RHBA-2023:2748 0 None None None 2023-05-16 08:15:46 UTC

Description Steve Traylen 2021-10-14 13:36:39 UTC
Description of problem:

A kickstart file line such as 

   repo --name="CCOS" --baseurl http://linuxsoft.example.org/cern/centos/8/x86_64 --includepkgs=foo


creates a yum repo with configuration.


   [CCOS]
   baseurl=http://linuxsoft.example.org/cern/centos/8/x86_64
   include=foo


That `include` parameter to dnf is not correct and it should be `includepkgs`




Version-Release number of selected component (if applicable):
anaconda-33.16.4.15-1.el8.0.2.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. use `repo --name="CCOS" --baseurl http://linuxsoft.example.org/cern/centos/8/x86_64 --includepkgs=foo`
2. All packages from CCOS repo will be installable
3.

Actual results:
All packages from CCOS repo will be installable.


Expected results:
Only exactly the `foo` package should be installable.


Additional info:

From yum.conf manpage - dnf-4.4.2-11.el8.noarch, yum-4.4.2-11.el8.noarch


excludepkgs
              list

Exclude  packages  of  this  repository,  specified  by a name or a glob
and separated by a comma, from all operations.


and 

includepkgs
       list

Include  packages of this repository, specified by a name or a glob and
separated by a comma, in all operations.  Inverse of excludepkgs, DNF will
exclude any package in the repository that doesn't match this list.


The include or exclude is written here:

https://github.com/rhinstaller/anaconda/blob/rhel-8/pyanaconda/payload/dnf/payload.py#L2029

so in fact both the include and exclude are incorrect as it should be
includepkgs or excludepkgs in yum.conf however I believe that 'exclude'
on it's own is still accepted by dnf.

Comment 3 Radek Vykydal 2023-01-04 14:36:29 UTC
(In reply to Vendula Poncova from comment #1)
> This issue was fixed upstream during the modularization of the DNF payload.
> We track the RHEL 8 and 9 bug also here:
> https://github.com/rhinstaller/kickstart-tests/issues/670

PR with the proposed fix:
https://github.com/rhinstaller/anaconda/pull/4488
makes the kickstart test (repo-include) pass.

Comment 7 Jan Stodola 2023-01-13 16:24:59 UTC
Checked that anaconda-33.16.8.6-1.el8 is in nightly compose RHEL-8.8.0-20230113.0

Moving to VERIFIED

Comment 9 Jan Stodola 2023-02-02 12:00:55 UTC
*** Bug 1879626 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2023-05-16 08:15:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2748


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