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

Allow Service retirement over Centralized Administration #4790

Merged

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Oct 17, 2018

Issue: in multiregion environment attempt to retire service replicated to Global region will fail with "The selected Service is not in the current region"

This PR: allow retire_now task to be processed via Centralized Administration for Service and OrchestrationStack

BEFORE:
before2

AFTER:
after2

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

@miq-bot add-label bug, gaprindashvili/yes, hammer/yes

@yrudman yrudman force-pushed the allow-remote-retiement-for-service branch 2 times, most recently from 74fbc13 to 9bc7407 Compare October 17, 2018 19:23
@yrudman yrudman force-pushed the allow-remote-retiement-for-service branch from 9bc7407 to f80cb98 Compare October 18, 2018 11:43
@miq-bot
Copy link
Member

miq-bot commented Oct 18, 2018

Checked commit yrudman@f80cb98 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. 🏆

@yrudman yrudman closed this Oct 18, 2018
@yrudman yrudman reopened this Oct 18, 2018
@JPrause
Copy link
Member

JPrause commented Oct 19, 2018

@miq-bot add_label blocker

@yrudman yrudman changed the title [WIP] Allow Service retirement over Centralized Administration Allow Service retirement over Centralized Administration Oct 19, 2018
@miq-bot miq-bot removed the wip label Oct 19, 2018
@yrudman
Copy link
Contributor Author

yrudman commented Oct 19, 2018

\cc @gtanzillo @tinaafitz

when 'OrchestrationStack', 'Service', 'CloudObjectStoreContainer', 'CloudObjectStoreObject'
objs, _objs_out_reg = filter_ids_in_region(objs, klass.to_s)
when 'CloudObjectStoreContainer', 'CloudObjectStoreObject'
objs, _objs_out_reg = filter_ids_in_region(objs, klass_str)
when 'VmOrTemplate'
Copy link
Member

Choose a reason for hiding this comment

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

Hi @yrudman Why would the condition be different for VM's here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tinaafitz
There are several reasons to add separate when:

  • Service would have only one available for centralized Administration task in that method - retire_now but Vm has much longer list of tasks available for Centralized administration and it would looks confusing to put Vm and Service together
  • value in case condition and parameter passed to filter_in_region are different strings for Vm

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @yrudman.

@mzazrivec mzazrivec self-assigned this Oct 24, 2018
@mzazrivec mzazrivec added this to the Sprint 98 Ending Nov 5, 2018 milestone Oct 24, 2018
@mzazrivec mzazrivec merged commit c15b650 into ManageIQ:master Oct 24, 2018
@yrudman yrudman deleted the allow-remote-retiement-for-service branch October 24, 2018 11:27
simaishi pushed a commit that referenced this pull request Oct 24, 2018
Allow Service retirement over Centralized Administration

(cherry picked from commit c15b650)

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

Hammer backport details:

$ git log -1
commit bd81cce173fccc5f34eb0cabb11d2d8019f96ded
Author: Milan Zázrivec <[email protected]>
Date:   Wed Oct 24 11:17:16 2018 +0200

    Merge pull request #4790 from yrudman/allow-remote-retiement-for-service
    
    Allow Service retirement over Centralized Administration
    
    (cherry picked from commit c15b650e12e36b685fe69c59da646f9ce64ff23a)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1633142

simaishi pushed a commit that referenced this pull request Nov 5, 2018
Allow Service retirement over Centralized Administration

(cherry picked from commit c15b650)

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

simaishi commented Nov 5, 2018

Gaprindashvili backport details:

$ git log -1
commit ea019350559911cca3c8affcb16e753a7e1f4330
Author: Milan Zázrivec <[email protected]>
Date:   Wed Oct 24 11:17:16 2018 +0200

    Merge pull request #4790 from yrudman/allow-remote-retiement-for-service
    
    Allow Service retirement over Centralized Administration
    
    (cherry picked from commit c15b650e12e36b685fe69c59da646f9ce64ff23a)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1643261

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.

7 participants