Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is reported when OpenObserve-Collector Helm is installed #129

Open
haerr opened this issue Mar 20, 2025 · 2 comments
Open

An error is reported when OpenObserve-Collector Helm is installed #129

haerr opened this issue Mar 20, 2025 · 2 comments

Comments

@haerr
Copy link

haerr commented Mar 20, 2025

helm --namespace openobserve-collector \

install o2c /apps/openobserve-collector
--set k8sCluster=cluster1
--set exporters."otlphttp/openobserve".endpoint=https://XXXXXXXXXXXXXXXX
--set exporters."otlphttp/openobserve".headers.Authorization="XXXXXXXXXXXXX"
--set exporters."otlphttp/openobserve_k8s_events".endpoint=https://XXXXXXXXXXXt
--set exporters."otlphttp/openobserve_k8s_events".headers.Authorization="XXXXXXXXXXXXXXXXXXXXX"
--debug
install.go:173: [debug] Original chart version: ""
install.go:190: [debug] CHART PATH: /apps/openobserve-collector

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(OpenTelemetryCollector.spec): missing required field "managementState" in io.opentelemetry.v1beta1.OpenTelemetryCollector.spec
helm.go:81: [debug] error validating "": error validating data: ValidationError(OpenTelemetryCollector.spec): missing required field "managementState" in io.opentelemetry.v1beta1.OpenTelemetryCollector.spec
helm.sh/helm/v3/pkg/kube.scrubValidationError
helm.sh/helm/v3/pkg/kube/client.go:596
helm.sh/helm/v3/pkg/kube.(*Client).Build
helm.sh/helm/v3/pkg/kube/client.go:189
helm.sh/helm/v3/pkg/action.(*Install).Run
helm.sh/helm/v3/pkg/action/install.go:263
main.runInstall
helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.1.3/command.go:897
main.main
helm.sh/helm/v3/cmd/helm/helm.go:80
runtime.main
runtime/proc.go:225
runtime.goexit
runtime/asm_amd64.s:1371
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).Run
helm.sh/helm/v3/pkg/action/install.go:265
main.runInstall
helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.1.3/command.go:897
main.main
helm.sh/helm/v3/cmd/helm/helm.go:80
runtime.main
runtime/proc.go:225
runtime.goexit
runtime/asm_amd64.s:1371

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(OpenTelemetryCollector.spec): missing required field "managementState" in io.opentelemetry.v1beta1.OpenTelemetryCollector.spec

openobserve-collector version 0.3.22

@Manazsharma
Copy link

@haerr I tried deploying O2 Collector on my single-node K8 cluster with v1.31.2 and helm version v3.16.2; it is working fine. Can you please share some details of your environment to help debug this issue for you?


NAME                                                              READY   STATUS    RESTARTS   AGE
o2c-openobserve-collector-agent-collector-vrl52                   1/1     Running   0          20m
o2c-openobserve-collector-gateway-collector-0                     1/1     Running   0          20m
o2c-openobserve-collector-gateway-targetallocator-8987b456kmg2m   1/1     Running   0          20m

@domyway
Copy link

domyway commented Mar 25, 2025

@haerr I tried deploying O2 Collector on my single-node K8 cluster with v1.31.2 and helm version v3.16.2; it is working fine. Can you please share some details of your environment to help debug this issue for you?


NAME                                                              READY   STATUS    RESTARTS   AGE
o2c-openobserve-collector-agent-collector-vrl52                   1/1     Running   0          20m
o2c-openobserve-collector-gateway-collector-0                     1/1     Running   0          20m
o2c-openobserve-collector-gateway-targetallocator-8987b456kmg2m   1/1     Running   0          20m

@Manazsharma
I talked to @haerr , seems from the v0.82.0 operator add a new field called managementState in the OpenTelemetry Collector CRD, which is a required field. may be we should update agent.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants