Skip to content

Conversation

@jaywcarman
Copy link
Member

@jaywcarman jaywcarman commented Jun 25, 2025

The PowerVS System Pools API has been deprecated and is no longer available. It was only used to get a list of available host types, which is also available in the Datacenters API.

Depends on:

@jaywcarman jaywcarman requested review from Fryguy and agrare as code owners June 25, 2025 15:38
X-Ibmcloud-Sdk-Analytics:
- service_name=resource_controller;service_version=V2;operation_id=get_resource_instance
Accept:
- application/json
Authorization:
- Bearer IAMBEARERTOKEN
Authorization: Bearer xxxxxx
Connection:
- close
response:
status:
code: 200
Copy link
Member Author

@jaywcarman jaywcarman Jun 25, 2025

Choose a reason for hiding this comment

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

For some reason this resource controller API response always has a code of 34 but the body include the requested data 😕. I manually wrote the code to 200, continued recording the rest of the specs and everything looked good. I'll push another PR that shows this issue more clearly. (done: #537)

@Fryguy Fryguy added the enhancement New feature or request label Jul 2, 2025
@jaywcarman jaywcarman force-pushed the powervs_replace_system_pools_api_with_datacenters_api branch from ab496c4 to 9b3fd67 Compare July 7, 2025 20:25
@miq-bot
Copy link
Member

miq-bot commented Jul 7, 2025

Checked commits jaywcarman/manageiq-providers-ibm_cloud@2f912cb~...9b3fd67 with ruby 3.1.7, rubocop 1.56.3, haml-lint 0.64.0, and yamllint
5 files checked, 2 offenses detected

lib/tasks_private/power_virtual_servers.rake

@jaywcarman jaywcarman force-pushed the powervs_replace_system_pools_api_with_datacenters_api branch from 9b3fd67 to 8df982b Compare August 5, 2025 12:49
jrafanie and others added 8 commits August 5, 2025 07:55
The System Pools is no longer available. The Datacenters API now
providers a list of available system types (stored in MIQ as a flavor).
The default IAM uri for power_virtual_servers is
'https://iam.cloud.ibm.com/identity/token#apikey'.

The resource controller URI starts with
'https://resource-controller.cloud.ibm.com' (no 'iaas' subdomain).
There's no harm in sanitizing _any_ domain with cloud.ibm in it.
After creating a PVM instance, the
pvm_instances_api.pcloud_pvminstances_get() for the new instance returns
an HTTP 500 response for a short time. It takes a few minutes for the
instance to be created anyways, so adding a 1m sleep prevents the bad
response without slowing down the setup process.
Update images to newer versions that are available in the PowerVS image
catalog.
The new PowerVS workspace used to record specs requires some check
counts/values to be updated.
@jaywcarman jaywcarman force-pushed the powervs_replace_system_pools_api_with_datacenters_api branch from 8df982b to 414d847 Compare August 5, 2025 12:56
@agrare agrare merged commit 4779edc into ManageIQ:master Aug 5, 2025
3 checks passed
@jaywcarman jaywcarman deleted the powervs_replace_system_pools_api_with_datacenters_api branch August 5, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants