You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Joshuaariolu (via GitHub)" <gi...@apache.org> on 2025/01/06 14:55:00 UTC

[I] Ability to mount EFS volume on solr pods [solr-operator]

Joshuaariolu opened a new issue, #742:
URL: https://github.com/apache/solr-operator/issues/742

   I'm quite new to helm and solr deployments and I am currently trying to mount a EFS volume on the solr pods using helm.
   I have created a separate pvc (test-pvc) with a storage class that's connected to EFS
   when I try to mount a volume on solr I define the pvc on the values.yaml file as    
   pvc:
         name: "test-pvc"
         labels: {}
         annotations: {}
         storageClassName: "test-storageclass"
    If I run the helm release with just those changes it gives me the error below
    "solr" is invalid: [spec.customSolrKubeOptions.podOptions.volumes[0].defaultContainerMount.mountPath: Required value, spec.customSolrKubeOptions.podOptions.volumes[0].defaultContainerMount.name: Required value, spec.customSolrKubeOptions.podOptions.volumes[0].name: Required value]
   
   So I add the podoptions.volume value as  
   - name: data
         source:
           persistentVolumeClaim:
             claimName: test-pvc
         defaultContainerMount:
           name: data
           mountPath: "/data"
   
   This seems to mount correctly to/data directory but it creates multiple errors as the number of replicas on solr keeps increasing and it also creates multiple mount points on the container the first being /data and the /var/solr/data/
   And when I try to set default container mount to /var/solr/data it gives me and error saying it must be unique.
   Please what is the correct way to mount efs volume on solr using helm?
   Thanks in advance
        


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2573590985

   So if you want to use efs volumes for the persistent volumes that store Solr's data, then you should configure it under dataOptions, not add an additional volume. See here for more information: https://apache.github.io/solr-operator/docs/solr-cloud/solr-cloud-crd.html#data-storage. But basically, you will want to set the storage class there.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "Joshuaariolu (via GitHub)" <gi...@apache.org>.
Joshuaariolu commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2580168024

   Thanks @HoustonPutman works perfectly


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman closed issue #742: Ability to mount EFS volume on solr pods
URL: https://github.com/apache/solr-operator/issues/742


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "Joshuaariolu (via GitHub)" <gi...@apache.org>.
Joshuaariolu commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2573339558

   I basically want to mount an efs volume to the pods in var/solr/data such that the replica data will be stored in the efs to ensure persistence


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "Joshuaariolu (via GitHub)" <gi...@apache.org>.
Joshuaariolu commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2578610388

   Thanks again for your response
   dataStorage:
     type: "persistent"
     capacity: "20Gi"
     persistent:
       reclaimPolicy: "Delete"
       pvc:
         name: data
         labels: {}
         annotations: {}
         storageClassName: "Test-storageclass"
         
        when I change the spec in the values.yaml to the above, without any custom volume definition I get the following error:
        create Pod solr-solrcloud-2 in StatefulSet solr-solrcloud failed error: Pod "solr-solrcloud-2" is invalid: [spec.containers[0].volumeMounts[0].name: Not found: "data", spec.initContainers[0].volumeMounts[1].name: Not found: "data"]
   
   when I add the custom volume below it creates a pvc for each of the pods in the stateful set but creates multiple mount points. 
   Mounts:
         /data from data (rw)
         /var/solr/data from data (rw)
     
   volumes: 
        - name: data
          defaultContainerMount:
            name: data
            mountPath: "/data"
          source:
            persistentVolumeClaim:
              claimName: test-pvc
       
     My confusion is on how exactly is the values.yaml supposed to be structured in order to mount a persistent volume to the pods correctly? it seems like there is a predefined mount and volume present.
   Also I noticed that the volume I mounted in solr also creates a mount on the zookeeper pods.
   
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "Joshuaariolu (via GitHub)" <gi...@apache.org>.
Joshuaariolu commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2575515822

   When I try it using the way you recommended I get the below error
   
   create Pod solr-solrcloud-2 in StatefulSet solr-solrcloud failed error: Pod "solr-solrcloud-2" is invalid: [spec.containers[0].volumeMounts[0].name: Not found: "data", spec.initContainers[0].volumeMounts[1].name: Not found: "data"]
   
   Do have to define a volume mount as well?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2578348100

   Can you share your exact SolrCloud spec?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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


Re: [I] Ability to mount EFS volume on solr pods [solr-operator]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2578943065

   Please past as json, or else it's very hard to read.
   
   Can you delete the cloud and recreate from scratch, just using:
   
   ```json
     dataStorage:
       persistent:
         reclaimPolicy: Delete
         pvcTemplate:
           spec:
             storageClassName: "Test-storageclass"
   ```
   
   Also you shouldn't need additional volume mounts or volumes, so try removing both of those.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

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


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