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

[GitHub] [solr-operator] thomaswoeckinger opened a new issue #335: Unable to create SolrCloud in OKD

thomaswoeckinger opened a new issue #335:
URL: https://github.com/apache/solr-operator/issues/335


   Solr Operator is configured without zookeeper support.
   
   Following helm script is executed:
   
   ```
   helm upgrade --install --set replicas=3 --set addressability.commonServicePort=8983 --set image.tag=8.9.0 \
   --set serviceAccount.name=solr --set dataStorage.type=persistent \
   --set dataStorage.persistent.pvc.storageClassName=local-sc-solr --set solrOptions.javaMemory="-Xms7g -Xmx8g" \
   --set solrOptions.javaOpts="-Djute.maxbuffer=16777215" \
   --set zk.address="zookeeper-0.zookeeper-headless.solr.svc.cluster.local\,zookeeper-1.zookeeper-headless.solr.svc.cluster.local\,zookeeper-2.zookeeper-headless.solr.svc.cluster.local" \
   --set solrOptions.security.authenticationType="Basic" --set solrOptions.security.basicAuthSecret=basic-auth \
   solr apache-solr/solr
   ```
   Both services (solr-solrcloud-common and solr-solrcloud-headless) and the ConfigMap (solr-solrcloud-configmap) are created.
   
   The operator log does not contain any error:
   
   ```
   2021-10-07T12:51:21.727Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:34.370Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:34.407Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:34.425Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:34.449Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:39.370Z	INFO	controllers.SolrCloud	Setting default settings for SolrCloud	{"namespace": "solr", "solrCloud": "solr"}
   2021-10-07T12:51:39.386Z	INFO	controllers.SolrCloud	Creating Common Service	{"namespace": "solr", "solrCloud": "solr", "service": "solr-solrcloud-common"}
   2021-10-07T12:51:39.440Z	INFO	controllers.SolrCloud	Creating Headless Service	{"namespace": "solr", "solrCloud": "solr", "service": "solr-solrcloud-headless"}
   2021-10-07T12:51:39.493Z	INFO	controllers.SolrCloud	Creating ConfigMap	{"namespace": "solr", "solrCloud": "solr", "configMap": "solr-solrcloud-configmap"}
   2021-10-07T12:51:39.519Z	INFO	controllers.SolrCloud	Updating SolrCloud Status	{"namespace": "solr", "solrCloud": "solr", "status": {"solrNodes":[],"replicas":0,"podSelector":"solr-cloud=solr,technology=solr-cloud","readyReplicas":0,"upToDateNodes":0,"version":"8.9.0","internalCommonAddress":"http://solr-solrcloud-common.solr:8983","zookeeperConnectionInfo":{"internalConnectionString":"zookeeper-0.zookeeper-headless.solr.svc.cluster.local,zookeeper-1.zookeeper-headless.solr.svc.cluster.local,zookeeper-2.zookeeper-headless.solr.svc.cluster.local","chroot":"/"},"backupRestoreReady":false}}
   2021-10-07T12:51:39.556Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   2021-10-07T12:51:39.556Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "solr.apache.org", "reconcilerKind": "SolrCloud", "controller": "solrcloud", "name": "solr", "namespace": "solr"}
   W1007 12:56:01.665010       1 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
   ```
   
   No statefulset is created and therefore not pods are created too.
   
   


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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-938542678


   This is working now, but i think there should be an error message or it uses the default port when not specifying it in the connection string.
   
   Another thing is there a way to configure the created ingress to make an TLS passthrough?
   
   Otherwise it is not possilbe to access the cluster


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


[GitHub] [solr-operator] thomaswoeckinger edited a comment on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger edited a comment on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-938542678


   This is working now, but i think there should be an error message or it uses the default port when not specifying it in the connection string.
   
   Another thing is there a way to configure the created ingress to make an TLS passthrough?
   I already specifyed `addressability.external.ingressTLSTerminationSecret` as mentioned in documentation but at the end (afte excepting my certifcate in the browser) i will receive an 502 Bad Gateway
   
   When adding a route like:
   
   ```
   kind: Route
   apiVersion: route.openshift.io/v1
   metadata:
     name: solr
     namespace: solr
   spec:
     host: solr.apps.mycluster.org
     to:
       kind: Service
       name: solr-solrcloud-common
       weight: 100
     port:
       targetPort: solr-client
     tls:
       termination: passthrough
       insecureEdgeTerminationPolicy: Redirect
     wildcardPolicy: None
   ```
   i can access the cluster


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


[GitHub] [solr-operator] thelabdude commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thelabdude commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937913355


   I don't think it's related to the basic auth secret ... looks like it may be this check here (looking for a colon and port on your zk connnection string):
   ```
   // Only create stateful set if zkConnectionString can be found (must contain host and port)
   	if !strings.Contains(newStatus.ZkConnectionString(), ":") {
   		blockReconciliationOfStatefulSet = true
   	}
   ```
   Can you try putting the ZK port in the connection string?


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


[GitHub] [solr-operator] thelabdude commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thelabdude commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937833823


   Does the `basic-auth` secret exist? 


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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937887394


   Below the mentioned secret
   ```
   kind: Secret
   apiVersion: v1
   metadata:
     name: basic-auth
     namespace: solr
     uid: bb5dac9a-da20-4f34-8e0b-760762a59c34
     resourceVersion: '39484507'
     creationTimestamp: '2021-10-07T09:12:26Z'
     managedFields:
       - manager: kubectl-create
         operation: Update
         apiVersion: v1
         time: '2021-10-07T09:12:26Z'
         fieldsType: FieldsV1
         fieldsV1:
           'f:data':
             .: {}
             'f:password': {}
             'f:username': {}
           'f:type': {}
   data:
     password: YfooXQ=
     username: YbarZQ==
   type: kubernetes.io/basic-auth
   ```


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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937947843


   Why not work with the defaults if not specifying?
   CloudSolrClient and CloudSolrClient.Duilder are also working without specifying the port.
   Anyway at least there should be an error message if it is expected.
   I will give it a try, thx for your fast response


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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-939254749


   It works now, i just added an additional annotation on the ingress object:
   `route.openshift.io/termination: passthrough`
   I will open up another issue to allow annotating `addressability.external` 
   


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


[GitHub] [solr-operator] HoustonPutman commented on issue #335: Unable to create SolrCloud in OKD

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


   I will go and try out the operator without a port, but from my memory Solr did not work correctly in all cases.
   Anyways there should be an error for the resource or at the least in the logs of the Solr Operator.
   Will make a fix for that.
   
   And good to know about OKD and ingress termination. If you have links to documentations about that, I can add it to the Solr Operator ingress termination documentation.


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


[GitHub] [solr-operator] HoustonPutman commented on issue #335: Unable to create SolrCloud in OKD

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


   That's a good catch Tim! Yeah, Solr definitely expects a port in the ZKConnectionString.


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


[GitHub] [solr-operator] thomaswoeckinger edited a comment on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger edited a comment on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937882238


   Yes created before, also the serviceAccount has privileged SCC granted


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


[GitHub] [solr-operator] thomaswoeckinger edited a comment on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger edited a comment on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937882238


   Yes created before, also the serviceAccount has privileged SCC granted


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


[GitHub] [solr-operator] thelabdude commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thelabdude commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937833823






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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937775624






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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937775624


   Any suggestions to get out a bit more information?


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


[GitHub] [solr-operator] thomaswoeckinger commented on issue #335: Unable to create SolrCloud in OKD

Posted by GitBox <gi...@apache.org>.
thomaswoeckinger commented on issue #335:
URL: https://github.com/apache/solr-operator/issues/335#issuecomment-937882238


   yes create before, also the serviceAccount has privileged SCC granted


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


[GitHub] [solr-operator] HoustonPutman commented on issue #335: Unable to create SolrCloud in OKD

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


   That's a good catch Tim! Yeah, Solr definitely expects a port in the ZKConnectionString.


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


[GitHub] [solr-operator] thomaswoeckinger closed issue #335: Unable to create SolrCloud in OKD

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


   


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