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

Remove check on number of runners when converting VM #395

Merged
merged 2 commits into from
Aug 9, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 9, 2018

When launching the conversion of the VM with virt-v2v, we check that the number of runners is not above the max number of runners per provider. However this check has already been done when acquiring the conversion host, and it leads to pausing the last tasks (number defined by number of generic workers).

This PR removes this check, allowing the balancing to fill the pool of conversions.

Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1600152

@ghost
Copy link
Author

ghost commented Aug 9, 2018

@miq-bot add-labels transformation, bug, gaprindashvili/yes, blocker

@ghost ghost changed the title Remove check on nmuber of runners when converting VM Remove check on number of runners when converting VM Aug 9, 2018
@gmcculloug gmcculloug added the bug label Aug 9, 2018
ManageIQ::Automate::Transformation::TransformationHost::Common::VMTransform.new.main
if == __FILE__
ManageIQ::Automate::Transformation::TransformationHost::Common::VMTransform.new.main
end
Copy link
Member

Choose a reason for hiding this comment

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

@fdupont-redhat Please follow the changes from #390. You no longer need the if-block here.

result = Transformation::TransformationHosts::Common::Utils.remote_command(task, transformation_host, "/usr/bin/virt-v2v-wrapper.py", wrapper_options.to_json)
raise result[:stderr] unless result[:rc].zero?
@handle.log(:info, "Connecting to #{transformation_host.name} as #{transformation_host.authentication_userid}") if @debug
@handle.log(:info, "Executing '/usr/bin/virt-v2v-wrapper.py'")
Copy link
Contributor

Choose a reason for hiding this comment

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

@fdupont-redhat
Do we have roles enabled for these tasks to be reliably run on a server where the code exists?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, the role is enabled as we filter out the hosts in AcquireTransformationHost.

@miq-bot
Copy link
Member

miq-bot commented Aug 9, 2018

Checked commits fabiendupont/manageiq-content@be2da65~...8310264 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@mkanoor mkanoor merged commit 7a0d04d into ManageIQ:master Aug 9, 2018
@mkanoor mkanoor added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 9, 2018
simaishi pushed a commit that referenced this pull request Aug 13, 2018
Remove check on number of runners when converting VM
(cherry picked from commit 7a0d04d)

https://bugzilla.redhat.com/show_bug.cgi?id=1610550
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 17ab5dac50196eb5f58ade4c891856477103b236
Author: Madhu Kanoor <mkanoor@redhat.com>
Date:   Thu Aug 9 11:26:00 2018 -0400

    Merge pull request #395 from fdupont-redhat/v2v_fix_workers_balance
    
    Remove check on number of runners when converting VM
    (cherry picked from commit 7a0d04d09e2f66cb815aa51af5bdc0475930f56d)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1610550

@ghost ghost deleted the v2v_fix_workers_balance branch August 14, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants