Skip to content

feat: Adding support for IB partition update#475

Draft
hwadekar-nv wants to merge 3 commits intoNVIDIA:mainfrom
hwadekar-nv:feat/ib-partition-update
Draft

feat: Adding support for IB partition update#475
hwadekar-nv wants to merge 3 commits intoNVIDIA:mainfrom
hwadekar-nv:feat/ib-partition-update

Conversation

@hwadekar-nv
Copy link

@hwadekar-nv hwadekar-nv commented Mar 6, 2026

Description

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

@hwadekar-nv hwadekar-nv self-assigned this Mar 6, 2026
@hwadekar-nv hwadekar-nv requested a review from a team as a code owner March 6, 2026 20:34
@copy-pr-bot
Copy link

copy-pr-bot bot commented Mar 6, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@hwadekar-nv hwadekar-nv marked this pull request as draft March 6, 2026 20:34
Copy link
Contributor

@Matthias247 Matthias247 left a comment

Choose a reason for hiding this comment

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

Looks good. But can you please add a unit-test for it?

// validate the metadata
metadata.validate(true).map_err(CarbideError::from)?;

if metadata.pkey != partition.metadata.pkey {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised pkey is metadata. It should not be supplied by the tenant at all (just status)

Copy link
Author

Choose a reason for hiding this comment

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

No, this has been a mistake here. pkey is under config only. -- https://github.com/NVIDIA/bare-metal-manager-core/blob/main/crates/rpc/proto/forge.proto#L1481

Copy link
Author

Choose a reason for hiding this comment

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

Will update ..

}

// Update the metadata of the partition
partition.metadata.name = name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like none of this is really compiling (there's a bunch of missing variables, plus this method isn't even called by the impl Forge for Api in api.rs) but when you get around to fixing this, you should be able to just do partition.metadata = metadata.try_into()? here.

Copy link
Author

Choose a reason for hiding this comment

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

Yes @kensimon this PR is in draft, still updating step by step

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants