Bug 1872586 - Environment upgrade fails when one of its groups is removed
Summary: Environment upgrade fails when one of its groups is removed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Pavla Kratochvilova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-26 07:06 UTC by Pavla Kratochvilova
Modified: 2020-11-05 08:50 UTC (History)
9 users (show)

Fixed In Version: dnf-4.4.0-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-05 08:50:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavla Kratochvilova 2020-08-26 07:06:45 UTC
Description of problem:
When one group of an environment is removed, upgrade of the environment fails with "Error: No group marked for upgrade" even though there are other groups for upgrade.


Version-Release number of selected component (if applicable):
dnf-4.2.23-1.fc31.noarch
libdnf-0.48.0-1.fc31.x86_64
libcomps-0.1.15-1.fc31.x86_64


How reproducible:
always


Steps to Reproduce:
1. dnf group install "Web Server"
1. dnf group remove "Core"
1. dnf group upgrade "Web Server"


Actual results:
Module or Group 'Core' is not installed.
Error: No group marked for upgrade.


Expected results:
Upgrade all the other groups that are part of the environment.

Comment 1 Pavla Kratochvilova 2020-09-04 07:10:31 UTC
The description is not entirely correct. All mandatory groups must be removed from the environment to reproduce the bug.

PR: https://github.com/rpm-software-management/dnf/pull/1658
Tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/888

Comment 2 Ben Cotton 2020-11-03 17:17:55 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.


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