Skip to content
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

Add processor pools as resource pools to inventory collection #431

Closed

Conversation

alizapeikes
Copy link
Contributor

@alizapeikes alizapeikes commented Nov 8, 2022

@agrare
Copy link
Member

agrare commented Nov 16, 2022

@miq-bot cross-repo-tests ManageIQ/manageiq#22228

@agrare
Copy link
Member

agrare commented Nov 17, 2022

@alizapeikes seems like this is primarily held up by IBM-Cloud/ibm-cloud-sdk-ruby#70 is that right?

@alizapeikes
Copy link
Contributor Author

@alizapeikes seems like this is primarily held up by IBM-Cloud/ibm-cloud-sdk-ruby#70 is that right?

Yes. @jaywcarman is also working on fixing the powerVS refresher spec VCR so we can include resource_pools in the testing.

@alizapeikes alizapeikes changed the title [WIP] Add processor pools as resource pools to inventory collection Add processor pools as resource pools to inventory collection Nov 30, 2022
@miq-bot miq-bot removed the wip label Nov 30, 2022
@alizapeikes alizapeikes changed the title Add processor pools as resource pools to inventory collection [WIP] Add processor pools as resource pools to inventory collection Dec 1, 2022
@miq-bot miq-bot added the wip label Dec 1, 2022
@alizapeikes alizapeikes changed the title [WIP] Add processor pools as resource pools to inventory collection Add processor pools as resource pools to inventory collection Dec 1, 2022
@alizapeikes
Copy link
Contributor Author

@agrare
Ready for review (I did not end up making any new changes)

@miq-bot miq-bot removed the wip label Dec 1, 2022
@agrare agrare closed this Dec 2, 2022
@agrare agrare reopened this Dec 2, 2022
@miyamotoh
Copy link
Contributor

With this PR, I can get my test pool from a PowerVS instance, and get it show up properly in a Resource Pool Summary report.
image
@agrare what to do to retry CI checks?

@jaywcarman jaywcarman force-pushed the processor-pools-resource-pools branch from ec3e9ac to fdd3d4c Compare January 27, 2023 12:34
@jaywcarman
Copy link
Member

I rebased this onto master to include the ibm_cloud_power gem update to v2.1 (3d31bfc) which includes the shared processor pool apis.. The refresh VCR cassette now needs to be re-recorded to include the shared_processor_pools_api.pcloud_sharedprocessorpools_getall call.

Update refresher VCR cassette to include new shared processor pool API
calls.
Unfortunately, the PowerVS region we use for testing has limited
capacity and setting too many affinity controls in the specs makes
re-recording them a pain.
Only one cloud subnet is expected here - fixing the spec and removing
the old TODO.
expect(vm).to have_attributes(
:location => "unknown",
:name => instance_name,
:description => "PVM Instance",
:vendor => "ibm_power_vs",
:power_state => "on",
:placement_group_id => placement_group.id,
:placement_group_id => nil,
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Good catch. I switched assert_specific_vm to use a VM that is still a member of a placement group so we can keep the lazy find coverage.

For the resource group lazy find we'll need to record another VCR cassette with a shared processor pool (the current cassette doesn't have any). fyi @miyamotoh

The "specific" VM used in the refresher spec was no longer a member of a
placement group (see bed18fd). Using another VM in order to keep the
placement_group lazy find spec coverage.
@miq-bot
Copy link
Member

miq-bot commented Jan 31, 2023

Checked commits alizapeikes/manageiq-providers-ibm_cloud@fdd3d4c~...868d892 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
7 files checked, 0 offenses detected
Everything looks fine. 🍪

@agrare
Copy link
Member

agrare commented Jan 31, 2023

Closing in favor of #443

@agrare agrare closed this Jan 31, 2023
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.

None yet

5 participants