Bug 1803196
| Summary: | Logging operator should publish sharing-config configmap into openshift-config-managed namespace | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jakub Hadvig <jhadvig> |
| Component: | Logging | Assignee: | Periklis Tsirakidis <periklis> |
| Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | anli, aos-bugs, bparees, ewolinet, jcantril, periklis, yapei |
| Target Milestone: | --- | Keywords: | NeedsTestCase |
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Console-Operator needs to reconcile Logging Link on Application Menu by using the ConsoleLink resource
Consequence:
No need to reconcile arbitrary config map
Fix:
The Elasticseearch-Operator reconciles two ConsoleLinks CRs for the Kibana route, one for non-admin users and one for admin users. In addition on upgrade from 4.4 to 4.5 the old config map will be deleted
Result:
The Console Operator is able to reconcile Application Menu Links for Logging by reading the ConsoleLinks custom resources.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-13 17:15:32 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1806651 | ||
|
Description
Jakub Hadvig
2020-02-14 16:18:13 UTC
For the new configmap name I would be in favour either for "logging" as suggested or maybe "logging-shared-config" logging-shared-config would be consistent with the monitoring-shared-config that was recently merged: https://bugzilla.redhat.com/show_bug.cgi?id=1803192 Consistency is good. the fix for the original request is being reverted due to: https://bugzilla.redhat.com/show_bug.cgi?id=1807739 moving back to NEW. Since the logging operator is OLM and not CVO, the publishing of the config into `openshift-config-managed` isn't the correct approach. Instead, we have a `ConsoleLink` CRD that fits this use case. See: - CRD https://github.com/openshift/api/blob/master/console/v1/0000_10_consolelink.crd.yaml - API https://github.com/openshift/api/blob/master/console/v1/types_console_link.go Locations options for the link at this point are (https://github.com/openshift/api/blob/master/console/v1/types_console_link.go#L20): - ApplicationMenu (with additional config options) - HelpMenu - UserMenu - NamespaceDashboard (with additional config options) We would suggest using ApplicationMenu. There is an optional Section if desired. What is the difference between kibana-app-public-url and kibana-infra-public-url ?
#oc get ConsoleLink kibana-app-public-url -o json |jq '.spec'
{
"applicationMenu": {
"section": "Monitoring"
},
"href": "https://kibana-openshift-logging.apps.anli45515.qe.devcluster.openshift.com",
"location": "ApplicationMenu",
"text": "Logging"
}
#oc get ConsoleLink kibana-infra-public-url -o json |jq '.spec'
{
"applicationMenu": {
"section": "Monitoring"
},
"href": "https://kibana-openshift-logging.apps.anli45515.qe.devcluster.openshift.com",
"location": "ApplicationMenu",
"text": "Logging"
}
@yapei Could you help me confirm if the Logging works on Console? The user can be directed from pod->logs to kibana. Is there any other link can be directed to kibana? For example: Monioring->xxx. @anping & yapei I will put this on needsinfo until yapei provides the info. AFAIK there should be a link for Logging on the Application Menu Monitoring -> Logging that opens Kibana. The Application Menu Monitoring -> Logging disappeared. If I add the configmap/sharing-config manually, the menu appears. Shall the console use consoleexternalloglinks.console.openshift.io? If cluster logging is deployed successfully and clusterlogging/instance is running(kibana route is created) then admin user can see Monitoring -> Logging menu @Anping Li & @Yadan Pei You should not use the configmap any more to get the application menu link for "Logging". If this is the case then this is not a bug in elasticsearch-operator but probably a bug on the console-operator side. Can you please re-check this? Elasticsearch-operator is not responsible for the UI but simply for creating the ConsoleLink CRs for the application menu. ConsoleExternalLinks are used only for the pod detail view. Agree. Move to verify and Filed a console bug https://bugzilla.redhat.com/show_bug.cgi?id=1840478 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-2020:2409 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |