Project

General

Profile

Bug #28909

[RHEL 8.1 client - libdnf] All packages are not getting updated after click on "Update All Packages"

Added by Partha Aji 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Have a RHEL 8.1 client registered to Satellite 6.6, go to Hosts => Content Hosts => select RHEL 8.1 client => tab Packages, choose Applicable and click on "Update All Packages"

First run: 7 packages out of 25 got updated, foreman task Actions::Katello::Host::Package::Update finished successfully.

Package profile for the client didn't get updated, still see 25 Applicable packages, yum check-update is showing 18 available updates.

Second run: Clicked on "Update All Packages", foreman task Actions::Katello::Host::Package::Update finished successfully again, very quickly, looks like nothing was updated on the client at all. yum check-update returns again 18 available updates.

Checking which message is sent to katello-agent:

while true; do cp /var/lib/gofer/messaging/pending/katello/* tmp; sleep 0.0001; done

And then click on Update All Packages, got following file, during second run:

  1. cat 1576069770-369455-0000.json | json_reformat {
    "data": {
    "consumer_id": "a16dae10-1a86-4feb-95b6-762915d199cb",
    "task_id": "7dea4867-54db-4005-8064-3ddfda435680"
    },
    "pam": null,
    "replyto": "pulp.task",
    "request": {
    "args": [
    [ {
    "type_id": "rpm",
    "unit_key": {

    }
    }
    ], {
    "all": true,
    "importkeys": true
    }
    ],
    "classname": "Content",
    "cntr": [
    [

    ],
    {
    }
    ],
    "kws": {

    },
    "method": "update"
    },
    "routing": [
    null,
    "pulp.agent.a16dae10-1a86-4feb-95b6-762915d199cb"
    ],
    "secret": "5df0cca51ca0521f66db0567",
    "sn": "2e5026a8-e8a4-4a78-b812-ebf79c07f5f8",
    "version": "2.0"
    }

How reproducible: 100 %

Steps to Reproduce:
1. Provisioned RHEL 8.1 trough Satellite 6.6
2. Clock on Update All Packages, task finished successfully, however only 7 packages out of 25 got updated and package profile for the client did not get updated on Satellite side, task Actions::Katello::Host::UploadProfiles finished sucessfully
3.

Actual results:

First run of Update All Packages on RHEL 8.1 client updated only 7 packages out of 25, package profile on Satellite didn't get updated. Second run of Update All Packages didn't update any package.

Expected results:

"Update All Packages" updates all packages on RHEL 8.1 :)

Note:

Checking codefix of bz1713417 : https://github.com/Katello/katello-host-tools/pull/98/files makes a different condition to call

lib.upgrade(patterns)

But in case of "Update All Packages", both patterns and advisories are empty lists. Removing the "if patterns:" condition and letting lib.upgrade(patterns) to be executed every time, packages are updated.

Associated revisions

Revision 011a2308 (diff)
Added by Partha Aji 4 months ago

Fixes #28909 - Enabled libdnf update all (#106)

  • Fixes #28909 - Enabled libdnf update all

The katello agent for libdnf based systems was ignoring the "update all
packages" call. It would see no patterns and not execute the update.
This commit fixes that by running an update all on empty pattern set.

  • Refs #28909 - Enabled libdnf update all

History

#1 Updated by Partha Aji 4 months ago

  • Category set to Tooling
  • Subject changed from [RHEL 8.1 client] All packages are not getting updated after click on "Update All Packages" to [RHEL 8.1 client - libdnf] All packages are not getting updated after click on "Update All Packages"

#2 Updated by Partha Aji 4 months ago

  • Bugzilla link set to 1782352

#3 Updated by The Foreman Bot 4 months ago

  • Assignee set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-host-tools/pull/106 added

#4 Updated by Partha Aji 4 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by John Mitsch 4 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.15.0

#6 Updated by Jonathon Turel 3 months ago

  • Category changed from Tooling to Client/Agent

Also available in: Atom PDF