Bug 1857094
Summary: | Should not create ClusterLogForwarder without specifying `url` in the output. | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Qiaoling Tang <qitang> |
Component: | Logging | Assignee: | IgorKarpukhin <ikarpukh> |
Status: | CLOSED ERRATA | QA Contact: | Qiaoling Tang <qitang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.6 | CC: | aos-bugs, ewolinet, ikarpukh |
Target Milestone: | --- | ||
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | logging-core | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 16:14:38 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: |
Description
Qiaoling Tang
2020-07-15 06:40:52 UTC
Tested with ose-cluster-logging-operator-v4.6.0-202008040110.p0, the issue isn't fixed, I still could create CLF without specifying `url` in the `outputs`. $ oc get clf -oyaml apiVersion: v1 items: - apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: creationTimestamp: "2020-08-04T05:47:14Z" generation: 1 managedFields: - apiVersion: logging.openshift.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: f:outputs: {} f:status: .: {} f:conditions: {} manager: cluster-logging-operator operation: Update time: "2020-08-04T05:47:14Z" - apiVersion: logging.openshift.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: .: {} f:pipelines: {} manager: oc operation: Update time: "2020-08-04T05:47:14Z" name: instance namespace: openshift-logging resourceVersion: "200018" selfLink: /apis/logging.openshift.io/v1/namespaces/openshift-logging/clusterlogforwarders/instance uid: 734d16d8-0fa3-4be6-9222-583f63221411 spec: outputs: - name: fluentd-created-by-user secret: name: fluentdserver type: fluentdForward pipelines: - inputRefs: - infrastructure - application - audit name: forward-to-fluentd-server outputRefs: - fluentd-created-by-user status: conditions: - lastTransitionTime: "2020-08-04T05:47:14Z" status: "True" type: Ready kind: List metadata: resourceVersion: "" selfLink: "" This field is optional and can be empty if there is an output-type field with alternative connection information. But I guess I can add additional check for fluentd... This PR solves that: https://github.com/openshift/cluster-logging-operator/pull/668 I made URL field mandatory for the fluentdForwarder, elasticsearch and syslog Verified with clusterlogging.4.6.0-202008241350.p0 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 (OpenShift Container Platform 4.6 GA Images), 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:4196 |