Skip to content

[Resource] Remove computed property from pi_instance "pi_placement_group_id", fix placement group acceptance test, add wait for placement group delete #6230

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

Merged
merged 1 commit into from
May 15, 2025

Conversation

Alexander-Kita
Copy link
Collaborator

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Description:
Computed: true was erroneously added to pi_placement_group_id argument in pi_instance resource refactor. This resulted in the placement group acceptance tests failing and a slight behavior change. This PR removes that property and fixes errors in placement group acceptance tests.

Instance refactor PR: #5385

Output from acceptance testing:

--- PASS: TestAccIBMPIInstanceBasic (1267.70s)
PASS

--- PASS: TestAccIBMPIPlacementGroupBasic (4442.97s)
PASS

…up_id and fix placement group acceptance test
@Alexander-Kita Alexander-Kita force-pushed the fix-pg-remove-behavior branch from ecc956a to 5d59d8d Compare May 13, 2025 16:17
@Alexander-Kita Alexander-Kita requested a review from yussufsh May 13, 2025 16:19
@Alexander-Kita Alexander-Kita changed the title [Resource] Remove computed property from pi_instance "pi_placement_group_id" and fix placement group acceptance test [Resource] Remove computed property from pi_instance "pi_placement_group_id", fix placement group acceptance test, add wait for placement group delete May 13, 2025

_, err = isWaitForPIPlacementGroupDeleted(ctx, client, parts[1], d.Timeout(schema.TimeoutDelete))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revisit timeouts in future PRs... 60 mins is too much here.

@yussufsh yussufsh merged commit 7e33ef6 into IBM-Cloud:master May 15, 2025
1 check passed
@yussufsh yussufsh deleted the fix-pg-remove-behavior branch May 15, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants