Bug 1809565 - Can't undo a group operation
Summary: Can't undo a group operation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 34
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-03 12:09 UTC by Kamil Páral
Modified: 2022-05-13 10:59 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-13 10:59:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2020-03-03 12:09:49 UTC
Description of problem:
If I install a group and then want to undo the operation, the undo action fails, because it doesn't distinguish between packages and groups.


[kparal@f31 ~]$ sudo dnf group install virtualization
Last metadata expiration check: 0:14:47 ago on Tue 03 Mar 2020 12:50:21 PM CET.
Dependencies resolved.
==============================================================
 Package                 Arch   Version         Repo     Size
==============================================================
Installing group/module packages:
 virt-install            noarch 2.2.1-2.fc31    fedora   64 k
 virt-manager            noarch 2.2.1-2.fc31    fedora  543 k
 virt-viewer             x86_64 8.0-3.fc31      fedora  404 k
Installing dependencies:
 autogen-libopts         x86_64 5.18.16-3.fc31  fedora   75 k
 gnutls-dane             x86_64 3.6.11-1.fc31   updates  26 k
 gnutls-utils            x86_64 3.6.11-1.fc31   updates 343 k
 libgovirt               x86_64 0.3.6-1.fc31    updates  85 k
 libvirt-bash-completion x86_64 5.6.0-5.fc31    updates  12 k
 libvirt-client          x86_64 5.6.0-5.fc31    updates 343 k
 python3-libvirt         x86_64 5.6.0-1.fc31    fedora  294 k
 virt-manager-common     noarch 2.2.1-2.fc31    fedora  1.0 M
Installing Groups:
 Virtualization                                              

Transaction Summary
==============================================================
Install  11 Packages

Total download size: 3.1 M
Installed size: 14 M
Is this ok [y/N]: y
Downloading Packages:
...
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                      1/1 
...

Installed:
  autogen-libopts-5.18.16-3.fc31.x86_64                       
  gnutls-dane-3.6.11-1.fc31.x86_64                            
  gnutls-utils-3.6.11-1.fc31.x86_64                           
  libgovirt-0.3.6-1.fc31.x86_64                               
  libvirt-bash-completion-5.6.0-5.fc31.x86_64                 
  libvirt-client-5.6.0-5.fc31.x86_64                          
  python3-libvirt-5.6.0-1.fc31.x86_64                         
  virt-install-2.2.1-2.fc31.noarch                            
  virt-manager-2.2.1-2.fc31.noarch                            
  virt-manager-common-2.2.1-2.fc31.noarch                     
  virt-viewer-8.0-3.fc31.x86_64                               

Complete!

[kparal@f31 ~]$ sudo dnf history undo last
Last metadata expiration check: 0:15:12 ago on Tue 03 Mar 2020 12:50:21 PM CET.
Undoing transaction 17, from Tue 03 Mar 2020 01:05:17 PM CET
    Install gnutls-dane-3.6.11-1.fc31.x86_64            @updates
    Install gnutls-utils-3.6.11-1.fc31.x86_64           @updates
    Install libgovirt-0.3.6-1.fc31.x86_64               @updates
    Install libvirt-bash-completion-5.6.0-5.fc31.x86_64 @updates
    Install libvirt-client-5.6.0-5.fc31.x86_64          @updates
    Install autogen-libopts-5.18.16-3.fc31.x86_64       @fedora
    Install python3-libvirt-5.6.0-1.fc31.x86_64         @fedora
    Install virt-install-2.2.1-2.fc31.noarch            @fedora
    Install virt-manager-2.2.1-2.fc31.noarch            @fedora
    Install virt-manager-common-2.2.1-2.fc31.noarch     @fedora
    Install virt-viewer-8.0-3.fc31.x86_64               @fedora
    Install @virtualization                             
No package @virtualization installed.
Error: no package matched


Version-Release number of selected component (if applicable):
dnf-4.2.18-1.fc31.noarch

How reproducible:
tried several times, happens every time

Steps to Reproduce:
1. install a group with some packages
2. run "dnf history undo last"

Actual results:
A group operation can't be undone

Expected results:
A group operation can be undone in the same way as standard package operations

Comment 1 Ben Cotton 2020-11-03 17:21:13 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
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
Fedora 'version' of '31'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Kamil Páral 2020-11-04 13:09:28 UTC
Still the same problem in F33.

dnf-4.2.23-2.fc33.noarch

Comment 3 Ben Cotton 2021-02-09 16:23:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 4 Ben Cotton 2022-05-12 16:29:42 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 5 Kamil Páral 2022-05-13 10:59:14 UTC
This is now fixed with dnf-4.12.0-1.fc36.noarch


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