You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/02/09 12:59:54 UTC

[GitHub] [lucene-solr-operator] krishnachalla-hv opened a new issue #212: Solr cloud never getes deleted when reclaimPolicy is set to Delete

krishnachalla-hv opened a new issue #212:
URL: https://github.com/apache/lucene-solr-operator/issues/212


   I facing this issue after upgrading to **v0.2.8**. Earlier I was using **v0.2.6** version of solrcloud things were working fine as expected except the **pvc** deletion that were created by solrcloud since the feature was not available in **v0.2.6**. Now I am testing my application with latest version of solr-operator(v02.8) facing wired issue, When I set the **reclaimPolicy: Delete** for solr as well provided Zookeeper instance in **solrcloud** yaml file, when I tried to uninstall it only the solr-operator and zk-operatorr are getting uninstalled but the solrcloud and zookeepr pods never gets terminated. I created one sample test chart  like below tested these things but the issue is still the same.
   
   ```
   apiVersion: v2
   name: test
   description: A Helm chart for intializing multi node solr cloud.
   type: application
   version: 1.0.0
   appVersion: 1.0.0
   dependencies:
     - name: solr-operator
       version: 0.2.8
       repository: "https://apache.github.io/lucene-solr-operator/charts"
       condition: solr-operator.enabled
   
     - name: zookeeper-operator
       version: 0.3.0
       repository: "https://kubernetes-charts.banzaicloud.com"
       condition: zookeeper-operator.enabled
   ```
       
   And my solr cloud yaml configuration is:
   ```
   apiVersion: solr.bloomberg.com/v1beta1
   kind: SolrCloud
   metadata:
     name: {{ .Release.Name }}
   spec:
     dataStorage:
       persistent:
         reclaimPolicy: Delete
         pvcTemplate:
           spec:
             resources:
               requests:
                 storage: "5Gi"
     replicas: 2
     solrImage:
       tag: 8.7.0
     solrJavaMem: "-Xms1g -Xmx3g"
     customSolrKubeOptions:
       podOptions:
         resources:
           limits:
             memory: "1G"
           requests:
             cpu: "65m"
             memory: "156Mi"
     zookeeperRef:
       provided:
         chroot: "/solr"
         persistence:
           reclaimPolicy: Delete
           spec:
             resources:
               requests:
                 storage: "5Gi"
         replicas: 3
         zookeeperPodPolicy:
           resources:
             limits:
               memory: "1G"
             requests:
               cpu: "65m"
               memory: "156Mi"
     solrOpts: "-Dsolr.autoSoftCommit.maxTime=10000"
     solrGCTune: "-XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8"
   ```
     
     If I set the **reclaimPolicy** to **Retain** and uninstall the chart, solrcloud is also uninstalling properly. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] HoustonPutman commented on issue #212: Solr cloud never getes deleted when reclaimPolicy is set to Delete

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #212:
URL: https://github.com/apache/lucene-solr-operator/issues/212#issuecomment-788094457


   you should not put the solr operator and zk operator as dependencies of your Solr Helm chart.
   
   The Operators are management plane, and should be managed separately. If you want to delete both, you should delete the cloud helm deployment first, then delete the solr operator helm deployment.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] krishnachalla-hv commented on issue #212: Solr cloud never getes deleted when reclaimPolicy is set to Delete

Posted by GitBox <gi...@apache.org>.
krishnachalla-hv commented on issue #212:
URL: https://github.com/apache/lucene-solr-operator/issues/212#issuecomment-778158184


   When we do **helm uninstall**, it should uninstall solrcloud along the with operator know? Or it won't do that if we set  **reclaimPolicy** to **Delete**?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] HoustonPutman closed issue #212: Solr cloud never getes deleted when reclaimPolicy is set to Delete

Posted by GitBox <gi...@apache.org>.
HoustonPutman closed issue #212:
URL: https://github.com/apache/lucene-solr-operator/issues/212


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] HoustonPutman commented on issue #212: Solr cloud never getes deleted when reclaimPolicy is set to Delete

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #212:
URL: https://github.com/apache/lucene-solr-operator/issues/212#issuecomment-777699251


   So yes, this is actually expected behavior. If you want to delete your SolrCloud after deleting the Solr Operator, you will need to remove the finalizer from the SolrCloud. Otherwise the SolrCloud will never be able to be deleted.
   
   ```bash
   kubectl patch solrcloud <name> --type='json' -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
   ```
   
   That should do the trick. But I would recommend just deleting the SolrCloud objects before deleting the Solr Operator. It's the easiest way to go, and the PVCs will be handled correctly!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org