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

k8sobjectreceiver image pull failed #32909

Closed
gyliu513 opened this issue May 7, 2024 · 6 comments · Fixed by #34600
Closed

k8sobjectreceiver image pull failed #32909

gyliu513 opened this issue May 7, 2024 · 6 comments · Fixed by #34600
Labels

Comments

@gyliu513
Copy link
Member

gyliu513 commented May 7, 2024

Component(s)

No response

What happened?

Description

k8s object receiver deployment creation failed due to no image.

  ----     ------     ----               ----               -------
  Normal   Scheduled  32s                default-scheduler  Successfully assigned default/otelcontribcol-5fff8c474c-b2rnh to otel-control-plane
  Normal   Pulling    18s (x2 over 31s)  kubelet            Pulling image "otelcontribcol:latest"
  Warning  Failed     18s (x2 over 30s)  kubelet            Failed to pull image "otelcontribcol:latest": failed to pull and unpack image "docker.io/library/otelcontribcol:latest": failed to resolve reference "docker.io/library/otelcontribcol:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  Warning  Failed     18s (x2 over 30s)  kubelet            Error: ErrImagePull
  Normal   BackOff    4s (x2 over 30s)   kubelet            Back-off pulling image "otelcontribcol:latest"
  Warning  Failed     4s (x2 over 30s)   kubelet            Error: ImagePullBackOff

Steps to Reproduce

Expected Result

Actual Result

Collector version

default

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@gyliu513 gyliu513 added bug Something isn't working needs triage New item requiring triage labels May 7, 2024
@crobert-1
Copy link
Member

Hello @gyliu513, I just tested and was able to successfully pull the image.

docker pull otel/opentelemetry-collector-contrib

Maybe your authentication is incorrect, or you're using the wrong path to pull from?

@crobert-1 crobert-1 removed bug Something isn't working needs triage New item requiring triage labels May 7, 2024
@gyliu513
Copy link
Member Author

gyliu513 commented May 7, 2024

Thanks @crobert-1, this is the image otelcontribcol:latest, but not otel/opentelemetry-collector-contrib.

@ChrsMark
Copy link
Member

ChrsMark commented Jun 8, 2024

Hey @gyliu513 , I'm not sure if the image otelcontribcol:latest is valid. Where is this defined? Could you share how you deploy the Collector (Helm, custom manifest)?

If you are using a custom manifest or chart you would need to replace the image with otel/opentelemetry-collector-contrib (or any other valid distro), otherwise if you are using a predefined config or example from the Opentelemetry project most probably that's outdated and needs to be fixed.

@gyliu513
Copy link
Member Author

gyliu513 commented Jun 9, 2024

@ChrsMark From here https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sobjectsreceiver#deployment , but I think the document is not right and needs some update, right? Thanks

@crobert-1
Copy link
Member

From here https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sobjectsreceiver#deployment , but I think the document is not right and needs some update, right? Thanks

When working locally with the collector, the otelcontribcol docker image is generated when you run make docker-otelcontribcol. If you're not developing the collector locally, you can use the image we've referenced.

You're right, the README documentation could probably be updated to make this more clear.

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Aug 12, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this issue Sep 12, 2024
K8s examples use the `otelcontribcol` image, which is not available will
fail to be fetched from a registry.
This PR clarifies that in the example manifests. 

Fixes open-telemetry#32909

---------

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants