You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have cache devices in my ZFS storage pool I get errors:
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: File ".../tcollector/collectors/0/zfsiostats.py", line 167, in main
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: "expecting last state T_SEPARATOR, now got %s" % ltype
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: AssertionError: expecting last state T_SEPARATOR, now got 5
Looks like it doesn't expect to find the cache section
My workaround is adding these lines:
elif line.startswith("cache"):
assert ltype in (T_POOL, T_DEVICE),
"expecting last state T_POOL or T_DEVICE, now got %s" % ltype
ltype = T_LEG
The text was updated successfully, but these errors were encountered:
If I have cache devices in my ZFS storage pool I get errors:
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: File ".../tcollector/collectors/0/zfsiostats.py", line 167, in main
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: "expecting last state T_SEPARATOR, now got %s" % ltype
2015-10-28 21:20:34,887 tcollector[14141] WARNING: zfsiostats.py: AssertionError: expecting last state T_SEPARATOR, now got 5
Looks like it doesn't expect to find the cache section
My workaround is adding these lines:
elif line.startswith("cache"):
assert ltype in (T_POOL, T_DEVICE),
"expecting last state T_POOL or T_DEVICE, now got %s" % ltype
ltype = T_LEG
The text was updated successfully, but these errors were encountered: