Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7503

[Operator] Exception when retrieving logs with Service Mesh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Operator
    • None
    • False
    • None
    • False

      Issue encountered by upstream user with ISTIO.

      2024-11-07T18:43:37.114Z    ERROR    controllers.Infinispan    Unable to retrive logs for i pod keycloak-infinispan-dev-na01-workload-01-0    {"infinispan": "keycloak/keycloak-infinispan-dev-na01-workload-01", "error": "a container name must be specified for pod keycloak-infinispan-dev-na01-workload-01-0, choose one of: [istio-init infin
      ispan istio-proxy]"}                                                                                                                                                                                                                                                                                                                               
      github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan.HandlerFunc.Handle                                                                                                                                                                                                                                                     
          /workspace/pkg/reconcile/pipeline/infinispan/api.go:40                                                                                                                                                                                                                                                                                         
      github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan/pipeline.invokeHandler                                                                                                                                                                                                                                                 
          /workspace/pkg/reconcile/pipeline/infinispan/pipeline/pipeline.go:60                                                                                                                                                                                                                                                                           
      github.com/infinispan/infinispan-operator/pkg/reconcile/pipeline/infinispan/pipeline.(*impl).Process                                                                                                                                                                                                                                               
          /workspace/pkg/reconcile/pipeline/infinispan/pipeline/pipeline.go:42                                                                                                                                                                                                                                                                           
      github.com/infinispan/infinispan-operator/controllers.(*InfinispanReconciler).Reconcile                                                                                                                                                                                                                                                            
          /workspace/controllers/infinispan.go:238                                                                                                                                                                                                                                                                                                       
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile                                                                                                                                                                                                                                                                     
          /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:121                                                                                                                                                                                                                                  
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                                                                                                                                                                                                                                              
          /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:320                                                                                                                                                                                                                                  
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                                                                                                                                                                                           
          /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:273                                                                                                                                                                                                                                  
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2                                                                                                                                                                                                                                                                 
      

      Istio automatically injects extra containers into the spec so I presume the code needs to be updated to explicitly call out for which container the logs are desired.

      Offending code https://github.com/infinispan/infinispan-operator/blob/c6d73f2ddeba1d08b3e6276de6986e486e8deae3/pkg/kubernetes/kubernetes.go#L347-L369

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: