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

[EUWE] Add config option to skip container_images #15885

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Aug 23, 2017

Cherry-pick of #14606 to euwe

In some OpenShift environments the number of container images can result
in extremely large API responses to the point where the connection will
timeout, as well as save_inventory times can be dramatically longer.

This adds a config option that if set to false will not request
container images from the /ImageList endpoint and will not parse them in
the RefreshParser.

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

@cben
Copy link
Contributor

cben commented Aug 23, 2017

👍 LGTM

@agrare agrare force-pushed the euwe_allow_container_images_to_be_skipped branch 2 times, most recently from 18b4747 to 1bbb7c4 Compare August 23, 2017 22:22
…to_be_skipped

Add config option to skip container_images

(cherry picked from commit d3ebee7)
@agrare agrare force-pushed the euwe_allow_container_images_to_be_skipped branch from 1bbb7c4 to d89ceea Compare August 24, 2017 12:41
@miq-bot
Copy link
Member

miq-bot commented Aug 24, 2017

Checked commit agrare@d89ceea with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 1 offense detected

spec/models/manageiq/providers/openshift/container_manager/refresher_spec.rb

@@ -142,6 +142,22 @@
end
end

it 'will skip container_images if get_container_images = false' do
stub_settings(Settings.to_hash.deep_merge(
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no stub_settings_merge in euwe so had to do this manually (this is what stub_settings_merge does internally anyway)

@agrare
Copy link
Member Author

agrare commented Aug 24, 2017

@simaishi fixed the spec settings failure

@simaishi simaishi merged commit 38b50b7 into ManageIQ:euwe Aug 25, 2017
@simaishi simaishi added this to the Sprint 68 Ending Sep 4, 2017 milestone Aug 25, 2017
@agrare agrare deleted the euwe_allow_container_images_to_be_skipped branch January 16, 2018 21:20
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.

5 participants