mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 09:52:17 +00:00
4acaa5b3d8
acquire_lock_dir dies with "another build of <what> already holds <lockdir>" whenever XCAT::NFSLock->acquire fails, whatever the failure was. A lockdir under a directory that does not exist, or one the build cannot write, both tell the operator to look for a build that is not running, and both print the advice about --mock-uniqueext. The nested text said "Trying to unlock", which is the reverse of what acquire was doing. acquire_lock_dir now reports contention only when the retry budget ran out, and prints the error that happened otherwise. The vendored XCAT::NFSLock is resynced with xcat-dep: its refusal names which failure it was, and it reclaims a lock.borrow that has no metadata and that two attempts find unchanged, which was a permanent strand. A lock.d with no metadata stays refused, so a directory left by a build from before this change is not recovered by acquire; sweep_stranded removes that one, and only under an exclusive claim on the root. buildrpms.pl kept "use POSIX (); # EEXIST, for the directory build lock", and the lock has not used EEXIST since it became an XCAT::NFSLock. The import is still needed for WNOHANG in abort_builds. Depends on xcat-dep/#93, which carries the same change to the original copy of XCAT/NFSLock.pm. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Shared FIPS shell policy
Edit fips-policy.sh, then run:
perl build-utils/sync-fips-policy --write
perl build-utils/sync-fips-policy --check
Commit the source and both updated runtime libraries together. The generated
blocks in Genesis usr/lib/xcat/fips.sh and postscripts xcatlib.sh stay tracked
so source-checkout callers and standalone packages need no generation step.
The RPM and Debian builders reject stale blocks before building either package.
Keep caller-specific helpers outside the generated block. The policy source must remain POSIX shell. It must not depend on the other package at runtime.