Bug 1519808

Summary: View archive link for default and metrics pods redirects to wrong kibana url
Product: OpenShift Container Platform Reporter: Rajnikant <rkant>
Component: LoggingAssignee: Jeff Cantrill <jcantril>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.1CC: aos-bugs, bcankurt, jmalde, juzhao, rkant, rmeggins
Target Milestone: ---   
Target Release: 3.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The annotation to identify the proper kibana instance to use for ops namespaces is being set regardless of if an OPS logging cluster is used or not Consequence: Users will be directed to non-existent service from the origin web console when trying to view operations logs Fix: For existing deployments, manually run 'oc annotate ns $NAMESPACE openshift.io/logging.ui.hostname-' for each affected namespace. New deployments will only have this annotation set by the installer if 'openshift_logging_use_ops' variable is set to true. Result: User's will be directed to the correct version of Kibana when viewing ops logs from the origin web console.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-23 17:59:00 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:
Embargoed:
Attachments:
Description Flags
openshift-infra pod, view archive link redirect to correct url
none
pod under default project, view archive link redirect to correct url
none
pod under openshift-infra project, view archive link redirect to correct url none

Description Rajnikant 2017-12-01 13:23:44 UTC
Description of problem:

Customer did not install logging EFK using parameter "openshift_logging_use_ops", even then view archive link of default and metrics is redirecting to incorrect operational ops url "kibana-ops.test.example.com".

loggingPublicURL i.e logging.test.example.com

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

How reproducible:

Installation of logging EFK without logging ops

Steps to Reproduce:

1. Deploy logging EFK, do not use parameter "openshift_logging_use_ops"
2. check view archive link of default project it redirects to operational ops url kibana-ops.test.example.com

Actual results:

View Archive link of a pod log for (default, metrics) project redirects to kibana-ops.test.example.com, where as loggingPublicURL=logging.test.example.com

Expected results:

As logging ops is not installed, view archive link should redirect to loggingPublicURL i.e logging.test.example.com

Additional info:
NA

Comment 1 Jeff Cantrill 2017-12-04 20:11:11 UTC
@Rajnikant  Can you please also provide a more specific version of Openshift and the output of the metrics namespace 'oc get project openshift-infra -o yaml'.  There is logic in the webconsole that controls where a user is directed

Comment 3 Jeff Cantrill 2017-12-05 15:19:51 UTC
The workaround is to edit the namespace and remove the annotation:

1. oc edit ns openshift-infra
2. delete annotatin: 'openshift.io/logging.ui.hostname'

Comment 4 Jeff Cantrill 2017-12-05 20:08:14 UTC
Easier workaround is:

oc annotate ns $NAMESPACE  openshift.io/logging.ui.hostname-

Comment 7 Jeff Cantrill 2017-12-06 15:59:09 UTC
Can you log that as a new issue?  This requires a change that is separate from this one.

Comment 10 Junqi Zhao 2017-12-19 01:30:06 UTC
View archive link for default and metrics pods now redirects to correct kibana url

Images:
logging-kibana/images/v3.6.173.0.89-1
logging-fluentd/images/v3.6.173.0.89-1
logging-auth-proxy/images/v3.6.173.0.89-1
logging-elasticsearch/images/v3.6.173.0.89-1
logging-curator/images/v3.6.173.0.89-1

Comment 11 Junqi Zhao 2017-12-19 01:31:06 UTC
Created attachment 1369747 [details]
openshift-infra pod, view archive link redirect to correct url

Comment 12 Junqi Zhao 2017-12-19 04:04:39 UTC
Created attachment 1369769 [details]
pod under default project, view archive link redirect to correct url

Comment 13 Junqi Zhao 2017-12-19 04:05:36 UTC
Created attachment 1369770 [details]
pod under openshift-infra project, view archive link redirect to correct url

Comment 16 errata-xmlrpc 2018-01-23 17:59:00 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://access.redhat.com/errata/RHBA-2018:0113

Comment 17 Bahaddin 2018-03-16 13:16:45 UTC
We just upgraded from 3.6.173 to 3.7.23 and faced exactly same issue.

openshift-infra namespace had the annotation with "kibana-ops"

Comment 18 Jeff Cantrill 2018-03-16 14:01:15 UTC
Please ref https://bugzilla.redhat.com/show_bug.cgi?id=1547348 for 3.7