Fix supported system types retrieval for PowerVS regions #10268
+50
−15
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.
Problem
The installer was defaulting to deprecated Power9 systems (e.g., s922, e980) in certain PowerVS regions like dal14, even though our hardcoded region mappings correctly specify s1022 as the supported system type.
Root Cause
The issue stems from how we retrieve supported system types via the PowerVS API. The installer currently uses GetDatacenterCapabilities(), which calls a regional bulk endpoint that returns cached/stale data. For dal14, this endpoint still includes deprecated Power9 systems in its response. Since the default selection logic picks the first system type returned, the installer ends up defaulting to an unsupported system.
The IBM Cloud CLI avoids this issue by using a datacenter-specific v1 endpoint (datacenterClient.Get(region)), which returns accurate, up-to-date supported systems.
Solution
Updated GetDatacenterSupportedSystems() to use the datacenter-specific endpoint via instance.NewIBMPIDatacenterClient and datacenterClient.Get(region). This ensures we retrieve accurate, non-cached supported systems data for all regions. (code found in the
pkg/asset/installconfig/powervs/client.gofileImpact
Set dal14 to defaults to s1022 instead of s1222 systems, dal14 no longer considers deprecated s922 a valid supported sysType option
All other regions continue to work as expected with accurate system type data
Removes reliance on stale cached data from bulk endpoints
Testing
Validated that dal14 returns only s1022 (no deprecated systems) and defaults correctly. Verified other regions remain unaffected.