-
Notifications
You must be signed in to change notification settings - Fork 118
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 support to apply right-size recommendation during transformation #417
Add support to apply right-size recommendation during transformation #417
Conversation
@miq-bot add-label transformation, enhancement, gaprindashvili/yes, blocker |
@miq-bot add-reviewer mkanoor |
c159377
to
4fb23fa
Compare
@fdupont-redhat @bthurber I'm removing the If this is truly a blocker fix then please set the flag on the BZs, update the dependent PRs and then we can reset here. Thanks. |
This pull request is not mergeable. Please rebase and repush. |
4fb23fa
to
73b22c7
Compare
@miq-bot add_label blocker |
@gmcculloug just saw your note about the blocker flag. Let me know if this should be removed (again),..however the BZ does have the blocker flag. |
@JPrause The blocker flag was added to the BZ on 08-31 which was the day after I commented on it here, so it is legit now. |
def main | ||
RIGHT_SIZE_ITEMS.each do |item| | ||
next unless @task.get_option("right_size_strategy_#{item}".to_sym) | ||
send("apply_right_size_#{item}", @task.get_option("right_size_strategy_#{item}".to_sym)) |
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.
@fdupont-redhat If you are doing an expensive lookup it is better to store this value into a variable where you can give it a more meaningful name.
Minor change, but I would suggest using:
RIGHT_SIZE_ITEMS.each do |item|
right_size_strategy = @task.get_option("right_size_strategy_#{item}".to_sym)
send("apply_right_size_#{item}", right_size_strategy) if right_size_strategy
end
Checked commits fabiendupont/manageiq-content@73b22c7~...a0587ca with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 content/automate/ManageIQ/Transformation/Infrastructure/VM/Common.class/methods/applyrightsize.rb
|
Add support to apply right-size recommendation during transformation (cherry picked from commit 4f98a78) https://bugzilla.redhat.com/show_bug.cgi?id=1623072
Hammer backport details:
|
Add support to apply right-size recommendation during transformation (cherry picked from commit 4f98a78) https://bugzilla.redhat.com/show_bug.cgi?id=1634834
Gaprindashvili backport details:
|
Reverted the Gaprindashvili backport.
|
When migrating a virtual machine, we have the opportunity to apply right-size recommendation as it is shutdown in the migration process. This brings the additional ability to shrink the target environment and lower the TCO.
Depends on:
Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1623072