fix: populate NumCPUs and MemoryMB in createFromLibraryName's StorageDRS spec#361
Merged
HarrisonWAffel merged 3 commits intomasterfrom Mar 2, 2026
Merged
Conversation
…store call Co-authored-by: snasovich <85187633+snasovich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix provisioning error for RKE2 clusters on vSphere 8
fix: populate NumCPUs and MemoryMB in createFromLibraryName's StorageDRS spec
Feb 28, 2026
snasovich
approved these changes
Feb 28, 2026
|
I tested these changes out locally and they work as expected when using the Rancher UI. @copilot, on line 392 we're defining a |
…n createFromLibraryName Co-authored-by: HarrisonWAffel <25062254+HarrisonWAffel@users.noreply.github.com>
Author
Done in 2bb5f83. Moved the |
HarrisonWAffel
approved these changes
Mar 2, 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.
Issue: rancher/rancher#47145
vSphere 8 added strict validation to the RecommendDatastores API, rejecting StoragePlacementSpec.ConfigSpec with NumCPUs = 0. This breaks content library-based VM deployment (RKE2 provisioning path) when a datastore cluster (Storage DRS) is configured.
createFromLibraryName()to passNumCPUsandMemoryMBin theVirtualMachineConfigSpecpassed togetDatastore()specvariable (moved up beforegetDatastore()) reused for both datastore selection and VM reconfiguration✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.