apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
243 stars 111 forks source link

cp-solr-xml fails when a local backup repository is configured with SolrCloud running as a custom user #519

Closed a-nych closed 1 year ago

a-nych commented 1 year ago

Steps to reproduce:

  1. Run SolrCloud nodes with podOptions.podSecurityContext.runAsUser and podOptions.podSecurityContext.fsGroup set to anything other than 8983 (default SolrCloud user)
  2. Configure a local backupRepository using persistentVolumeClaim

cp-solr-xml will then run chmod -r 8983:8983 <backup_storage_path> despite us running Solr with different users. At some point when files are created in the backup repository by SolrCloud, the chmod command will fail due to missing permissions and SolrCloud won't boot.