Bug 1939975

Summary: 'dnf offline-upgrade' does not support --advisory properly
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: dnf-plugins-coreAssignee: Jan Kolarik <jkolarik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: amatej, daniel.mach, dmach, jkolarik, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, praiskup, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.4.0-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-08 02:36:23 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:

Description Stephen Gallagher 2021-03-17 11:33:59 UTC
Description of problem:
Running

Version-Release number of selected component (if applicable):
dnf-4.6.0-1.fc34.noarch
libdnf-0.58.0-1.fc34.x86_64


How reproducible:
Every time

Steps to Reproduce:
1. sudo dnf offline-upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-303f6623fa download

Actual results:
Attempts to download every package from updates-testing.

Expected results:
Should only download the packages from the specified advisory (and necessary dependencies).


Additional info:

Comment 1 Ben Cotton 2022-05-12 16:30:28 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ben Cotton 2022-08-09 13:11:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 3 Jan Kolarik 2022-11-01 15:36:29 UTC
Thanks to @TarcisioLOliveira from the community we have a fix for this: 

Fix PR:   https://github.com/rpm-software-management/dnf-plugins-core/pull/465
Docs PR:  https://github.com/rpm-software-management/dnf/pull/1859
Tests PR: https://github.com/rpm-software-management/ci-dnf-stack/pull/1172

Comment 4 Fedora Update System 2023-04-05 13:45:26 UTC
FEDORA-2023-1b65a60b93 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1b65a60b93

Comment 5 Fedora Update System 2023-04-06 02:52:18 UTC
FEDORA-2023-1b65a60b93 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1b65a60b93`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1b65a60b93

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-04-08 02:36:23 UTC
FEDORA-2023-1b65a60b93 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.