Bug 1916911 - Elastic search operator failed to update from 4.5 to 4.6
Summary: Elastic search operator failed to update from 4.5 to 4.6
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 4.6.z
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.z
Assignee: Gerard Vanloo
QA Contact: Qiaoling Tang
URL:
Whiteboard: logging-exploration
: 1918441 (view as bug list)
Depends On:
Blocks: 1918441
TreeView+ depends on / blocked
 
Reported: 2021-01-15 19:56 UTC by Asish CM
Modified: 2024-03-25 17:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1918441 1946772 1946776 (view as bug list)
Environment:
Last Closed: 2021-07-23 14:46:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
clo yaml for reproduce the error (765 bytes, text/plain)
2021-01-21 05:37 UTC, Hui Kang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift elasticsearch-operator pull 686 0 None closed Bug 1916911: make es status nullable for nodes and pods 2021-06-01 15:02:21 UTC

Description Asish CM 2021-01-15 19:56:34 UTC
Description of problem:

Elastic search operator fails to update from 4.5 to 4.6.


Elastic search operator updation goes into the pending state with below error:

~~~
   kind: ServiceAccount
    message: Policy rule not satisfied for service account
    name: elasticsearch-operator
    status: PresentNotSatisfied
    version: v1
~~~
~~~
kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":[""],"resources":["pods","pods/exec","services","endpoints","persistentvolumeclaims","events","configmaps","secrets","serviceaccounts","services/finalizers"]}
~~~

with ElasticSearch subscription throwing error
Error"error validating existing CRs agains new CRD's schema: elasticsearches.logging.openshift.io: error validating custom resource against new schema"


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


Expected results:

Elastic search operator should update to 4.6

Comment 10 Jeff Cantrill 2021-01-20 20:16:37 UTC
Closing this as a duplicate as it is a result of an issues with certs.  Without further investigation the work around may be to delete the es pods and allow them to restart with the same certs "oc delete pods -l component=es"

*** This bug has been marked as a duplicate of bug 1906641 ***

Comment 11 Jeff Cantrill 2021-01-20 20:34:29 UTC
Reopen because of need for CSV update

Comment 12 Hui Kang 2021-01-21 05:33:40 UTC
@ewo

I am able to reproduce the error with the following steps

Platform: OCP 4.5.13

1. Install cluster logging and ES operator from the stable 4.5 CSV channel

2. Create a clo instance using the attached clo yaml

3. Manually delete the ES operator

4. Install the ES operator from the master branch and you will see the ES operator installation will fail


After applying the PR (https://github.com/openshift/elasticsearch-operator/pull/630), I am able to install the 4.7 EO.

Comment 13 Hui Kang 2021-01-21 05:37:22 UTC
Created attachment 1749301 [details]
clo yaml for reproduce the error

Comment 14 Hui Kang 2021-01-25 00:46:39 UTC
Sorry, I made a mistake in my above comment 12. The installation error was caused by two operatorGroups in the same namespace. After removing one, the upgrade from 4.5 to 4.6 succeeds. So I could not reproduce the error as reported by @Ashish.

Comment 17 Qiaoling Tang 2021-01-26 07:26:17 UTC
I tested upgrade cluster from 4.5.28 to 4.6.13, then upgrade EO from elasticsearch-operator.4.5.0-202101140110.p0 to elasticsearch-operator.4.6.0-202101160934.p0, I was not able to reproduce the issue.

$ oc get csv -n openshift-operators-redhat
NAME                                           DISPLAY                            VERSION                 REPLACES                                       PHASE
elasticsearch-operator.4.6.0-202101160934.p0   OpenShift Elasticsearch Operator   4.6.0-202101160934.p0   elasticsearch-operator.4.5.0-202101140110.p0   Succeeded

Comment 33 Gerard Vanloo 2021-06-11 14:30:32 UTC
*** Bug 1918441 has been marked as a duplicate of this bug. ***

Comment 35 Gerard Vanloo 2021-07-23 14:46:54 UTC
Closed. This has been moved to JIRA: https://issues.redhat.com/browse/LOG-1617


Note You need to log in before you can comment on or make changes to this bug.