Bug 1325395

Summary: [DOCS] Working with proxies documentation is missing hawkular-metrics settings
Product: OpenShift Container Platform Reporter: Vinicius <vmartine>
Component: DocumentationAssignee: Brandi Munilla <bmcelvee>
Status: CLOSED CURRENTRELEASE QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact: Vikram Goyal <vigoyal>
Priority: low    
Version: 3.1.0CC: aos-bugs, jokerman, jstickle, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-04 14:34:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vinicius 2016-04-08 17:12:20 UTC
Document URL: 

https://access.redhat.com/documentation/en/openshift-enterprise/3.1/installation-and-configuration/chapter-15-working-with-http-proxies

Section Number and Name: 

Describe the issue:

In order to successfully deploy hawkular-metrics on "proxied" OSE environment, the following services should be included in "NO_PROXY" configuration:

- hawkular-cassandra
- hawkular-metrics
- heapster

* service IP for all services - oc get svc

Furthermore, you should need also include kubernetes and kawkular-metrics url as NO_PROXY. Example:

NO_PROXY=,kubernetes.default.svc,hawkular-metrics.cloudapps.example.com,172.30.112.55,172.30.70.245,172.30.189.167

Finally, you need to include both "application" and "openshift infra domain" (when using tow dns zones) as NO_PROXY. Example:

NO_PROXY=master.infra.openshift.com,node01.infra.openshift.com,node02.infra.openshift.com,infra.openshift.com,cloudapps.openshift.com

Final "NO_PROXY" SAMPLE:

NO_PROXY=master.infra.openshift.com,node01.infra.openshift.com,node02.infra.openshift.com,infra.openshift.com,cloudapps.openshift.com,kubernetes.default.svc,hawkular-metrics.cloudapps.example.com,172.30.112.55,172.30.70.245,172.30.189.167


Additional information: 

Although hawkular-metrics is successfully deployed (with the above seetings), AutoScaling does not wotk on a proxied environment. Please see:

- https://bugzilla.redhat.com/show_bug.cgi?id=1320441
- https://access.redhat.com/solutions/2216341

Comment 5 Brandi Munilla 2018-04-05 18:57:28 UTC
@Vinicius, please take a look at the following PR: 

https://github.com/openshift/openshift-docs/pull/8615

This topic went through substantial changes between 3.1 and 3.2. Is the this content accurate beyond 3.1?

Thanks!

Comment 6 Brandi Munilla 2018-05-11 13:53:25 UTC
Hi Anping, PTAL. Thanks!

Comment 7 Junqi Zhao 2018-05-15 03:27:18 UTC
@brandi,

I think you missed the followings

"Finally, you need to include both "application" and "openshift infra domain" (when using tow dns zones) as NO_PROXY"

and I think change to below is OK


To deploy Hawkular Metrics on a proxied {product-title} environment, the following services should be included in `NO_PROXY` configuration:

* Hawkular Cassandra
* Hawkular Metrics
* Heapster
* Kubernetes
* Application
* OpenShift infra domain(added when using two dns zones)

Comment 8 Brandi Munilla 2018-05-21 16:45:03 UTC
Thanks, @Junqi! 

I updated the PR.

Comment 9 Vinicius 2018-05-21 19:05:33 UTC
Hello guys,

I'm sorry for this late reply but unfortunately this issue was raised during a PoC, which was deployed two years ago, therefore, I cannot reproduce/confirm it anymore.

Best regardsm

Comment 10 Junqi Zhao 2018-05-22 00:24:08 UTC
Doc is LGTM