NAS-128003 / 24.10 / Update zvol collection method (#14076)
Updated the way we collect the zvols. The previous method did not do 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.
Add failback to ALUA config test
When run against a HA system test_19_alua_config will now perform
TWO reboots to test failover/failback wrt iSCSI ALUA targets.
The second reboot is being added to return the system to the
original ACTIVE node. This means that subsequent tests will run
on the same node that the previous tests started on.
Robustize logout_ha_targets
Make logout_ha_targets slightly less restricted by using the HA IQN
prefix to filter targets to be logged out, rather than using
iscsi.target.active_ha_iqns
The latter will not include targets which have been removed from
the config.
Added zvol name with spaces test.
That exposed an issue with processing the SNMP output.
Fixed processing of the SNMP output.
Fixed other items raised in the review.
Avoid deadlocking during DS health initialization (#14087)
There are some edge cases with restarting middleware in which
we can deadlock on the etc.generate lock for the kerberos group
if we're joined to AD (by calling into directoryservices.health.check
repeatedly). This fixes the issue by initializing the health state
if required when we first enter the directoryservices.health.check
method.
Avoid DNS lookup when disabling AD (#14086)
If DNS lookup fails due to broken networking or domain being
inaccessible then this may fail with a dns.resolver exception and
prevent disabling the activedirectory service.