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

Handle providers that may not support managed images or disks #257

Merged
merged 1 commit into from
Jun 7, 2018
Merged

Handle providers that may not support managed images or disks #257

merged 1 commit into from
Jun 7, 2018

Conversation

djberg96
Copy link
Collaborator

@djberg96 djberg96 commented May 15, 2018

At least one region (US Gov Iowa) doe not currently support managed images or disks. As a result, the refresh parser will blow up when it attempts to collect that information. This PR adds a check to see if the provider supports managed images and disks before attempting to collect that information. If not it simply returns an empty array.

https://azure.microsoft.com/en-us/global-infrastructure/services/

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

Although the BZ listed above was originally written for Azure Stack, it applies generally.

@djberg96 djberg96 changed the title Handle providers that may not support managed images or disks [WIP] Handle providers that may not support managed images or disks May 15, 2018
@djberg96 djberg96 added the wip label May 15, 2018
@djberg96
Copy link
Collaborator Author

@bsquizz I need to add some specs, but this should work for Azure stack.

@djberg96
Copy link
Collaborator Author

Note to self, regenerate the cassettes.

…hem.

Updated flavor count, refreshed cassettes.
@miq-bot
Copy link
Member

miq-bot commented Jun 6, 2018

Checked commit https://github.com/djberg96/manageiq-providers-azure/commit/835c86dfb83eb1a59c896f6d553494810d6f15bc with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 0 offenses detected
Everything looks fine. 🍪

@djberg96 djberg96 changed the title [WIP] Handle providers that may not support managed images or disks Handle providers that may not support managed images or disks Jun 7, 2018
@miq-bot miq-bot removed the wip label Jun 7, 2018
@bronaghs
Copy link

bronaghs commented Jun 7, 2018

@djberg96 Why did this call for all the cassettes to be regenerated?

@djberg96
Copy link
Collaborator Author

djberg96 commented Jun 7, 2018

@bronaghs Because the supported? check is actually making a request to the Azure REST API, so that has to be recorded.

@bronaghs
Copy link

bronaghs commented Jun 7, 2018

Spoke to Dan offline, the change in API version led to the regeneration of many new cassettes. This widespread update did not break any tests.

@bronaghs bronaghs merged commit 50d98bc into ManageIQ:master Jun 7, 2018
@bronaghs
Copy link

bronaghs commented Jun 7, 2018

@djberg96 - can you set the backport labels?

@bronaghs bronaghs added this to the Sprint 88 Ending Jun 18, 2018 milestone Jun 7, 2018
@bronaghs bronaghs added the bug label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants