-
Notifications
You must be signed in to change notification settings - Fork 898
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
[V2V] Add restoring_vm_attributes state to InfraConversionJob #19240
[V2V] Add restoring_vm_attributes state to InfraConversionJob #19240
Conversation
app/models/infra_conversion_job.rb
Outdated
def apply_right_sizing_memory(mode) | ||
destination_vm.set_memory(source_vm.send("#{mode}_recommended_mem")) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these already in #19238? Not a big deal, just thought it was odd.
@fdupont-redhat seems like you mixed in a lot of identical code from #19238 which is making this a little difficult to review. |
fb0987e
to
9f57a48
Compare
@miq-bot remove-label unmergeable |
Checked commits fabiendupont/manageiq@ff66fba~...9f57a48 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. LGTM!
…re_vm_attributes [V2V] Add restoring_vm_attributes state to InfraConversionJob (cherry picked from commit 399ea75) https://bugzilla.redhat.com/show_bug.cgi?id=1768524
Ivanchuk backport details:
|
…ne_restore_vm_attributes" This reverts commit b752d4e. https://bugzilla.redhat.com/show_bug.cgi?id=1768524
Reverted the backport
|
…re_vm_attributes [V2V] Add restoring_vm_attributes state to InfraConversionJob (cherry picked from commit 399ea75) https://bugzilla.redhat.com/show_bug.cgi?id=1768524
Ivanchuk backport details:
|
For IMS 1.3 we're moving state machine handling from automate into core. For ease of writing and review, we're breaking this down into (hopefully) easily digestible bits, one state at a time. Each PR will ultimately have a corresponding PR in manageiq-content that deletes the relevant bit of code from automate.
Original automate code:
https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/Transformation/Infrastructure/VM/Common.class/__methods__/restorevmattributes.rb
This PR adds restoring_vm_attributes state to the state machine. The state machine is changed to allow transition from applying_right_sizing.
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1748075
Depends on #19149, #19150, #19154, #19177, #19200, #19216, #19222, #19230, #19238
Built on #19238