-
Bug
-
Resolution: Done
-
Normal
-
Logging 5.1
-
False
-
False
-
NEW
-
NEW
-
Undefined
-
-
Logging (Core) - Sprint 203
The invalid status are not present in Event
- Steps:
- Deploy CLF using invalid input in Pipeline
cat <<EOF| oc create -f - apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: outputs: - type: elasticsearch indexKey: openshift.labels.team url: https://elasticsearch.openshift-logging.svc:9200 secret: name: 'fluentd' name: default-es-a inputs: - name: input-qa application: namespaces: - project-qa1 pipelines: - name: pipeline-a inputRefs: - input-dev outputRefs: - default-es-a labels: team: qa parse: json EOF
- Check the clf status
"status": { "conditions": [ { "lastTransitionTime": "2021-04-26T08:04:11Z", "message": "all pipelines invalid: [pipeline-a]", "reason": "Invalid", "status": "False", "type": "Ready" } ], "outputs": { "default-es-a": [ { "lastTransitionTime": "2021-04-26T08:04:11Z", "status": "True", "type": "Ready" } ] }, "pipelines": { "pipeline-a": [ { "lastTransitionTime": "2021-04-26T08:04:11Z", "message": "invalid: unrecognized inputs: [input-dev], no valid inputs", "reason": "Invalid", "status": "False", "type": "Ready" } ] }
#Check the event
oc get events --field-selector involvedObject.kind=ClusterLogForwarder
Actual Result
Only valid records in event. LAST SEEN TYPE REASON OBJECT MESSAGE 80m Normal Ready clusterlogforwarder/instance All pipelines are valid 74m Normal Ready clusterlogforwarder/instance All pipelines are valid
Expected Result:
The invalid result can be collected
- is related to
-
LOG-1161 Create events for bad ClusterLogForwarder status
- Closed
- links to
- mentioned on