Skip to content

Adding supported image formats in sm-list (XCP-ng 8.3) #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v25.6.0-8.3
Choose a base branch
from

Conversation

gthvn1
Copy link

@gthvn1 gthvn1 commented May 13, 2025

This patch adds the field supported-image-format to SM object of the XAPI database. As it modifies the database we cannot have the same patch for our 8.3 and upstream because version of XAPI database or not the same. So upstream modifications conflicts with our modification. And the branch that follows the upstream one cannot be merged without conflicts.
So for testing and start review I created this patch that can be applied on our XCP-ng 8.3 branch so it is easy to test. Once reviewed I will rebase it upstream and see how we can do a PR.

When running `xe sm-list params=all` you will now have the info of
supported image formats if the SM plugin specified it in its DRIVER_INFO.
The field is called `supported-image-formats`. If the plugin doesn't
provide the info the field will be empty.

Signed-off-by: Guillaume <[email protected]>
@gthvn1 gthvn1 requested a review from last-genius May 13, 2025 11:44
@gthvn1 gthvn1 self-assigned this May 13, 2025
@gthvn1 gthvn1 changed the title Adding supported image formats in sm-list Adding supported image formats in sm-list (XCP-ng 8.3) May 13, 2025
Copy link

@last-genius last-genius left a comment

Choose a reason for hiding this comment

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

Are we confident about this? Or do we want to create a separate QCOW branch with this and other associated patches?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14995750645

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.248%

Totals Coverage Status
Change from base Build 14900861617: 0.0%
Covered Lines: 3457
Relevant Lines: 4418

💛 - Coveralls

@gthvn1
Copy link
Author

gthvn1 commented May 13, 2025

I think that it should be a default feature for XCP-ng as XO will display this information. And it will probably be used to allow the selection of a file format when the user creates a VDI. So I think that we don't need a specific branch for this. I mean we need to provide this feature.

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.

3 participants