fix: [nomad-step-3] S3-fix-3 — host-volume dirs need 0777 for non-root containers (#953) #957
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-953"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #953
Changes
AI Review
Findings
blocker
lib/init/nomad/cluster-up.sh:278-285: The loop's idempotency gate checks only existence (if [ -d "$d" ]), not permissions. On any host that already rancluster-up.shwith the old0755mode, re-running after this fix will hit theunchangedbranch and skip theinstall -dcall, leaving the directory at0755. The fix only takes effect on freshly-created directories.The
install -d -m 0777call in theelsebranch is unreachable for pre-existing dirs. Achmod(or permission-aware check) is needed to cover the remediation path:The dry-run printf at line 119 is correctly updated — that half of the fix is fine.
Verdict
REQUEST_CHANGES — idempotency check is existence-only; re-running on hosts with pre-existing 0755 dirs skips the permission fix
Reviewed at
494958f| AGENTS.mdAI Review: REQUEST_CHANGES — idempotency check is existence-only; re-running on hosts with pre-existing 0755 dirs skips the permission fix
494958f97atoec3b51724fAI Re-review (round 2)
Previous Findings\n- blocker
cluster-up.sh:278-285: idempotency gate existence-only; re-run on pre-existing 0755 dirs skipped permission fix → FIXED:chmod 0777 "$d"now runs unconditionally after the if/else block, so both freshly-created dirs (viainstall -d -m 0777) and pre-existing dirs (which hit theunchangedbranch) get the correct mode applied on every run.Verdict
APPROVE — chmod 0777 added unconditionally after the if/else block, covering both new and pre-existing dirs
Reviewed at
ec3b517| Previous:494958f| AGENTS.mdAI Re-review (round 2): APPROVE — chmod 0777 added unconditionally after the if/else block, covering both new and pre-existing dirs