Bug 1667315
| Summary: | CLO should not make changes to logging stack when managementState is UnManaged | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qiaoling Tang <qitang> |
| Component: | Logging | Assignee: | ewolinet |
| Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.1.0 | CC: | aos-bugs, jcantril, rmeggins |
| Target Milestone: | --- | ||
| Target Release: | 4.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-04 10:42:02 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: | |||
Verified in quay.io/openshift/origin-cluster-logging-operator@sha256:9be38553042fa32720c4b5237c7eadb974546c9e702a0aa44e3fe089dc21ac8b 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-2019:0758 |
Description of problem: Deploy logging, set "managementState: UnManaged" in clusterlogging CR, log collection type is fluentd, then change log collection type to rsyslog in clusterlogging CR, wait for a while, check pod, there are two kinds of log collector in the ns: $ oc get pod NAME READY STATUS RESTARTS AGE cluster-logging-operator-77fd7bcbb8-6dj74 1/1 Running 0 49m elasticsearch-clientdatamaster-0-1-84d764899d-x57xd 1/1 Running 0 35m elasticsearch-clientdatamaster-0-2-56984bb76c-mf2t5 1/1 Running 0 35m elasticsearch-clientdatamaster-0-3-7cd67f75dd-9btxc 1/1 Running 0 35m elasticsearch-operator-86cc7cb548-hgkfh 1/1 Running 0 5h fluentd-4h2h4 1/1 Running 0 11m fluentd-7jmz2 1/1 Running 0 11m fluentd-8qp49 1/1 Running 0 11m fluentd-9txtr 1/1 Running 0 11m fluentd-c7skq 1/1 Running 0 11m fluentd-dscn8 1/1 Running 0 11m kibana-648865b454-hzvcj 2/2 Running 0 53m rsyslog-jnpfq 1/1 Running 0 3m rsyslog-l5w66 1/1 Running 0 3m rsyslog-nblvx 1/1 Running 0 3m rsyslog-qbfrz 1/1 Running 0 3m rsyslog-rdvcf 1/1 Running 0 3m rsyslog-sxxd6 1/1 Running 0 3m $ oc get ds NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE fluentd 6 6 6 6 6 <none> 11m rsyslog 6 6 6 6 0 <none> 3m $ oc get clusterlogging -o yaml apiVersion: v1 items: - apiVersion: logging.openshift.io/v1alpha1 kind: ClusterLogging metadata: creationTimestamp: 2019-01-18T01:19:02Z generation: 1 name: example namespace: openshift-logging resourceVersion: "263964" selfLink: /apis/logging.openshift.io/v1alpha1/namespaces/openshift-logging/clusterloggings/example uid: 0a592282-1abf-11e9-ac86-06a5d6fd69d6 spec: collection: logs: fluentd: resources: {} rsyslog: resources: {} type: rsyslog curation: curator: resources: {} schedule: 30 6 * * * type: curator logStore: elasticsearch: nodeCount: 3 redundancyPolicy: SingleRedundancy resources: {} storage: {} type: elasticsearch managementState: UnManaged Version-Release number of selected component (if applicable): $ oc get pod cluster-logging-operator-77fd7bcbb8-6dj74 -o yaml |grep image image: quay.io/openshift/origin-cluster-logging-operator:latest imagePullPolicy: IfNotPresent imagePullSecrets: image: quay.io/openshift/origin-cluster-logging-operator:latest imageID: quay.io/openshift/origin-cluster-logging-operator@sha256:af7998d54bb770dc4b1944d2ebc0a656b94f160df05bb92d02ea16bdeffe09a5 How reproducible: Always Steps to Reproduce: 1.Deploy logging, set "managementState: UnManaged" in clusterlogging CR, default log collection is fluentd 2.change log collection type to rsyslog 3.check pods Actual results: Expected results: Additional info: