Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1829866 - Unable to update all packages for RHEL 8 clients via katello-agent
Summary: Unable to update all packages for RHEL 8 clients via katello-agent
Keywords:
Status: CLOSED DUPLICATE of bug 1782352
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Jonathon Turel
QA Contact: vijsingh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-30 13:53 UTC by Hao Chang Yu
Modified: 2023-12-15 17:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-14 20:49:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29672 0 Normal Duplicate Unable to update all packages for RHEL 8 clients via katello-agent 2020-10-05 07:01:37 UTC

Description Hao Chang Yu 2020-04-30 13:53:19 UTC
Description of problem:
Getting the following error when trying to upgrade all packages(dnf upgrade) for a RHEL 8 client using katello-agent:

2020-04-30T13:20:14Z DDEBUG timer: sack setup: 2314 ms
2020-04-30T13:20:14Z DEBUG Completion plugin: Generating completion cache...
2020-04-30T13:20:14Z DEBUG Completion plugin: Generating completion cache...
2020-04-30T13:20:14Z DDEBUG Getting group metadata
2020-04-30T13:20:14Z DDEBUG Adding group file from repository: rhel-8-for-x86_64-appstream-rpms
2020-04-30T13:20:14Z DDEBUG Adding group file from repository: rhel-8-for-x86_64-baseos-rpms
2020-04-30T13:20:15Z DDEBUG Adding group file from repository: satellite-tools-6.6-for-rhel-8-x86_64-rpms
2020-04-30T13:20:15Z DDEBUG timer: loading comps: 72 ms
2020-04-30T13:20:15Z DEBUG Completion plugin: Generating completion cache...
2020-04-30T13:20:15Z CRITICAL Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/plugin.py", line 104, in _caller
    getattr(plugin, method)()
  File "/usr/lib/python3.6/site-packages/dnf-plugins/product-id.py", line 59, in transaction
    if len(self.base.transaction) == 0:
TypeError: object of type 'NoneType' has no len()


Seems like there is no transaction ran when calling update without patterns:

In "/usr/lib/python3.6/site-packages/katello/agent/pulp/libdnf.py"

    def update(self, patterns=(), advisories=()):
            <snip>
            if patterns:   <================ This condition is skipping the upgrade when no patterns are provided.
                lib.upgrade(patterns)

            if self.commit:
                lib.do_transaction()


I think it is the regression of the following fix:

https://bugzilla.redhat.com/show_bug.cgi?id=1713417
https://github.com/Katello/katello-host-tools/pull/98


Steps to Reproduce:
1. Go to Web UI -> Hosts -> Content Hosts -> choose a RHEL 8 client -> Packages -> Applicable -> Click "Update All Packages"
2. ssh to the RHEL 8 client, run "tail -f /var/log/dnf.log" to observe the error.


Actual results:
No packages are updated

Expected results:
All packages are updated

Comment 4 Jonathon Turel 2020-05-14 20:49:06 UTC
Closing as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1782352

*** This bug has been marked as a duplicate of bug 1782352 ***


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