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 1343389 - [RFE] needs-restarting should give a hint if reboot is required
Summary: [RFE] needs-restarting should give a hint if reboot is required
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-utils
Version: 6.8
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-07 09:05 UTC by Eva Mrakova
Modified: 2016-07-25 14:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1192946
Environment:
Last Closed: 2016-07-25 14:21:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eva Mrakova 2016-06-07 09:05:20 UTC
Also happens for yum-utils-1.1.30-37.el6.noarch

+++ This bug was initially created as a clone of Bug #1192946 +++

Description of problem:
needs-restarting returns a list of PID's that have updated/deleted files open due to an previous package upgrade.

https://access.redhat.com/solutions/27943 gives recommendations when in such cases a reboot is mandatory.

needs-restarting should display information in such a way that enables users to decide upon this recommendation and even better give a hint if reboot is required.

Version-Release number of selected component (if applicable):
yum-utils-1.1.30-30.el6.noarch
yum-utils-1.1.31-25.el7_0.noarch

How reproducible:
call needs-restarting on a system with recently upgraded glibc, kernel, hald,...

Actual results:
needs-restarting 
623 : /usr/sbin/NetworkManager --no-daemon 
607 : /usr/sbin/rsyslogd -n 
606 : avahi-daemon: running [rhel7.local]
1083 : /sbin/rpc.statd 
626 : avahi-daemon: chroot helper
752 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
748 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
763 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
454 : /usr/lib/systemd/systemd-journald 
576 : /sbin/auditd -n 
661 : /sbin/iprdump --daemon 
4263 : /usr/lib/systemd/systemd-udevd 
2091 : -bash 
656 : /usr/lib/polkit-1/polkitd --no-debug 
691 : /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-23d97fc4-ee0d-47db-9ce5-e701835ab9ca-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0 
808 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
1 : /usr/lib/systemd/systemd --system --deserialize 27 
732 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
631 : /sbin/agetty --noclear tty1 
609 : /usr/sbin/irqbalance --foreground 
610 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
461 : /usr/sbin/lvmetad -f 
614 : /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 
608 : /usr/bin/python -Es /usr/sbin/tuned -l -P 
4232 : /usr/sbin/crond -n 
1516 : /usr/libexec/postfix/master -w 
783 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
945 : /usr/sbin/sshd -D 
942 : /sbin/rpcbind -w  
2087 : sshd: root@pts/0     
725 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
1519 : qmgr -l -t unix -u 
644 : /sbin/iprupdate --daemon 
646 : /sbin/iprinit --daemon 
801 : /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
923 : /usr/bin/docker -d --selinux-enabled -H fd:// -H tcp://0.0.0.0:2375

Expected results:
needs-restarting -r
1 : glibc /usr/lib64/libnss_files-2.17.so -- /usr/lib/systemd/systemd --system --deserialize 27 
454 : glibc /usr/lib64/libpthread-2.17.so -- /usr/lib/systemd/systemd-journald 
461 : glibc /usr/lib64/librt-2.17.so -- /usr/sbin/lvmetad -f 
576 : glibc /usr/lib64/libnss_files-2.17.so -- /sbin/auditd -n 
606 : glibc /usr/lib64/libnss_files-2.17.so -- avahi-daemon: running [rhel7.local]
607 : glibc /usr/lib64/libc-2.17.so -- /usr/sbin/rsyslogd -n 
608 : systemd-libs /usr/lib64/libudev.so.1.4.0 -- /usr/bin/python -Es /usr/sbin/tuned -l -P 
609 : glibc /usr/lib64/libpthread-2.17.so -- /usr/sbin/irqbalance --foreground 
610 : glibc /usr/lib64/libresolv-2.17.so -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
614 : glibc /usr/lib64/libnss_files-2.17.so -- /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 
623 : NetworkManager /usr/lib64/NetworkManager/libnm-wwan.so -- /usr/sbin/NetworkManager --no-daemon 
626 : glibc /usr/lib64/libnss_files-2.17.so -- avahi-daemon: chroot helper
631 : glibc-common /usr/lib/locale/locale-archive -- /sbin/agetty --noclear tty1 
644 : glibc /usr/lib64/libc-2.17.so -- /sbin/iprupdate --daemon 
646 : glibc /usr/lib64/libc-2.17.so -- /sbin/iprinit --daemon 
656 : glibc /usr/lib64/libnss_files-2.17.so -- /usr/lib/polkit-1/polkitd --no-debug 
661 : glibc /usr/lib64/libc-2.17.so -- /sbin/iprdump --daemon 
691 : glibc /usr/lib64/libnss_files-2.17.so -- /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-23d97fc4-ee0d-47db-9ce5-e701835ab9ca-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0 
725 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
732 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
748 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
752 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
763 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
783 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
801 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
808 : libyaml /usr/lib64/libyaml-0.so.2.0.4 -- /usr/bin/python /usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 8 docker_registry.wsgi:application 
923 : glibc /usr/lib64/librt-2.17.so -- /usr/bin/docker -d --selinux-enabled -H fd:// -H tcp://0.0.0.0:2375 
942 : glibc /usr/lib64/libnss_files-2.17.so -- /sbin/rpcbind -w  
945 : glibc /usr/lib64/libnss_files-2.17.so -- /usr/sbin/sshd -D 
1083 : glibc /usr/lib64/libnss_files-2.17.so -- /sbin/rpc.statd 
1516 : glibc /usr/lib64/libnss_files-2.17.so -- /usr/libexec/postfix/master -w 
1519 : glibc /usr/lib64/libnss_files-2.17.so -- qmgr -l -t unix -u 
2087 : systemd-libs /usr/lib64/security/pam_systemd.so -- sshd: root@pts/0     
2091 : glibc /usr/lib64/libnss_files-2.17.so -- -bash 
4232 : glibc-common /usr/lib/locale/locale-archive -- /usr/sbin/crond -n 
4263 : selinux-policy-targeted /etc/selinux/targeted/contexts/files/file_contexts.bin -- /usr/lib/systemd/systemd-udevd 

  Caution!
  Kernel or core library packages have been updated!
  Reboot required!
  See https://access.redhat.com/solutions/27943 for details.


Additional info:
added a new option -r (--reboothint) to needs-restarting.py that adds the desired output.
Patches for RHEL6 and RHEL7 are attached.

Comment 1 Valentina Mukhamedzhanova 2016-07-25 14:21:34 UTC
Red Hat Enterprise Linux version X is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information.


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