I have a system that uses krb5p security for its NFS mounts. It seems to all work well except when the time is moved backwards (a few hours or so, not sure the exact threshold). When the clock is moved backwards the share then reports "No such file or directory" when trying to mount it (using autofs). Assumption is one of the encryption checks somewhere is checking for backwards time and just aborting, which would be sane default behavior.
I have a test case where client/server are the same machine, as well as some using separate computers, same results. All times are NTP synced. In this test case, the NTP server that everyone uses is being moved backwards.
I realize a bit of a strange test case, but this is a completely offline environment and the software is intended to handle any sort of strange input, like an operator not configuring NTP correctly (typo or something), and this is just testing that edge case.
As soon as I move the clocks back to the present or future, the shares start working again after a kdestroy/kinit cycle.
I have tried kdestroy with a new kinit, clearing the sssd cache, restarting the kadmin/k5rb-server services and full system reboots (which blows away /tmp) but nothing seems to take.
I have full control on the system, so I could "reinstall" something or wipe any configuration/data file, I just can't find where anything is stored to actually make kerberos or NFS forget it ever had a future time (assuming my theory is even right).
System: RHEL7.9
Thanks so much.
Update Just because we got a little sidetracked below, I want to clarify that I understand time moving backwards is strange case. While all suggestions are appreciated for discussion, this question centers around how to fix the SW to handle the case. I realize there are potentially ways to solve it via HW but I'm more curious as to why specifically it is failing and how to recover, not how to prevent it from failing in the first place, if that makes sense. While there are some HW solutions that limit the potential of this edge case, there are none that bring it down to 0 at least with my current system limitations and the HW options are sadly not viable. The SW options may also not be viable, but just trying to understand them. One solution that seems to work so far is re-image the machine but was hoping there was something less draconian.