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 targeted refresh specs to PowerVS / Fix targeted VM refresh bug #479

Merged
merged 8 commits into from
Jan 23, 2024

Conversation

jaywcarman
Copy link
Member

I noticed duplicate entries in the advanced_settings table on an internal MIQ instance. @agrare suggested I add some targeted refresh specs to see if it caught the issue. Looks like there is an issue with duplicate snapshots.

Needed to update this image in order to provider with "tier1" storage
type.
The vcr:power_virtual_servers:setup rake task creats a total of 6 VMs:

4 x VMs with a single (private) network
2 x VMs with one private network and one public network

(4x1)+(2x2)=8 total network ports for the VMs
For the PowerVS provider, Flavor maps to system types and SAP profiles.
The total available count can fluctuate over time and regions.
In the PowerVS region specs were recorded in, the following 4 storage
types are available:

$ ibmcloud pi storage-types
Listing storage types in region mon01...
Type     Description
tier0    Tier0 - 25 iops/gb
tier1    Tier1 - 10 iops/gb
tier3    Tier3 - 3 iops/gb
tier5k   Tier5k - 5000 fixed iops
The recent VCR cassette was recorded using the mon01 region.
@jaywcarman jaywcarman force-pushed the powervs_targeted_vm_refresh_specs branch from 9f3b1df to 82e6ed7 Compare January 19, 2024 23:03
@jaywcarman jaywcarman changed the title [WIP] Add targeted refresh specs to PowerVS Add targeted refresh specs to PowerVS / Fix targeted VM refresh bug Jan 19, 2024
@miq-bot miq-bot removed the wip label Jan 19, 2024
@agrare agrare self-assigned this Jan 22, 2024
@agrare agrare added bug Something isn't working quinteros/yes? labels Jan 22, 2024
The PowerVS instance API does not include a list of snapshots. The only
way to generate a list of snapshots that belong to a particule instance
is to get all snapshots and filter based on instance ID.
@jaywcarman jaywcarman force-pushed the powervs_targeted_vm_refresh_specs branch from 82e6ed7 to a7f1986 Compare January 22, 2024 22:02
@miq-bot
Copy link
Member

miq-bot commented Jan 22, 2024

Checked commits jaywcarman/manageiq-providers-ibm_cloud@0255308~...a7f1986 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
3 files checked, 0 offenses detected
Everything looks fine. 👍

@agrare agrare merged commit 14a1b1d into ManageIQ:master Jan 23, 2024
3 checks passed
@jaywcarman jaywcarman deleted the powervs_targeted_vm_refresh_specs branch January 23, 2024 15:49
@Fryguy
Copy link
Member

Fryguy commented Jan 31, 2024

Backported to quinteros in commit a1be394.

commit a1be39427584aeb46dd66ebc0bbd105d700316b7
Author: Adam Grare <adam@grare.com>
Date:   Tue Jan 23 09:28:44 2024 -0500

    Merge pull request #479 from jaywcarman/powervs_targeted_vm_refresh_specs
    
    Add targeted refresh specs to PowerVS / Fix targeted VM refresh bug
    
    (cherry picked from commit 14a1b1dc33c14ed445c4afa574e07b5c33bfb718)

Fryguy pushed a commit that referenced this pull request Jan 31, 2024
…pecs

Add targeted refresh specs to PowerVS / Fix targeted VM refresh bug

(cherry picked from commit 14a1b1d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working quinteros/backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants