-
Notifications
You must be signed in to change notification settings - Fork 897
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 orchestration stack targeted refresh method #15936
Add orchestration stack targeted refresh method #15936
Conversation
Add orchestration stack targeted refresh method, that based on settings will perform targeted or full refresh.
Add class method for OrchestrationStack refresh
Checked commits Ladas/manageiq@0537cc8~...300deb4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
# Queue new targeted refresh if allowed | ||
orchestration_stack_target = ManagerRefresh::Target.new(:manager => manager, | ||
:association => :orchestration_stacks, | ||
:manager_ref => {:ems_ref => manager_ref}) |
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.
Much better than refresh_new_target
👍
end | ||
unless manager.authentication_status_ok? | ||
raise _("%{table} failed last authentication check") % {:table => ui_lookup(:table => "ext_management_systems")} | ||
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.
We should move these conditions to a common method, the same code pattern is in ext_management_system
, host
, and two places in vm_or_template
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.
yes, I plan to extract it
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.
👍
Lets follow this up with some refactoring to move the manager checks to a common place
…ation_stack Add orchestration stack targeted refresh method
Add orchestration stack targeted refresh method, that based on
settings will perform targeted or full refresh.
Required by:
ManageIQ/manageiq-automation_engine#68
ManageIQ/manageiq-content#182