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

[api] VM power operations are not queued properly #8225

Merged
merged 1 commit into from Apr 25, 2016

Conversation

abellotti
Copy link
Member

When queueing VM power or smartstate operations, the zone was not getting
specified for the queue so in environments with providers in different zones,
those providers were not getting the task to perform on those VMs.

This fixes: #7998

https://bugzilla.redhat.com/show_bug.cgi?id=1326955

When queueing VM power or smartstate operations, the zone was not getting
specified for the queue so in environments with providers in different zones,
those providers were not getting the task to perform on those VMs.

This fixes: ManageIQ#7998

https://bugzilla.redhat.com/show_bug.cgi?id=1326955
@abellotti abellotti self-assigned this Apr 25, 2016
@abellotti abellotti added this to the Sprint 40 Ending May 9, 2016 milestone Apr 25, 2016
@abellotti
Copy link
Member Author

@gtanzillo @imtayadeway please review.

@miq-bot
Copy link
Member

miq-bot commented Apr 25, 2016

Checked commit abellotti@7b76cc4 with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1
2 files checked, 0 offenses detected
Everything looks good. 👍

:method_name => "start",
:zone => zone.name).count).to eq(1)
end

Copy link
Member

Choose a reason for hiding this comment

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

@abellotti Do you think we need to test the case where the request comes in to an appliance in one zone but should be queued in a different zone? Not really sure how necessary that test is because in either case the message should be queued to the zone of the object and this test does that. So I'll leave it up to you.

Copy link
Member Author

Choose a reason for hiding this comment

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

unless we're testing the my_zone method, I don't think it's necessary, without the fix, this test fails (zone is not added in the queue). here the zone obtained is from the vm/instance my_zone (which is the my_zone of the vm's ems), and in the test case, the api_zone of the ems in the api test env.

@gtanzillo gtanzillo merged commit f495df9 into ManageIQ:master Apr 25, 2016
chessbyte pushed a commit that referenced this pull request Apr 26, 2016
[api] VM power operations are not queued properly
(cherry picked from commit f495df9)
@abellotti abellotti deleted the api_vm_power_ops_zone branch June 21, 2016 19:23
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.

[api] VM power operations are not queued properly
4 participants