RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1772939 - For "needs-restarting" command. re-Include option (-s --services -- "List the affected systemd services only.")
Summary: For "needs-restarting" command. re-Include option (-s --services -- "List ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.4
Hardware: noarch
OS: Linux
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Nicola Sella
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks: 1825061 1894575
TreeView+ depends on / blocked
 
Reported: 2019-11-15 16:26 UTC by sgardner
Modified: 2024-10-01 16:23 UTC (History)
8 users (show)

Fixed In Version: dnf-plugins-core-4.0.18-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:00:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3847481 0 None None None 2020-03-18 20:24:11 UTC
Red Hat Knowledge Base (Solution) 4915711 0 None None None 2020-03-19 14:27:04 UTC

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


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