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

[DARGA] removed gov cloud from aws list of regions #10902

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

durandom
Copy link
Member

@durandom durandom commented Aug 31, 2016

@Fryguy
Copy link
Member

Fryguy commented Aug 31, 2016

@chessbyte Can you hold on merging to darga? I have reservations about the original PR ManageIQ/manageiq-providers-amazon#38

@durandom durandom force-pushed the darga_remove_aws_gov_cloud branch 2 times, most recently from 877f46a to cd8f54e Compare September 1, 2016 11:22
@durandom
Copy link
Member Author

durandom commented Sep 1, 2016

@Fryguy how do you like this? gov_cloud would be disabled by default and customers that need it, can enable it through a setting.

I'd put up a PR for master in the amazon repo, once this is merged

@durandom
Copy link
Member Author

durandom commented Sep 1, 2016

cc @blomquisg

@durandom durandom force-pushed the darga_remove_aws_gov_cloud branch from cd8f54e to a143c9d Compare September 2, 2016 13:54
@durandom
Copy link
Member Author

durandom commented Sep 6, 2016

@Fryguy could you give your 👍 or 👎 ?

@Fryguy
Copy link
Member

Fryguy commented Sep 7, 2016

@durandom So I was thinking something much more generic, because you are going to need this in other providers. For example, in Azure there are actually multiple gov cloud regions, and what's to say that amazon won't also create multiple at some point. Ultimately the feature is to "disable regions"...we just so happen to need gov cloud, but why not be able to disable any region? So I was thinking having a setting in each provider settings section called "disabled_regions"

:ems_amazon:
  :disabled_regions: []

By default it's empty, but one could do:

:ems_amazon:
  :disabled_regions:
  - us-gov-west-1

What's nice about this approach is it opens up multiple things

  • Cross-provider support for disabling regions
  • User-specific disablement of regions...say a customer doesn't want their users to accidentally use a non-US-based region.
  • Non-gov region disablement (for example China on Azure works differently that other regions and may not be available, so a company may want to disable it).

@Fryguy
Copy link
Member

Fryguy commented Sep 7, 2016

Also, on ManageIQ I don't believe we should disable anything by default, whether it's providers, regions, translations, or whatever. @blomquisg Thoughts?

@durandom durandom force-pushed the darga_remove_aws_gov_cloud branch from a143c9d to 5abd33c Compare September 8, 2016 08:31
@durandom
Copy link
Member Author

durandom commented Sep 8, 2016

@Fryguy incorporated your suggestions. The downside is, the regions are filtered at runtime. But thats not a real performance issue, since its just small array/hash operations.

@durandom durandom force-pushed the darga_remove_aws_gov_cloud branch from 5abd33c to 9252b24 Compare September 8, 2016 08:42
@Fryguy
Copy link
Member

Fryguy commented Sep 8, 2016

@durandom This is perfect 👍

So, as far as backporting goes, let's get into master on the gem, and then backport

@durandom durandom force-pushed the darga_remove_aws_gov_cloud branch from 9252b24 to b6be4f9 Compare September 8, 2016 13:21
@miq-bot
Copy link
Member

miq-bot commented Sep 8, 2016

Checked commit durandom@b6be4f9 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
2 files checked, 0 offenses detected
Everything looks good. 👍

@durandom
Copy link
Member Author

durandom commented Sep 8, 2016

So, as far as backporting goes, let's get into master on the gem, and then backport

Yea, but the gems dont support settings.yml yet, so backporting via cherry-picking would result in a conflict anyways :/

So, lets get #10944 in and then continue on this ManageIQ/manageiq-providers-amazon#44

For now, I'd let @chessbyte merge this PR as is

@Fryguy
Copy link
Member

Fryguy commented Sep 8, 2016

I'll leave it up to @chessbyte, then. Downstream first always concerns me.

@durandom
Copy link
Member Author

durandom commented Sep 8, 2016

Downstream first always concerns me.

Totally agree, and would be there only 1 day to go, I'd wait until we can have the same implemented in master.

So, @chessbyte, merge ?

@chessbyte chessbyte merged commit 41ee681 into ManageIQ:darga Sep 8, 2016
@chessbyte chessbyte added this to the Sprint 46 Ending Sep 12, 2016 milestone Sep 8, 2016
@durandom durandom deleted the darga_remove_aws_gov_cloud branch September 8, 2016 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.

4 participants