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 1656314 - [RFE] Downloading additional metadata from repository via "context" API
Summary: [RFE] Downloading additional metadata from repository via "context" API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libdnf
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.0
Assignee: Jaroslav Rohel
QA Contact: Marek Blaha
URL:
Whiteboard:
: 1640220 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-05 08:48 UTC by Jaroslav Rohel
Modified: 2023-09-14 04:43 UTC (History)
10 users (show)

Fixed In Version: libdnf-0.22.5-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 01:42:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Rohel 2018-12-05 08:48:36 UTC
Newly created libdnf plugins require to download additional metadata files from repositories.

Similar functionality is already used by DNF plugins (Python). So public API was created in PR https://github.com/rpm-software-management/libdnf/pull/635 as reaction to BZ https://bugzilla.redhat.com/show_bug.cgi?id=1651468 . 

This is request for similar functionality in the "context" part of libdnf. It is needed for libdnf plugins (and microdnf, PackageKit, ...).
The requested functionality will also solve the request for decompression of downloaded files https://bugzilla.redhat.com/show_bug.cgi?id=1640220 .

Comment 1 Jaroslav Rohel 2018-12-05 10:13:40 UTC
PR https://github.com/rpm-software-management/libdnf/pull/652

Comment 2 Jaroslav Rohel 2018-12-05 11:10:08 UTC
*** Bug 1640220 has been marked as a duplicate of this bug. ***

Comment 4 Karel Srot 2018-12-12 14:07:45 UTC
Jardo,
do you have by any chance example of such plugin that we could incorporate into a test case?

Comment 6 Daniel Mach 2018-12-13 08:11:31 UTC
Scenario for the test case (what productid plugin does actually):
* create a repo with 'productid' certificate attached as 'productid' metadata type
* plugin registers 'productid' metadata type for download -> it's present on downloading the repo
* plugin can obtain path to the productid file in repo cache
* plugin can read uncompressed content of the productid file

Comment 8 Daniel Mach 2018-12-13 14:38:15 UTC
Requesting blocker+ because this is a requirement from the Subscription Manager team
and the feature is essential for rhsm plugin to work properly with productid.

If this doesn't get implemented, PackageKit and microdnf won't be able to work with subscriptions correctly.

Comment 9 Whitney Chadwick 2018-12-17 22:07:15 UTC
Set blocker+ per RHEL 8 blocker approval team

Comment 12 Karel Srot 2019-02-05 10:03:18 UTC
Hi John,
could you please comment whether the added feature works fine for subscription-manager or not? Do you have any relevant test results eventually?

Comment 13 Jiri Hnidek 2019-02-06 13:03:48 UTC
Hi Karel,
I have created PR for subscription-manager (our libdnf product-id plugin) usingnew API: https://github.com/candlepin/subscription-manager/pull/2025

Comment 16 Red Hat Bugzilla 2023-09-14 04:43:20 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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