I'm trying to use the Elastic operator to deploy an Elasticsearch instance in a Openshift 3.11 (minishift) cluster. It doesn't seem to work... The creation of Elasticsearch is failing. I see the following k8s events when i describe the Elasticsearch object:
Normal AssociationStatusChange 3m16s (x4613 over 8m16s) es-monitoring-association-controller Association status changed from [] to []
Warning ReconciliationError 21m (x32304 over 3h51m) elasticsearch-controller Failed to apply spec change: adjust resources: adjust discovery config: Operation cannot be fulfilled on elasticsearches.elasticsearch.k8s.elastic.co "elasticsearch-sample": the object has been modified; please apply your changes to the latest version and try again
I applied the following yaml file to deploy Elasticsearch:
The operator logs contain nothing special as far as I can see... Just a lot of messages "starting reconciliation" and "ending reconciliation".
Each time I describe Elasticsearch, the Resource version has increased. It almost seems like the operator is constantly incrementing the resource version and that this is blocking any further deployment progress.
I'm using operator version 1.8.0 (also tried 1.7.0, same result) and trying to deploy Elasticsearch 7.15.1 (also tried 7.14.2, same result). I used the legacy files since openshift 3.11 uses k8s 1.11 (https://download.elastic.co/downloads/eck/1.8.0/operator-legacy.yaml)
I'm configuring everything with the system:admin account.
Deployment of the operator worked without any problems.
Can you double check if you have only a single operator Pod running? the object has been modified errors and constantly increasing resourceVersion could be a symptom of multiple ECK operators trying to orchestrate a single resource. If that's not the case, please use ECK diag tool and provide the tool output to allow for further investigation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.