vsanmetrics icon indicating copy to clipboard operation
vsanmetrics copied to clipboard

TypeError: 'int' object is not iterable

Open vidkun opened this issue 6 years ago • 3 comments

Script fails to collect any metrics via telegraf config or manual execution. I've tried with all three (performance, capacity, and health) together and all three individually. Each time gives the same error below for each of the three categories. Every error ends with the same TypeError.

This is against a 6.7U1 cluster with the same sdk version. Latest versions of all pip modules. Python 2.7.5 on RHEL7. Got the same behavior on Python 2.7.13 as well.

[root@system vsanmetrics]# ./vsanmetrics.py -s vcenter.example.com -u "[email protected]" -p secret -c My_Cluster --performance
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "./vsanmetrics.py", line 539, in getPerformance
    si, _, cluster_obj = connectvCenter(args, context)
TypeError: 'int' object is not iterable

vidkun avatar Jan 21 '19 14:01 vidkun