Bug 1772939

Summary: For "needs-restarting" command. re-Include option (-s --services -- "List the affected systemd services only.")
Product: Red Hat Enterprise Linux 8 Reporter: sgardner
Component: dnfAssignee: Nicola Sella <nsella>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.4CC: james.antill, kwalker, lberton, mblaha, mdomonko, nsella, paygupta, redhat-support
Target Milestone: rcKeywords: FutureFeature, RFE, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.18-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:00:34 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:
Bug Depends On:    
Bug Blocks: 1825061, 1894575    

Description sgardner 2019-11-15 16:26:53 UTC
Description of problem:
-----------------------
- This is a piggy-back RFE stemmed from BZ-1639468.
- In the newest version of yum-utils available in RHEL8 (yum-utils-4.0.8-3.el8.noarch). The needs-restarting command no longer includes option to list affected systemd services.  This option is listed as "-s" or "--services".
- This feature existed in older versions available in RHEl7.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
yum-utils-4.0.8-3.el8.noarch


Steps to Reproduce:
-------------------
1. Install yum-utils in RHEL8
2. Check man pages to see "-s" option missing
3. Attempt to run command with "-s" and it will fail with usage information

Comment 1 sgardner 2019-11-15 16:30:18 UTC
I guess I didn't really add the request in the description, So I will add it here.

Customer is requesting that we add the "-s" functionality back into the "needs=restarting" command in RHEL8.

Comment 2 sgardner 2019-11-15 16:30:42 UTC
I guess I didn't really add the request in the description, So I will add it here.

Customer is requesting that we add the "-s" functionality back into the "needs=restarting" command in RHEL8.

Comment 7 Vanboxtel 2020-04-21 10:21:48 UTC
Hello,

Is there any progress on this? Any indication when the -s / --services switch will be available? For we need this option too.

Regards,
Joeri

Comment 8 Nicola Sella 2020-05-05 15:16:59 UTC
Hello,
I just submitted a PR that could address the issue: https://github.com/rpm-software-management/dnf-plugins-core/pull/395

Comment 9 Nicola Sella 2020-06-10 14:18:44 UTC
We have decided to move this to 8.4 because our current implementation (which was also used by yum-utils) depends on the system running cgroup v1 and since we also want to support systems with cgroup v2 we have to rework the code significantly. This will need more time.

Comment 18 errata-xmlrpc 2021-05-18 15:00:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dnf bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1657