Bug 1365369

Summary: [RFE] support setting HTTP_PROXY environment values for image-inspector deploy
Product: Red Hat CloudForms Management Engine Reporter: Kenjiro Nakayama <knakayam>
Component: SmartState AnalysisAssignee: Erez Freiberger <efreiber>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: dajohnso, dron, efreiber, gblomqui, jhardy, jocarter, myoder, obarenbo, pmukhedk, simaishi, tachoi
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container:smartstate
Fixed In Version: 5.7.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 12:59:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On: 1406023    
Bug Blocks:    

Description Kenjiro Nakayama 2016-08-09 05:55:01 UTC
Description of problem:

When the user uses image-inspector under proxy, the image needs a external access to download CVE file. However, CloudForms doesn't support to set them.

Version-Release number of selected component (if applicable):

- CFME 4.1

Actual results:

- See this code. There are no way to setting HTTP_PROXY, HTTPS_PROXY env values
- https://github.com/ManageIQ/manageiq/blob/master/app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb#L325-L346

Expected results:

- Support a way to set environment valu. For example, we expect to set the value like as override image name as override_containers_scanning_image.rb

Comment 3 Erez Freiberger 2016-08-16 11:43:14 UTC
I feel like this might be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1348610

Any way I posted a PR add this option:
https://github.com/ManageIQ/manageiq/pull/10503

Comment 6 Jaroslav Henner 2016-10-24 19:02:10 UTC
It is unclear to me how to verify this. Am I supposed to configure openshift to use some HTTP proxy and then trigger some image scan in CFME?

Comment 11 errata-xmlrpc 2017-01-04 12:59:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0012.html

Comment 12 myoder 2017-01-05 19:44:40 UTC
Hey Erez,

How do I configure this in the events configuration file?  I don't see anything for OpenShift, I only see proxy settings for EC2 and for Azure.

Thanks,
Michael

Comment 13 Erez Freiberger 2017-01-08 10:57:43 UTC
Hi Michael,
I don't think this is configurable from the events configuration file. You have to set the CustomAttribute's of the provider that you want to configure.

We will soon have a fix for the API that will allow the manageiq ansible module to configure those CustomAttributes.

Erez

[1]https://github.com/ManageIQ/manageiq/pull/12913
[2]https://github.com/ManageIQ/manageiq/pull/13360