[Bug 1821261] Re: nfsiostat broken and exits with traceback

Matthew Ruffell 1821261 at bugs.launchpad.net
Fri Mar 22 00:14:07 UTC 2019


** Description changed:

  nfsiostat, in nfs-common-1.3.4-2, is broken in bionic, cosmic and disco.
  
  When you run the command nfsiostat, either as root or a regular user,
  the following traceback is printed:
  
  $ nfsiostat
  Traceback (most recent call last):
-   File "/usr/sbin/nfsiostat", line 640, in <module>
-     iostat_command(prog)
-   File "/usr/sbin/nfsiostat", line 593, in iostat_command
-     devices = list_nfs_mounts(origdevices, mountstats)
-   File "/usr/sbin/nfsiostat", line 495, in list_nfs_mounts
-     for device, descr in list(mountstats.items()):
+   File "/usr/sbin/nfsiostat", line 640, in <module>
+     iostat_command(prog)
+   File "/usr/sbin/nfsiostat", line 593, in iostat_command
+     devices = list_nfs_mounts(origdevices, mountstats)
+   File "/usr/sbin/nfsiostat", line 495, in list_nfs_mounts
+     for device, descr in list(mountstats.items()):
  TypeError: 'list' object is not callable
  
  This is caused by the 'list' reserved word being used as a variable name
  in list_nfs_mounts(), and is explained here:
  https://askubuntu.com/questions/1123319/nfsiostat-failing-
  on-18-04/1123336#1123336?s=a1e9150fbf284e849efe6fe084e7c7b8
  
- I will send a patch to upstream shortly, and begin the SRU process. It's
- going to be my first SRU since I started in sts-eng, so that's exciting.
+ I will send a patch to upstream shortly.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1821261

Title:
  nfsiostat broken and exits with traceback

Status in nfs-utils package in Ubuntu:
  In Progress
Status in nfs-utils source package in Bionic:
  New
Status in nfs-utils source package in Cosmic:
  New
Status in nfs-utils source package in Disco:
  In Progress

Bug description:
  nfsiostat, in nfs-common-1.3.4-2, is broken in bionic, cosmic and
  disco.

  When you run the command nfsiostat, either as root or a regular user,
  the following traceback is printed:

  $ nfsiostat
  Traceback (most recent call last):
    File "/usr/sbin/nfsiostat", line 640, in <module>
      iostat_command(prog)
    File "/usr/sbin/nfsiostat", line 593, in iostat_command
      devices = list_nfs_mounts(origdevices, mountstats)
    File "/usr/sbin/nfsiostat", line 495, in list_nfs_mounts
      for device, descr in list(mountstats.items()):
  TypeError: 'list' object is not callable

  This is caused by the 'list' reserved word being used as a variable
  name in list_nfs_mounts(), and is explained here:
  https://askubuntu.com/questions/1123319/nfsiostat-failing-
  on-18-04/1123336#1123336?s=a1e9150fbf284e849efe6fe084e7c7b8

  I will send a patch to upstream shortly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1821261/+subscriptions



More information about the foundations-bugs mailing list