Skip to content
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

NAS-128003 / 24.10 / Update zvol collection method #14076

Merged
merged 5 commits into from
Jul 27, 2024
Merged

Conversation

mgrimesix
Copy link
Contributor

@mgrimesix mgrimesix commented Jul 24, 2024

Problem

The TrueNAS snmp agent was reporting zvols that resided directly on a pool. However, zvols can be created in any dataset which means we don't report all possible zvols.

Fix

Change the method to find zvols by doing a full depth search on each pool found in /dev/zvol


Created a CI test for this condition.

Included in this PR:

  • Fixed a few typos in TRUENAS-MIB.txt. This required an update to TRUENAS-MIB.py (an auto-generated file).
  • Updated the filesystem asset with adding a 'file' context manager. It creates simple files.

…a depth search.

Fixed a few typos in TRUENAS-MIB.txt which includes regenerating TRUENAS-MIB.py.
Added a context manager for simple 'file' creations in the filesystem asset.
Created a CI test in test_440_snmp.py for this issue.
@mgrimesix mgrimesix requested review from themylogin, yocalebo and a team July 24, 2024 22:40
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Update zvol collection method NAS-128003 / 24.10 / Update zvol collection method Jul 24, 2024
Changed name of context manager from file to mkfile
Added a couple comments
tests/api2/test_440_snmp.py Outdated Show resolved Hide resolved
tests/api2/test_440_snmp.py Show resolved Hide resolved
That exposed an issue with processing the SNMP output.
Fixed processing of the SNMP output.
Fixed other items raised in the review.
@mgrimesix mgrimesix merged commit f886f3a into master Jul 27, 2024
3 checks passed
@mgrimesix mgrimesix deleted the NAS-128003 branch July 27, 2024 00:15
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants