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

use task queue for update stack operation #13897

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

sseago
Copy link
Contributor

@sseago sseago commented Feb 14, 2017

Update stack should use the task queue for direct operation on the
provider (used by scaling/scaledown UI in ems infra)

This commit includes the necessary model changes.

Update stack should use the task queue for direct operation on the
provider (used by scaling/scaledown UI in ems infra)

This commit includes the necessary model changes.
@miq-bot
Copy link
Member

miq-bot commented Feb 14, 2017

Checked commit sseago@88d5247 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍪

@gmcculloug
Copy link
Member

Looks good to me. @bzwei Any comments?

@@ -85,6 +85,22 @@ def raw_update_stack(_template, _options = {})
raise NotImplementedError, _("raw_update_stack must be implemented in a subclass")
end

def update_stack_queue(userid, template, options = {})
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does this method get called?
If we add queue version to update, shouldn't we do the same to create and delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bzwei I've updated the ems_infra_controller scaling/scaledown actions to call this rather than raw_update_stack (as part of a larger mandate to remove any direct provider calls from UI controllers) -- you can see that in ManageIQ/manageiq-ui-classic#373

As for create/delete, it would make sense to add those, but so far (across all models) we have only added _queue methods for those provider actions that are actually called from the UI. At the moment nothing in the UI calls create or delete on orchestration stacks.

@gmcculloug gmcculloug merged commit 594f5e9 into ManageIQ:master Feb 16, 2017
@gmcculloug gmcculloug added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 16, 2017
@gmcculloug
Copy link
Member

@sseago Is this meant for the Euwe release? Since there is no referenced BZ I will mark as euwe/no for now.

@sseago
Copy link
Contributor Author

sseago commented Feb 16, 2017

@gmcculloug That's right. This isn't needed for Euwe.

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.

6 participants