Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Work around flaky NIS domains

Description

PR: https://github.com/truenas/middleware/pull/7855

The kernel yp client will try up to 200 seconds currently for various yp-related requests. This PR makes three significant changes related to the NIS service:

1) get list of NIS users/groups through `ypcat` subprocess before using the python pwd and grp modules to get info for webui and middleware cache. This avoids enumerating users and groups through the aforementioned modules.

2) alter nsswitch.conf generation so that `nis` is only added if the NIS service is enabled and status is not FAULTED.

3) alter NIS health check so that it regenerates the nsswitch.conf on each run (once every ten minutes).

Problem/Justification

None

Impact

None

Activity

Bug Clerk 
November 11, 2021 at 8:39 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Priority

Katalon Platform

Created November 11, 2021 at 6:17 PM
Updated August 19, 2022 at 4:55 PM
Resolved November 11, 2021 at 8:48 PM

Flag notifications