Temporal cli gives context deadline exceeded. Tctl does not

Abierto
#851 5 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go, helm, kubernetes
Área
api, cli, networking

Línea de trabajo

Comienza reproduciendo la conexión con la temporal CLI y tctl contra el mismo FQDN del backend, utilizando la configuración de Kubernetes, Helm e Istio descrita en el issue. Compara su comportamiento de gRPC y TLS; se considera terminado cuando temporal se conecta al frontend sin devolver context deadline exceeded.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
What are you really trying to do?

Use temporal to connect to the frontend via gRPC.

Describe the bug

Using temporal to talk to the frontend gives context deadline exceeded. Using tctl is fine.

Here it is working with tctl:

screenshot

Here it is NOT working with temporal:

screenshot

It is going to the SAME backend FQDN. I am showing env to illustrate that I do not have any TEMPORAL_ env vars set.

Minimal Reproduction

Install temporal like how I did on Kubernetes of 1.33.3-gke.1136000

helm install temporal temporalio/temporal --version 0.65.0

Install istio for ingress. DO NOT add the sidecar injection into the namespace. We do not want the mesh feature. Ingress only.

./istioctl install --set profile=minimal -y

Set up ingress gateway:

helm upgrade --install istio-ingressgateway --namespace istio-system istio-official/gateway --version 1.27.0 --values ingress-gateway.yaml

My ingress-gateway.yaml looks like this:

name: istio-ingressgateway
service:
  loadBalancerIP: $MY_INTERNAL_IP
  annotations:
    cloud.google.com/load-balancer-type: Internal
    networking.gke.io/internal-load-balancer-subnet: internal1
  ports:
  - name: status-port
    port: 15021
    protocol: TCP
    targetPort: 15021
  - name: http2
    port: 80
    protocol: TCP
    targetPort: 80
  - name: https
    port: 443
    protocol: TCP
    targetPort: 443
  - name: temporal
    port: 7233
    protocol: TCP
    targetPort: 7233
autoscaling:
  maxReplicas: 10
  targetCPUUtilizationPercentage: 75
resources:
  requests:
    cpu: 250m
    memory: 512Mi
  limits:
    memory: 1Gi
    cpu: "1"

Once it is up (you will need to have your TLS certs) for Gateway and Virtualservice:

gateways:

apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
  name: web-temporal-gateway
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - web-temporal.mycompany.com
    port:
      name: temporal-mutual
      number: 443
      protocol: HTTPS
    tls:
      credentialName: istio-ingressgateway-tls
      mode: SIMPLE
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
  name: backend-temporal-gateway
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - backend-temporal.mycompany.com
    port:
      name: backend-temporal-mutual
      number: 7233
      protocol: HTTPS
    tls:
      credentialName: istio-ingressgateway-tls
      mode: MUTUAL
Environment/Versions
  • OS and processor: M1 Mac 15.6.1
  • Temporal Version: 1.28.1
  • Using Kubernetes
Additional context

tctl version 1.18.0
temporal version 1.4.1 (Server 1.28.0, UI 2.39.0)

Lenguaje dominante
Go
Estrellas
390
Forks
123
Merge medio
2 d 9 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temporalio/cli

Todos los issues de temporalio/cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.