jaeger-operator icon indicating copy to clipboard operation
jaeger-operator copied to clipboard

failed to store the running status into the current CustomResource

Open anarcher opened this issue 3 years ago • 4 comments

Describe the bug I deploy fresh install of jaeger operator on K8S and a jaeger deployment but the operator can't reconcile completed.

To Reproduce Steps to reproduce the behavior:

  1. deploy fresh install of jaeger operator
  2. apply jaeger CRD
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
  namespace: addon-tracing
spec:
  agent: {}
  allInOne:
    options:
      collector.zipkin.host-port: "9411"
      log-level: debug
      memory.max-traces: 10000
  ingress:
    enabled: false
  sampling:
    options:
      default_strategy:
        param: 0.1
        type: probabilistic
  strategy: allinone

Expected behavior

Reconciling Jaeger completed.

Screenshots If applicable, add screenshots to help explain your problem.

(jaegers.jaegertracing.io \"jaeger\" not found)

image

Version (please complete the following information):

  • k8s: eks 1.18
  • Jaeger version: [e.g. 1.8] 1.22.0 (Jaeger Operator: 1.22.1)

What troubleshooting steps did you try? Try to follow https://www.jaegertracing.io/docs/latest/troubleshooting/ and describe how far you were able to progress and/or which steps did not work.

It seems that the operator can't update the status of Jaeger CRD . Unfortunately, I don't know why (jaegers.jaegertracing.io \"jaeger\" not found)

https://github.com/jaegertracing/jaeger-operator/blob/v1.22.1/pkg/controller/jaeger/jaeger_controller.go#L195

Additional context Add any other context about the problem here.

anarcher avatar Jun 23 '21 08:06 anarcher

@rubenvp8510 , could you take a look at this one?

jpkrohling avatar Jun 24 '21 13:06 jpkrohling

Sorry I haven't seen this one. I'll take a look in these days to see what could be the issue.

rubenvp8510 avatar Jul 02 '21 04:07 rubenvp8510

I'm experiencing the same problem

rafaribe avatar Jul 08 '21 10:07 rafaribe

@anarcher If the operator is deployed via helm chart, the CRD is wrong. It does not contains subresource status.

The error message is confusing, it is talking about jaegers.jaegertracing.io/status \"jaeger\" not found. Try yourself with kubernetes API /apis/jaegertracing.io/v1/namespaces/addon-tracing/jaegers/jaeger/status

I would not open PR to fix this because I don't understand the procedure for update jaeger helm chart, I am confusing why the CRD in helm chart is never sync with the operator in git history and there is some pending PRs/Issues related to this matter.

AtkinsChang avatar Sep 15 '21 16:09 AtkinsChang