python exception "nfsiostat:217:compare_iostats:KeyError: 'NULL'"

Solution Unverified - Updated -


  • python exception "nfsiostat:217:compare_iostats:KeyError: 'NULL'" is met on nfsiostat
$ cat backtrace 
nfsiostat:217:compare_iostats:KeyError: 'NULL'

Traceback (most recent call last):
  File "/usr/sbin/nfsiostat", line 649, in <module>
  File "/usr/sbin/nfsiostat", line 617, in iostat_command
    print_iostat_summary(old_mountstats, mountstats, devices, sample_time, options)
  File "/usr/sbin/nfsiostat", line 468, in print_iostat_summary
    diff_stats[device] = stats[device].compare_iostats(old_stats)
  File "/usr/sbin/nfsiostat", line 217, in compare_iostats
    difference, self.__rpc_data[op], old_stats.__rpc_data[op]))
KeyError: 'NULL'

Local variables in innermost frame:
value: [0, 0, 0, 0, 0, 0, 0, 0]
self: <__main__.DeviceData instance at 0x7f0b0464e440>
old_stats: <__main__.DeviceData instance at 0x7f0b04659a70>
result: <__main__.DeviceData instance at 0x7f0b04659a28>
key: 'RMDIR'
op: 'NULL'
  • The above exception is met when running /usr/bin/python /usr/sbin/nfsiostat 60 2 -p


  • Red Hat Enterprise Linux 7.6 (kernel-3.10.0-957.13.1.el7)
  • nfs-utils-1.3.0-0.61.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content