Skip to content

feat(hipfile) announcing lvm support and adding it to ais_check - #11154

Merged
akolliasAMD merged 5 commits into
developfrom
users/akolliasAMD/lvmsupport
Sep 17, 2026
Merged

akolliasAMD merged 5 commits into
developfrom
users/akolliasAMD/lvmsupport

Conversation

@akolliasAMD

Copy link
Copy Markdown
Contributor

Motivation

LVM volumes are supported by kfd in newer releases so it needs to be announced in the code and added to ais_check

Technical Details

checks the types of volumes

Issue Tracking

JIRA ID : AIHIPFILE-248

Test Plan

Ci has been set to work

Test Result

Submission Checklist

@akolliasAMD
akolliasAMD requested review from a team as code owners September 2, 2026 23:36
Copilot AI lite review requested due to automatic review settings September 2, 2026 23:36
@github-actions github-actions Bot added documentation Improvements or additions to documentation project: hipfile labels Sep 2, 2026
@therock-pr-bot

therock-pr-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

Copilot AI 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.

🟡 Changes recommended

The new lvm_over_nvme logic can misclassify unreadable device-mapper topology as a definitive “not supported” result instead of “unverified,” and a few updated docs/messages need small consistency fixes.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the ais-check volume scan to treat certain LVM-backed mounts as hipFile fastpath-capable (specifically LVM logical volumes whose underlying physical volumes are all local NVMe), and documents that expanded support across hipFile troubleshooting/how-to docs and changelog.

Changes:

  • Add sysfs-backed device-mapper stack walking (lvm_over_nvme) and update capability gating in ais-check to allow LVM-on-NVMe.
  • Extend ais-check unit tests to cover LVM-on-NVMe acceptance and rejection cases (mpath, scsi, unresolved topology).
  • Update docs and test messaging to reflect that supported LVM volumes can be fastpath-capable.
File summaries
File Description
projects/hipfile/tools/ais-check/tests/test_volumes.py Adds unit tests for lvm_over_nvme and LVM-aware backing_supported/collect behavior.
projects/hipfile/tools/ais-check/ais-check Implements dm_uuid_prefix, block_slaves, lvm_over_nvme, and updates backing_supported/collect logic.
projects/hipfile/test/common/ais-capability.h Updates ENODEV comment wording to mention unsupported LVM volumes.
projects/hipfile/test/common/ais-capability.cpp Updates ENODEV reason string to mention unsupported LVM volumes.
projects/hipfile/docs/troubleshooting/troubleshooting.rst Updates example output and supported backing list to include LVM-on-NVMe.
projects/hipfile/docs/troubleshooting/limitations.rst Documents LVM as an exception to “no interposing block layer” limitation.
projects/hipfile/docs/how-to/checking-system-compatibility.rst Updates example table and explanation to include LVM-on-NVMe as eligible.
projects/hipfile/CHANGELOG.md Announces the ais-check behavior change for LVM logical volumes.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@spolifroni-amd spolifroni-amd 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.

Some changes are needed to smooth out language. Changelog entry needs to be shortened.

Comment thread projects/hipfile/CHANGELOG.md Resolved
@akolliasAMD
akolliasAMD force-pushed the users/akolliasAMD/lvmsupport branch from 8abf070 to 9e9dd24 Compare September 16, 2026 19:52

@spolifroni-amd spolifroni-amd 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.

Minor changes to the text.

Co-authored-by: spolifroni-amd <Sandra.Polifroni@amd.com>
@akolliasAMD
akolliasAMD merged commit cd440b2 into develop Sep 17, 2026
136 of 137 checks passed
@akolliasAMD
akolliasAMD deleted the users/akolliasAMD/lvmsupport branch September 17, 2026 19:09
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation organization: ROCm project: hipfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants