Crossport OVF deployment related fixes for VM Operator#3982
Merged
akutz merged 19 commits intovmware:vm-operator-vc-9.1.0from Mar 17, 2026
Merged
Crossport OVF deployment related fixes for VM Operator#3982akutz merged 19 commits intovmware:vm-operator-vc-9.1.0from
akutz merged 19 commits intovmware:vm-operator-vc-9.1.0from
Conversation
71770fc to
a60f7a5
Compare
… ConfigSpec(vmware#3964) Signed-off-by: Hemanth kumar Pannem <hemanth-kumar.pannem@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
Distinguish OVF disks that are backed by a file (ovf:fileRef) from capacity-only (empty) disks in the generated ConfigSpec. Implementation (configspec.go): - Build a fileRefs map from Envelope.References and pass it through toHardware into toVirtualDisk. - For disks with a DiskSection fileRef, set backing FileName from path.Base(File.Href) so file-backed disks get a non-empty name; empty disks keep an empty backing name. - Build DeviceChange explicitly: for VirtualDisks, set FileOperation to Create for empty disks and to empty string for file-backed disks (existing file). Tests and fixtures: - Add fixtures/mixed-disks.ovf (one file-backed disk, one empty) and test "Mixed file-backed and empty disks" for backing FileName and FileOperation. - Add test "File-backed disk name from path.Base(File.Href)" using fixtures/file-ref-path.ovf. - In "Large" test, assert file-backed disk has non-empty FileName and empty disk has empty FileName. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
- Add OVF-to-vApp type mapping (DSP0243 Table 6 → vim.vApp.PropertyInfo): uint8/sint8/.../sint64 → int, String → string, Boolean → boolean, real32/real64 → real. Honor ovf:password for string → password. - Parse ovf:qualifiers per DSP0243 9.5.1 Table 7: MinLen, MaxLen, ValueMap for string; ValueMap for integer types. - Build VAppPropertyInfo.Type from base type and qualifiers (e.g. MinLen(1),MaxLen(65535) → string(1..65535), ValueMap → string["a","b"] or int(min..max)). - Use computed type in toVAppConfig for both the property Info.Type and for parseVAppConfigValue so qualifier-derived constraints are applied. - Add tests for qualifier-derived types and expect root_pwd Type "password" when ovf:password="true". Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
Add DeploymentConfiguration to ToConfigSpecOptions to select which deployment option (DeploymentOptionSection) to use; default or first if empty. Resolve by name with resolveDeploymentConfiguration(). Add tests for deployment config selection, OVF property types to vAppPropertyInfo.Type, and file-ref path in disk backing. Add fixtures: deployment-configs.ovf, property-types.ovf, file-ref-path.ovf. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch fixes the vAppPropertyInfo types for strings with min/max qualifiers. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch adds support for specifying OVF disk capacity via an OVF property as well as handles possible invalid property key names. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch supports OVF product categories. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch adds OVF testing based on an uber OVF. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch adds support for vSphere-specific OVF property qualifiers. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch adds exhaustive OVF testing. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch changes ovf.ToConfigSpec to use the first element in a VirtualSystemCollection if there is no VirtualSystem present. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
…d-disk-from-ovf ovf: Support non-file backed disks, deployment configs, and vApp property qualifiers Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch allows the ovf.ToConfigSpec function to support when an OVF does not have a VirtualHardware element. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch supports ovf.ToConfigSpec with SR-IOV NICs. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
This patch adds many more OVF fixtures to validate ovf.ToConfigSpec. Signed-off-by: akutz <andrew.kutz@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
api: More OVF testing Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
Signed-off-by: Hemanth kumar Pannem <hemanth-kumar.pannem@broadcom.com> Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
fix: OVF spec parser for DMTF os types Signed-off-by: Arunesh Pandey <arunesh-kumar.pandey@broadcom.com>
a60f7a5 to
9381829
Compare
faisalabujabal
approved these changes
Mar 17, 2026
akutz
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a release branch created for VCF 9.1 release to support deployment of OVFs using VM Operator.
How Has This Been Tested?
Yes, tested internally on a testbed.