Bug 2078108 - package mate-desktop-configs-1.26.0-4.fc35.noarch conflicts with systemd-oomd-defaults
Summary: package mate-desktop-configs-1.26.0-4.fc35.noarch conflicts with systemd-oomd...
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: comps
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wolfgang Ulbrich
QA Contact:
URL:
Whiteboard:
: 2082901 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-23 17:41 UTC by Gary Gatling
Modified: 2023-11-26 10:43 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-03 20:25:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gary Gatling 2022-04-23 17:41:50 UTC
Description of problem:

When trying to update fedora 35 system. Recent update of MATE desktop seems to have a conflict with systemd-oomd-defaults package.


Version-Release number of selected component (if applicable):


mate-desktop-configs-1.26.0-4.fc35.noarch

How reproducible:


Steps to Reproduce:
1. Try to update system with mate-desktop via "dnf update"


2. Notice there is a conflict.
3. adding "--best --allowerasing" wants to remove systemd-oomd-defaults. Which seems unsafe.

Actual results:


[root@computron2 ~]# dnf update
Last metadata expiration check: 3:18:23 ago on Sat 23 Apr 2022 10:12:19 AM EDT.
Dependencies resolved.

 Problem 1: package mate-desktop-configs-1.26.0-4.fc35.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-249.11-1.fc35.noarch
  - cannot install the best update candidate for package systemd-oomd-defaults-249.11-1.fc35.noarch
  - cannot install the best update candidate for package mate-desktop-configs-1.26.0-2.fc35.noarch
 Problem 2: problem with installed package systemd-oomd-defaults-249.11-1.fc35.noarch
  - package mate-desktop-configs-1.26.0-4.fc35.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-249.11-1.fc35.noarch
  - package mate-desktop-1.26.0-4.fc35.x86_64 requires mate-desktop-configs = 1.26.0-4.fc35, but none of the providers can be installed
  - cannot install the best update candidate for package mate-desktop-1.26.0-2.fc35.x86_64
================================================================================
 Package                   Arch        Version               Repository    Size
================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 mate-desktop-configs      noarch      1.26.0-4.fc35         updates       11 k
Skipping packages with broken dependencies:
 mate-desktop              x86_64      1.26.0-4.fc35         updates       82 k


Expected results:

Packge would update without conflicts.


Additional info:

Comment 1 Wolfgang Ulbrich 2022-04-23 18:11:29 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=2068699
and https://fedoraproject.org/wiki/Changes/EnableSystemdOomd#Should_spins_that_don.27t_put_processes_in_separate_cgroups_be_excluded_from_this_change.3F
and https://bugzilla.redhat.com/show_bug.cgi?id=1933494
for more infos.
Using systemd-oomd is dangerous for mate-desktop because it can kill the whole X-session because of missing cgroups support.
When system runs out of memory X-session will be kiiled by systemd-oomd, reported by a users in reports.
Mate desktop will step back to original `earlyoom` memory management implementation, which was used before f34 in fedora.

So removing systemd-oomd-defaults will simply disable systemd-oomd unit, and earlyoom service will be installed by the update and is enabled by default.
I've tested the update process several times and it works smoothly.
Maybe a restart is needed.....

Don't worry, everything works as expected and like it should.
Sorry, there was no other way to revert systemd changes for f34.

I will leave this report open to inform other users.

Comment 2 Gary Gatling 2022-04-24 00:19:45 UTC
Thanks so much for thed updated info!

Comment 3 Andre Robatino 2022-05-07 21:50:50 UTC
Problem exists on F36 as well.

Comment 4 Wolfgang Ulbrich 2022-05-07 22:38:14 UTC
Again, please read previous postings.
There is no problem.
Mate desktop use earlyoom.

Comment 5 thedatum+bz 2022-05-08 00:28:49 UTC
Link to the confirmed issue with MATE desktop: https://github.com/mate-desktop/mate-desktop/issues/519

Comment 6 Andre Robatino 2022-05-08 01:18:04 UTC
(In reply to Wolfgang Ulbrich from comment #4)
> Again, please read previous postings.
> There is no problem.
> Mate desktop use earlyoom.

OK, well, after installing earlyoom, the command "dnf groupinstall mate-desktop-environment" STILL wants to install systemd-oomd-defaults and downgrade mate-desktop, mate-desktop-configs and mate-desktop-libs from 1.26.0-5.fc36 to 1.26.0-3.fc36. It's impossible to simultaneously have the mate-desktop-environment group fully installed (including systemd-oomd-defaults) AND have the latest version of all packages.

Comment 7 Andre Robatino 2022-05-08 01:21:37 UTC
Can the mate-desktop-environment group be redefined so as to pull in earlyoom instead of systemd-oomd-defaults?

Comment 8 Wolfgang Ulbrich 2022-05-08 08:46:54 UTC
(In reply to Andre Robatino from comment #7)
> Can the mate-desktop-environment group be redefined so as to pull in
> earlyoom instead of systemd-oomd-defaults?

Thanks for reporting this. I never put systemd-oomd-defaults to mate-desktop-environment group for myself.
I will investigate.

Comment 9 Wolfgang Ulbrich 2022-05-08 11:33:33 UTC
*** Bug 2082901 has been marked as a duplicate of this bug. ***

Comment 10 Andre Robatino 2022-05-08 14:36:45 UTC
I should mention that I periodically rerun the groupinstall command for all installed groups, since the group definitions can change. I don't remember exactly what happened, but I may have initially had earlyoom automatically installed, then after updating and running the groupinstall command again, noticed the conflict. Most people will only run the groupinstall command once and may not notice it.

Comment 11 Wolfgang Ulbrich 2022-05-09 19:53:25 UTC
systemd-oomd-defaults is in core comps group, ihmo systemd maintainer needs to change that.
https://pagure.io/fedora-comps/blob/main/f/comps-f36.xml.in#_640
But i posted it already in another report.
https://bugzilla.redhat.com/show_bug.cgi?id=1933494#c38
Maybe a serparate report against systemd helps?

Comment 12 Zbigniew Jędrzejewski-Szmek 2022-05-10 07:18:46 UTC
(In reply to Wolfgang Ulbrich from comment #11)
> systemd-oomd-defaults is in core comps group, ihmo systemd maintainer needs
> to change that.
> https://pagure.io/fedora-comps/blob/main/f/comps-f36.xml.in#_640
> But i posted it already in another report.
> https://bugzilla.redhat.com/show_bug.cgi?id=1933494#c38
> Maybe a serparate report against systemd helps?

Comps is unfortunately maintained separately. Please open an issue (or a pull request) under the comps repo.

I don't know how to make this work. The docs say:
> 'optional' are not automatic but can be checked
> 'default' are, but can be unchecked in a gui tool

It seems 'default' is too much, but 'optional' not enough. So maybe it'd be necessary to move 'systemd-oomd-defaults'
out of @core into other top-level groups.

Comment 13 Wolfgang Ulbrich 2022-05-10 19:46:17 UTC
@Andre Robatino
Can you please file out another report against comps package group?
To get responsible maintainers involved.
And link it here.

(In reply to Zbigniew Jędrzejewski-Szmek from comment #12)
> (In reply to Wolfgang Ulbrich from comment #11)
> 
> I don't know how to make this work. The docs say:
> > 'optional' are not automatic but can be checked
> > 'default' are, but can be unchecked in a gui tool
> 
> It seems 'default' is too much, but 'optional' not enough. So maybe it'd be
> necessary to move 'systemd-oomd-defaults'
> out of @core into other top-level groups.

Where can i find the docs about comps features?

Comment 14 Andre Robatino 2022-05-10 20:50:14 UTC
(In reply to Wolfgang Ulbrich from comment #13)
> @Andre Robatino
> Can you please file out another report against comps package group?
> To get responsible maintainers involved.
> And link it here.

I'm sorry, I don't know how or where to do that. In https://bugzilla.redhat.com/show_bug.cgi?id=1933494#c38 you were able to exactly reproduce what I see, and you obviously understand it better.

Comment 15 Zbigniew Jędrzejewski-Szmek 2022-05-11 05:26:20 UTC
https://pagure.io/fedora-comps/issues

Comment 16 Wolfgang Ulbrich 2022-05-11 06:03:08 UTC
(In reply to Andre Robatino from comment #14)
> (In reply to Wolfgang Ulbrich from comment #13)
> > @Andre Robatino
> > Can you please file out another report against comps package group?
> > To get responsible maintainers involved.
> > And link it here.
> 
> I'm sorry, I don't know how or where to do that. In
> https://bugzilla.redhat.com/show_bug.cgi?id=1933494#c38 you were able to
> exactly reproduce what I see, and you obviously understand it better.

You're using an email from fedoraproject.org and don't know to file out a new bugreport?

I am so sorry too, i am complete bussy with work, i do not have the time to do this very small work for you.
I mean you're are the person you like to do the groupinstall command very often.....

Comment 17 Wolfgang Ulbrich 2022-05-26 12:30:27 UTC
Ok, reassign this report to comps to fixing the remaining issue.

Dear, comps maintainer currently the groupinstall command generates a conflict betweeen mate-desktop-configs and systemd-oomd-defaults

```
[root@f36 rave]# dnf groupinstall mate-desktop-environment --disablerepo results
Last metadata expiration check: 0:16:37 ago on Mon May  9 20:53:45 2022.
No match for group package "xorg-x11-drv-armsoc"
Dependencies resolved.

 Problem: package mate-desktop-1.26.0-5.fc36.x86_64 requires mate-desktop-configs = 1.26.0-5.fc36, but none of the providers can be installed
  - package mate-desktop-configs-1.26.0-5.fc36.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-250.3-8.fc36.noarch
  - cannot install the best candidate for the job
  - conflicting requests
================================================================================
 Package                    Arch        Version               Repository   Size
================================================================================
Installing group/module packages:
 systemd-oomd-defaults      noarch      250.3-8.fc36          fedora       27 k
Downgrading:
 mate-desktop               x86_64      1.26.0-3.fc36         fedora       82 k
 mate-desktop-configs       noarch      1.26.0-3.fc36         fedora       10 k
 mate-desktop-libs          x86_64      1.26.0-3.fc36         fedora      644 k
Installing Environment Groups:
 MATE Desktop                                                                  
Installing Groups:
 Administration Tools                                                          
 base-x                                                                        
 Core                                                                          
 Dial-up Networking Support                                                    
 Fonts                                                                         
 Guest Desktop Agents                                                          
 Hardware Support                                                              
 Input Methods                                                                 
 MATE                                                                          
 Multimedia                                                                    
 Common NetworkManager Submodules
                                                                               
 Printing Support                                                              
 Standard                                                                      

Transaction Summary
================================================================================
Install    1 Package
Downgrade  3 Packages
```
This is because systemd-oomd-defaults is in comps core group marked as default.
```
  <group>
    <id>core</id>
    <_name>Core</_name>
    <_description>Smallest possible installation</_description>
    <default>false</default>
    <uservisible>false</uservisible>
    <packagelist>
      <packagereq type="mandatory">audit</packagereq>
      <packagereq type="mandatory">basesystem</packagereq>
      <cut>
      <packagereq type="default">systemd-oomd-defaults</packagereq>
      <cut>
    </packagelist>
  </group>
```
What can i do to fix the problem?
IHMO systemd-oomd-defaults should be optional in comps core group or moved to another group, otherwise the option in wiki page for not using systemd-oomd for spins doesn`t work.
https://fedoraproject.org/wiki/Changes/EnableSystemdOomd#Should_spins_that_don.27t_put_processes_in_separate_cgroups_be_excluded_from_this_change.3F

Comment 18 Wolfgang Ulbrich 2022-05-29 12:41:20 UTC
https://pagure.io/fedora-comps/issue/737

Comment 19 Ben Cotton 2022-10-03 20:25:39 UTC
Fixed in https://pagure.io/fedora-comps/pull-request/750

Comment 20 Per Nystrom 2022-12-18 02:11:13 UTC
This does not seem to be fixed.  I am trying this on a freshly-upgraded F35->F36 system that doesn't have MATE and still getting the conflict error:

sudo dnf groupinstall "MATE Desktop" --best --allowerasing
Last metadata expiration check: 1:32:48 ago on Sat 17 Dec 2022 04:34:04 PM PST.
No match for group package "xorg-x11-drv-armsoc"
Error: 
 Problem: package mate-desktop-configs-1.26.0-5.fc36.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-250.8-1.fc36.noarch
  - package mate-desktop-1.26.0-5.fc36.x86_64 requires mate-desktop-configs = 1.26.0-5.fc36, but none of the providers can be installed
  - cannot install the best candidate for the job
(try to add '--skip-broken' to skip uninstallable packages)

I have another F35 system that already has MATE Desktop installed and I can't find a clean path to upgrade:

sudo dnf system-upgrade download --releasever=36
.
.
.
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 mate-desktop-configs              noarch 1.26.0-5.fc36           updates  11 k

sudo dnf system-upgrade download --releasever=36 --best --allowerasing
.
.
.
Error: 
 Problem 1: cannot install the best update candidate for package mate-desktop-configs-1.26.0-4.fc35.noarch
  - problem with installed package mate-desktop-configs-1.26.0-4.fc35.noarch
  - package mate-desktop-configs-1.26.0-5.fc36.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-250.8-1.fc36.noarch
  - cannot install the best candidate for the job
  - mate-desktop-configs-1.26.0-4.fc35.noarch does not belong to a distupgrade repository
 Problem 2: cannot install the best update candidate for package imsettings-gsettings-1.8.3-1.fc35.x86_64
  - problem with installed package imsettings-gsettings-1.8.3-1.fc35.x86_64
  - package imsettings-gsettings-1.8.3-6.fc36.x86_64 obsoletes imsettings-systemd < 1.8.3-6 provided by imsettings-systemd-1.8.3-2.fc36.x86_64
  - cannot install the best update candidate for package imsettings-systemd-1.8.3-1.fc35.x86_64
  - problem with installed package imsettings-systemd-1.8.3-1.fc35.x86_64
  - imsettings-systemd-1.8.3-1.fc35.x86_64 does not belong to a distupgrade repository
  - imsettings-gsettings-1.8.3-1.fc35.x86_64 does not belong to a distupgrade repository
(try to add '--skip-broken' to skip uninstallable packages)

Comment 21 RobbieTheK 2022-12-19 00:48:44 UTC
Confirmed still broken in F36 and F37:

 Problem 1: package mate-desktop-configs-1.26.0-5.fc36.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-250.8-1.fc36.noarch
  - cannot install the best update candidate for package systemd-oomd-defaults-250.8-1.fc36.noarch
  - cannot install the best update candidate for package mate-desktop-configs-1.26.0-3.fc36.noarch
 Problem 2: problem with installed package systemd-oomd-defaults-250.8-1.fc36.noarch
  - package mate-desktop-configs-1.26.0-5.fc36.noarch conflicts with systemd-oomd-defaults provided by systemd-oomd-defaults-250.8-1.fc36.noarch
  - package mate-desktop-1.26.0-5.fc36.x86_64 requires mate-desktop-configs = 1.26.0-5.fc36, but none of the providers can be installed
  - cannot install the best update candidate for package mate-desktop-1.26.0-3.fc36.x86_64
==================================================================================================================================================================================
 Package                                            Architecture                         Version                                      Repository                             Size
==================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 mate-desktop-configs                               noarch                               1.26.0-5.fc36                                updates                                11 k
Skipping packages with broken dependencies:
 mate-desktop                                       x86_64                               1.26.0-5.fc36                                updates                                82 k

Transaction Summary
==================================================================================================================================================================================
Skip  2 Packages

Comment 22 John Hein 2023-03-26 09:53:15 UTC
The conflict with systemd-oom-defaults should likely just be removed.  mate-desktop-configs does not be marked as directly conflicting with systemd-oom-defaults.

One can used mate-desktop with systemd-oom or with earlyoom, or for that matter, no out-of-memory manager at all.  And that's just the run-time decision.  Whether either or both systemd-oom (and systemd-oom-defaults) and earlyoom packages are installed together also is not a problem by itself.  A system owner may choose to decide to run systemd-oom or earlyoom and may change that choice at any time as desired for particular situations.

I have read the various comments about experiences with systemd-oom killing more than it really needs to perhaps - entire desktop sessions (or tmux sessions) instead of killing whatever memory hog with finer granularity.  The desire to have improved out-of-memory handling is understandable.  And when MATE grows cgroup support, it may be a better experience with systemd-oom on the occasion that memory pressure necessitates OOM manager to take action.  But for one thing, it should be rare that OOM is needed - it should be the infrequent exception that a particular system is hitting OOM events regularly (if not it's a system configuration problem in most cases - or possibly a software bug with runaway memory consumption).  Examples of some reports of the problem: https://bugzilla.redhat.com/show_bug.cgi?id=1933494#c22, https://www.reddit.com/r/Fedora/comments/u9xb1s/issue_having_matedesktop_conflicts_with/.

It's up to the system owner whether they choose to use systemd-oom or earlyoom or neither.  And they may have very good reasons for choosing one of those options.  It should not be up to the mate-desktop-configs package to dictate that choice. A recommendation is fine - as in the 'Recommends: earlyoom' clause currently in mate-desktop.spec. That recommendation makes sense at this time - until such time as MATE adds cgroup support to play better with systemd-oom.

But marking the systemd-oomd as a package installation conflict is the wrong scope for handling any issues with dueling OOM managers.  It just causes headaches and confusion for unsuspecting users who want to update their systems - and possibly results in decisions that should not be necessary, such as deleting MATE because of the headaches.

See the proposed pull request: https://src.fedoraproject.org/rpms/mate-desktop/pull-request/2

Comment 23 Wolfgang Ulbrich 2023-03-26 11:26:36 UTC
Changes to comps groups are only working for new released fedora versions started with rawhide.
So you will never see that change in f36.
After moving systemd-oom-defaults to supporting c-groups environments in comps with that commit https://pagure.io/fedora-comps/c/01ba068318ee0bd4f0cc5f5bff4f23c15cf95fd9?branch=main the situation is different.
But i agree to remove the conflict marker from spec file for f37/38 and rawhide. See this PR https://src.fedoraproject.org/rpms/mate-desktop/pull-request/2#
Now it's sure that a new MATE standard default installation comes without systemd-oom-defaults.

Comment 24 John Hein 2023-03-26 20:02:42 UTC
(In reply to Wolfgang Ulbrich from comment #23)
> Changes to comps groups are only working for new released fedora versions
> started with rawhide.
> So you will never see that change in f36.

I understand your remark.  I actually bumped into the dnf update problem (most recently) while belatedly updating an old f33 host to f34 (which from there will update to newer versions as local conditions dictate).  I know that an old problem going from f33 -> f34 is outside the scope of support, so I'm not too concerned about that.  The pull request is for newer supported fedora versions that can still potentially hit the dnf conflict.

> After moving systemd-oom-defaults to supporting c-groups environments in
> comps with that commit
> https://pagure.io/fedora-comps/c/
> 01ba068318ee0bd4f0cc5f5bff4f23c15cf95fd9?branch=main the situation is
> different.
> But i agree to remove the conflict marker from spec file for f37/38 and
> rawhide. See this PR
> https://src.fedoraproject.org/rpms/mate-desktop/pull-request/2#
> Now it's sure that a new MATE standard default installation comes without
> systemd-oom-defaults.

One problem is that there exist systems in the world that are more than just a "MATE standard default install".  We have systems where some users will use MATE, others might use XFCE or GNOME, etc., sometimes concurrently.  So moving systemd-oom-defaults out of the core comps group may not help avoid the dnf failure since dnf installing other desktop environment groups can still pull in systemd-oom-defaults.

Thanks for considering the removal of the conflict marker.  MATE just seems like the wrong scope in which to adjudicate OOM manager choices.

Comment 25 Fedora Update System 2023-03-31 19:03:26 UTC
FEDORA-2023-2a193c0384 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a193c0384

Comment 26 Fedora Update System 2023-04-01 01:34:11 UTC
FEDORA-2023-2a193c0384 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a193c0384

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

Comment 27 Fedora Update System 2023-04-01 02:17:04 UTC
FEDORA-2023-82251ee7c9 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-82251ee7c9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-82251ee7c9

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

Comment 28 Fedora Update System 2023-04-01 15:33:50 UTC
FEDORA-2023-82251ee7c9 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-82251ee7c9

Comment 29 Fedora Update System 2023-04-02 02:12:59 UTC
FEDORA-2023-82251ee7c9 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-82251ee7c9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-82251ee7c9

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

Comment 30 Fedora Update System 2023-04-10 00:36:46 UTC
FEDORA-2023-82251ee7c9 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Wolfgang Ulbrich 2023-11-23 09:21:51 UTC
I am thinking about to change `Recommends:  earlyoom` to `Recommends:  systemd-oomd-defaults` for f40, to get closer to common fedora.
In the end only one user was affected  by this issue and more users was to use systemd-oomd-defaults.
And it is possible to uninstall systemd-oomd-defaults after it was removed from core group.

Comment 32 John Hein 2023-11-26 03:29:02 UTC
(In reply to Wolfgang Ulbrich from comment #31)
> In the end only one user was affected  by this issue and more users was to
> use systemd-oomd-defaults.

It's not clear where that comment (only one user) comes from.  Just in this thread, more than one user spoke up who was affected.

As far as I can tell, MATE has not added cgroup support yet (although I may have missed it).

Comment 33 Wolfgang Ulbrich 2023-11-26 10:43:54 UTC
(In reply to John Hein from comment #32)
> (In reply to Wolfgang Ulbrich from comment #31)
> > In the end only one user was affected  by this issue and more users was to
> > use systemd-oomd-defaults.
> 
> It's not clear where that comment (only one user) comes from.  Just in this
> thread, more than one user spoke up who was affected.
> 
> As far as I can tell, MATE has not added cgroup support yet (although I may
> have missed it).

Please read careful posts.
In this report users like you complains only about the previous package conflict issues when updating.
In the other origin linked report only the reporter was affected.


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