Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False call for need to restart NetworkManager on RHEL8 #211

Open
thomas-merz opened this issue Mar 22, 2024 · 4 comments
Open

False call for need to restart NetworkManager on RHEL8 #211

thomas-merz opened this issue Mar 22, 2024 · 4 comments

Comments

@thomas-merz
Copy link

thomas-merz commented Mar 22, 2024

On some of my RHEL8 VMs tracer -ea says that I should restart NetworkManager:

You should restart:
  * Some applications using:
      sudo systemctl restart NetworkManager

I really can't find any reason for this (no updates at all), so is this a false call or how can I check what is causing this? Doing something like lsof | grep -i deleted | sort -r -s -n -k 7 | head -10 gives me no clue related to any NetworkManager related… 🤷🏼‍♂️

I'm using python3-tracer-0.7.8-1.el8.noarch - but also with latest release 1.1 it's the same result…

@thomas-merz thomas-merz changed the title False call for need to restart NetworkManager on RHEL False call for need to restart NetworkManager on RHEL8 Mar 22, 2024
@thomas-merz
Copy link
Author

@FrostyX , do you have noticed this issue yet?

@FrostyX
Copy link
Owner

FrostyX commented Sep 26, 2024

Hello @thomas-merz,
sorry for the late reply, I must have missed the report.

I really can't find any reason for this (no updates at all), so is this a false call or how can I check what is causing this?

You can try to debug like this:

Print more information about NetworkManager:

$ sudo tracer -ea -s NetworkManager -vv
* NetworkManager
    Package:     NetworkManager
    Description: Network connection manager and user applications
    Type:        Daemon
    State:       NetworkManager has been started by root 11 days ago. PID - 1689

    Affected by:
        zlib-ng-compat
            /usr/lib64/libz.so
        zlib-ng-compat-devel
            /usr/lib64/libz.so

    How to restart:
        sudo systemctl restart NetworkManager

You can see that, on my computer, Tracer thinks it was affected by the zlib-ng-compat and zlib-ng-compat-devel packages (and the specific files provided by those packages). Then you can see when Tracer thinks they were updated:

$ sudo tracer --show-resource packages |grep zlib-ng-compat
2024-09-17     06:50     zlib-ng-compat
2024-09-17     06:50     zlib-ng-compat-devel

Then you can verify whether the information is correct or there is a bug somewhere.

@thomas-merz
Copy link
Author

Hi @FrostyX , I did what you suggest and I got this:

You should restart:
  * Some applications using:
      sudo systemctl restart NetworkManager
* NetworkManager
    Package:     NetworkManager
    Description: Network connection manager and user applications
    Type:        Daemon
    State:       NetworkManager has been started by root 81 days ago. PID - 1306

    Affected by:
        NetworkManager
            /usr/sbin/NetworkManager
            /usr/lib64/NetworkManager/1.40.16-15.el8_9/libnm-settings-plugin-ifcfg-rh.so

    How to restart:
        sudo systemctl restart NetworkManager

These files are much older than uptime:

$ ll /usr/lib64/NetworkManager/1.40.16-15.el8_9/libnm-settings-plugin-ifcfg-rh.so /usr/sbin/NetworkManager
-rwxr-xr-x 1 root root  306560 2024-02-15_12:25:34 /usr/lib64/NetworkManager/1.40.16-15.el8_9/libnm-settings-plugin-ifcfg-rh.so*
-rwxr-xr-x 1 root root 3579408 2024-02-15_12:25:34 /usr/sbin/NetworkManager*

Plus:

$ sudo tracer --show-resource packages NetworkManager|ack ^2024
2024-07-07     09:40     NetworkManager
2024-09-03     09:20     ack
2024-09-02     10:12     aopalliance
2024-09-02     10:12     apache-commons-cli
2024-09-02     10:13     apache-commons-cli
2024-09-02     10:12     apache-commons-codec
2024-09-02     10:13     apache-commons-codec
2024-09-02     10:12     apache-commons-io
2024-09-02     10:13     apache-commons-io
2024-09-02     10:12     apache-commons-lang3
2024-09-02     10:13     apache-commons-lang3
2024-09-02     10:12     apache-commons-logging
2024-09-02     10:12     atinject
2024-09-02     10:13     atinject
2024-07-09     09:52     auditbeat
2024-09-02     10:12     cdi-api
2024-09-02     10:13     cdi-api
2024-09-03     09:20     fd-find
2024-07-09     09:51     filebeat
2024-09-02     10:12     geronimo-annotation
2024-09-02     10:12     glassfish-el-api
2024-09-02     10:12     google-guice
2024-09-02     10:13     google-guice
2024-09-02     10:13     guava
2024-09-02     10:12     guava20
2024-09-02     10:12     hawtjni-runtime
2024-07-09     17:50     haxm
2024-09-02     10:12     httpcomponents-client
2024-09-02     10:13     httpcomponents-client
2024-09-02     10:12     httpcomponents-core
2024-09-02     10:13     httpcomponents-core
2024-09-02     10:13     jakarta-annotations
2024-09-02     10:12     jansi
2024-09-02     10:13     jansi
2024-09-02     10:12     jansi-native
2024-07-07     09:40     java-1.8.0-openjdk
2024-07-07     09:40     java-1.8.0-openjdk-devel
2024-07-07     09:40     java-1.8.0-openjdk-headless
2024-09-02     10:12     jboss-interceptors-1.2-api
2024-09-02     10:12     jcl-over-slf4j
2024-09-02     10:13     jcl-over-slf4j
2024-09-02     10:12     jsoup
2024-09-02     10:13     jsr-305
2024-08-15     09:35     katello-ca-consumer-foreman-pulp.dm-drogeriemarkt.com
2024-09-02     10:12     maven
2024-09-02     10:13     maven
2024-09-02     10:12     maven-lib
2024-09-02     10:13     maven-lib
2024-09-02     10:13     maven-openjdk17
2024-09-02     10:13     maven-resolver
2024-09-02     10:12     maven-resolver-api
2024-09-02     10:12     maven-resolver-connector-basic
2024-09-02     10:12     maven-resolver-impl
2024-09-02     10:12     maven-resolver-spi
2024-09-02     10:12     maven-resolver-transport-wagon
2024-09-02     10:12     maven-resolver-util
2024-09-02     10:12     maven-shared-utils
2024-09-02     10:13     maven-shared-utils
2024-09-02     10:13     maven-wagon
2024-09-02     10:12     maven-wagon-file
2024-09-02     10:12     maven-wagon-http
2024-09-02     10:12     maven-wagon-http-shared
2024-09-02     10:12     maven-wagon-provider-api
2024-07-09     09:52     metricbeat
2024-09-03     09:20     perl-File-Next
2024-09-03     09:20     perl-version
2024-09-02     10:12     plexus-cipher
2024-09-02     10:13     plexus-cipher
2024-09-02     10:12     plexus-classworlds
2024-09-02     10:13     plexus-classworlds
2024-09-02     10:12     plexus-containers-component-annotations
2024-09-02     10:13     plexus-containers-component-annotations
2024-09-02     10:12     plexus-interpolation
2024-09-02     10:13     plexus-interpolation
2024-09-02     10:12     plexus-sec-dispatcher
2024-09-02     10:13     plexus-sec-dispatcher
2024-09-02     10:12     plexus-utils
2024-09-02     10:13     plexus-utils
2024-09-02     10:12     publicsuffix-list
2024-09-02     10:13     publicsuffix-list
2024-09-02     10:13     sisu
2024-09-02     10:12     sisu-inject
2024-09-02     10:12     sisu-plexus
2024-09-02     10:12     slf4j
2024-09-02     10:13     slf4j

@thomas-merz
Copy link
Author

NetworkManager has been updated 2024-07-07T09:02

$ sudo ack NetworkManager /var/log/dnf.*
/var/log/dnf.rpm.log.1
16172:2024-07-07T09:02:00+0200 SUBDEBUG Upgrade: NetworkManager-libnm-1:1.40.16-15.el8_9.x86_64
16212:2024-07-07T09:02:37+0200 SUBDEBUG Upgrade: NetworkManager-initscripts-updown-1:1.40.16-15.el8_9.noarch
16213:2024-07-07T09:02:37+0200 SUBDEBUG Upgrade: NetworkManager-1:1.40.16-15.el8_9.x86_64
16216:2024-07-07T09:02:38+0200 SUBDEBUG Upgrade: NetworkManager-team-1:1.40.16-15.el8_9.x86_64
16217:2024-07-07T09:02:38+0200 SUBDEBUG Upgrade: NetworkManager-tui-1:1.40.16-15.el8_9.x86_64
16256:2024-07-07T09:02:45+0200 SUBDEBUG Upgraded: NetworkManager-tui-1:1.40.16-13.el8_9.x86_64
16277:2024-07-07T09:02:47+0200 SUBDEBUG Upgraded: NetworkManager-team-1:1.40.16-13.el8_9.x86_64
16278:2024-07-07T09:02:47+0200 SUBDEBUG Upgraded: NetworkManager-1:1.40.16-13.el8_9.x86_64
16280:2024-07-07T09:02:47+0200 SUBDEBUG Upgraded: NetworkManager-libnm-1:1.40.16-13.el8_9.x86_64
16285:2024-07-07T09:02:47+0200 SUBDEBUG Upgraded: NetworkManager-initscripts-updown-1:1.40.16-13.el8_9.noarch

And host has been rebooted after update:

$ last -x | ack eboot
reboot   system boot  4.18.0-513.24.1. Sun Jul  7 09:14   still running
reboot   system boot  4.18.0-513.24.1. Sun Jul  7 09:11 - 09:14  (00:02)
reboot   system boot  4.18.0-513.24.1. Sun Jul  7 09:08 - 09:11  (00:02)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants