-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs parsing error #11089
Comments
This error says it is failing to parse the The FreeBSD code path literally runs a couple of commands and parses the output. Can you collect the output of the following two commands please:
Thanks! |
OK, I see whats going on! Now the question is... WHY!? Its actually not the datasets in question. Its another pool. For some reason on this server (which started out as RELENG_10, then RELENG_11 then RELENG_12, zfs list gives different output on the boot pool.
If I nuke the boot pools snapshots, telegraf works as expected, because telegraf is amazing :) But if I do
On a different RELENG12 box, this is not an issue and the other 2 large pools on the troubled box in question dont do this either. I guess the next question is why / how did it get that way. I dont see any properties that would effect this. I will ask on a FreeBSD list to see how I can control this behaviour as it seems to be some bug. I am guessing something along the way got messed up when upgrading from older pools.
|
OK, I found it! I was trying zfs not zpool. Its a pool property, not a dataset property!
and
|
Thanks for this @mdtancsa, so at this point it sounds like from telegraf's perspective you are good to go now? |
@powersj yes, I am good to go. It might be helpful in the edge cases where users have this on like I did in the documentation.
|
Can you take a look at #11091? |
Thanks again ! |
It looks like this issue is back in RELENG_14 of FreeBSD and ZFS. The output of the two commands are different in the newer version of FreeBSD and ZFS. In RELENG_13, the output does not include a - for an empty value. .eg in RELENG_13 we see
In RELENG_14 however,
The parser chokes on that.
|
This might actually be a freebsd bug. The -p should show parseble numbers and not dashes. Also, there should be values, but even with snapshots they are always a -. Going to see what the FreeBSD people say |
Relevant telegraf.conf
Logs from Telegraf
System info
telegraf --version Telegraf 1.22.3, FreeBSD 12.3
Docker
No response
Steps to reproduce
telegraf --debug --test --config telegraf.conf
But it doesnt seem to cause issues on other servers where I have volumes, so not sure what else is going on.
Expected behavior
Not throw that error and stop collecting arcstats
Actual behavior
Telegraf hits that error and does not proceed to collect / report the rest of the datasets nor arcstats
Additional info
No response
The text was updated successfully, but these errors were encountered: