Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-137935

rpm verify fails because of missing /var/lib/nfs/v4recovery after removing nfs-utils but keeping nfsv4-client-utils package installed

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.1
    • nfs-utils
    • nfs-utils-2.8.3-4.el10
    • None
    • Low
    • rhel-fs-net
    • 24
    • 25
    • None
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

       

      # rpm -q nfsv4-client-utils
      nfsv4-client-utils-2.8.3-0.el10.x86_64
      # rpm -V nfsv4-client-utils
      S.5....T.  c /etc/gssproxy/24-nfs-server.conf
      S.5....T.  c /etc/nfs.conf
      S.5....T.  c /etc/nfsmount.conf
      S.5....T.  c /etc/nfsmount.conf.d/10-nfsv4.conf
      # ls -l /var/lib/nfs
      total 0
      dr-xr-xr-x. 11 root root 0 Apr 29  2025 rpc_pipefs
      drwxr-xr-x.  2 root root 6 Apr 29  2025 v4recovery
      # yum install nfs-utils
      Installed:
        nfs-utils-1:2.8.3-0.el10.x86_64
      
      # ls -l /var/lib/nfs
      total 0
      dr-xr-xr-x. 11 root    root     0 Apr 29  2025 rpc_pipefs
      drwx------.  4 rpcuser rpcuser 30 Dec 29 16:50 statd
      drwxr-xr-x.  2 root    root     6 Apr 29  2025 v4recovery
      # rpm -V nfsv4-client-utils
      S.5......  c /etc/gssproxy/24-nfs-server.conf
      S.5......  c /etc/nfs.conf
      S.5......  c /etc/nfsmount.conf
      S.5....T.  c /etc/nfsmount.conf.d/10-nfsv4.conf
      # yum remove nfs-utils
      # ls -l /var/lib/nfs
      total 0
      dr-xr-xr-x. 11 root root 0 Apr 29  2025 rpc_pipefs
      # rpm -V nfsv4-client-utils
      S.5....T.  c /etc/gssproxy/24-nfs-server.conf
      S.5....T.  c /etc/nfs.conf
      S.5....T.  c /etc/nfsmount.conf
      S.5....T.  c /etc/nfsmount.conf.d/10-nfsv4.conf
      missing     /var/lib/nfs/v4recovery
      

       

       

      Post uninstall script of nfs-utils removes /var/lib/nfs/v4recovery without taking care that the nfsv4-client-utils rpm is also using that file:

      ~~~
      [cb/LI-on] root@li-lc-3003:~# rpm -q --scripts nfs-utils | tail -n13
      postuninstall scriptlet (using /bin/sh):
      
      if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
          # Package upgrade, not uninstall
          /usr/lib/systemd/systemd-update-helper mark-reload-system-units nfs-client.target nfs-server.service || :
      fi
      if [ -f /var/lib/rpm-state/nfs-server.cleanup ]; then
          rm /var/lib/rpm-state/nfs-server.cleanup || :
          rm -rf /var/lib/nfs/statd || :
          rm -rf /var/lib/nfs/v4recovery || :
      fi
      ~~~
      

       

              rhn-support-smayhew Scott Mayhew
              rhn-support-nmarjano Nikola Marjanovic
              Scott Mayhew
              NFS Team NFS Team
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: