Bug 1667430

Summary: Deleting clusterlogging cr does not remove elasticsearch-clientdatamaster deployment
Product: OpenShift Container Platform Reporter: Mike Fiedler <mifiedle>
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: medium Docs Contact:
Priority: low    
Version: 4.1.0CC: aos-bugs, rmeggins
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:42:06 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
CLO and ES operator logs after CR deletion none

Description Mike Fiedler 2019-01-18 13:15:30 UTC
Description of problem:

Deleting the clusterlogging CR removes the deployments for kibana and fluentd and terminates all pods.  It also deletes the elasticsearch CR, but deleting the elasticsearch CR does not delete the elasticsearch-clientdatamaster

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

Latest operators built by ART:

registry.reg-aws.openshift.com:443/openshift/ose-cluster-logging-operator   v4.0                d30f397c70ae        33 hours ago        273 MB                                                                                                                                           
registry.reg-aws.openshift.com:443/openshift/ose-elasticsearch-operator     v4.0                b35c5b1efb46        33 hours ago        261 MB 

How reproducible: Always


Steps to Reproduce:
1.   Create an clusterlogging CR from the hack/cr.yaml
2.   Verify ES, fluentd and kibana are running successfully
3.   oc delete clusterlogging example

Actual results:

elasticsearches/elasticsearch CR is deleted, but the deployment and pod remain:

[fedora@ip-172-31-53-199 ~]$ oc delete elasticsearch/elasticsearch clusterlogging/example
elasticsearch.logging.openshift.io "elasticsearch" deleted
clusterlogging.logging.openshift.io "example" deleted
[fedora@ip-172-31-53-199 ~]$ oc get pods
NAME                                                 READY     STATUS        RESTARTS   AGE
cluster-logging-operator-959d488b8-vtlsq             1/1       Running       0          16h
elasticsearch-clientdatamaster-0-1-d4ddc458f-lr67g   1/1       Running       0          16h
elasticsearch-operator-566cf5bb5c-wnh75              1/1       Running       0          16h


[fedora@ip-172-31-53-199 ~]$ oc get deployment
NAME                                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
cluster-logging-operator             1         1         1            1           16h
elasticsearch-clientdatamaster-0-1   1         1         1            1           16h
elasticsearch-operator               1         1         1            1           16h



Expected results:

All resources related to the clusterlogging CR are cleaned up upon deletion


Additional info:

Operator pod logs will be attached

Comment 1 Mike Fiedler 2019-01-18 13:16:58 UTC
Created attachment 1521516 [details]
CLO and ES operator logs after CR deletion

Comment 3 Mike Fiedler 2019-01-22 19:47:40 UTC
Verified with upstream - waiting for official OCP images.

Comment 4 Mike Fiedler 2019-02-11 16:30:11 UTC
Verified on 4.0.0-0.nightly-2019-02-11-045151.   Deleting the clusterlogging cr cascades to the elasticsearch cr

Comment 7 errata-xmlrpc 2019-06-04 10:42:06 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-2019:0758