Skip to content

Fix lustre quota '.lustrepid' file location#577

Open
Martin-Rehr wants to merge 4 commits into
nextfrom
fix/lustre-quota-lustrepid-file
Open

Fix lustre quota '.lustrepid' file location#577
Martin-Rehr wants to merge 4 commits into
nextfrom
fix/lustre-quota-lustrepid-file

Conversation

@Martin-Rehr

@Martin-Rehr Martin-Rehr commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fixes where the .lustrepid tracking file is written so it correctly passes through encryption in the case where the storage backend is lustre-gocryptfs.

Previously __set_project_id wrote the .lustrepid marker file directly into quota_datapath, which in the lustre-gocryptfs scenario is the encoded path on the Lustre mount. As a result the file bypassed gocryptfs encryption and made gocryptfs complain about could not decrypt entry ".lustrepid" (#578).

@Martin-Rehr Martin-Rehr requested a review from a team June 17, 2026 08:31
@Martin-Rehr Martin-Rehr self-assigned this Jun 17, 2026
@Martin-Rehr Martin-Rehr added the bug Something isn't working label Jun 17, 2026
@Martin-Rehr Martin-Rehr linked an issue Jun 17, 2026 that may be closed by this pull request
@jonasbardino

Copy link
Copy Markdown
Contributor

Restarted failed Rocky10 CI to confirm it was just an upstream repo mirror issue, as output indicated.

Comment thread mig/lib/lustrequota.py Outdated
# Check if quota_lustre_pid is unused
# and if not find the next unused lustre project id

max_lustre_pid = 4294967294

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated but for the record the pid abbreviation for 'project id' is slightly confusing. It took me a while to realize it's not about a lustre process id like the usual meaning in relation to pid files.
It would be helpful with a comment clearly stating it or perhaps a rename to proj_id or similar at some point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, changed to projid in the latest commit, which is the term used in the lustre documentation.

Comment thread mig/lib/lustrequota.py Outdated

@jonasbardino jonasbardino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: looks fine, and only a couple of minor comments you can take or leave before merging.

Comment thread mig/lib/lustrequota.py Outdated
@Martin-Rehr Martin-Rehr requested a review from jonasbardino June 17, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lustre quota '.lustrepid' file location

2 participants