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

Bug: Listed containers in helm file don't seem to exist for 0.4.1 #397

Open
jdblack opened this issue Jan 21, 2025 · 5 comments
Open

Bug: Listed containers in helm file don't seem to exist for 0.4.1 #397

jdblack opened this issue Jan 21, 2025 · 5 comments
Assignees
Labels
bug Something isn't working ci/cd

Comments

@jdblack
Copy link

jdblack commented Jan 21, 2025

What happened:

While attempting to perform a new installation of datashim via helm (via terraform) for the first time, the install bombed out.

16:45 $ k get pods -n kube-storage
NAME READY STATUS RESTARTS AGE
csi-attacher-nfsplugin-0 0/2 CrashLoopBackOff 6 (3m54s ago) 13m
csi-attacher-s3-0 0/1 CrashLoopBackOff 6 (3m59s ago) 13m
csi-nodeplugin-nfsplugin-4xkcv 0/2 ImagePullBackOff 6 (4m11s ago) 13m
csi-nodeplugin-nfsplugin-56r82 0/2 ImagePullBackOff 6 (3m44s ago) 13m
csi-nodeplugin-nfsplugin-6fl8j 0/2 ImagePullBackOff 6 (3m49s ago) 13m
csi-nodeplugin-nfsplugin-c7v4h 0/2 ImagePullBackOff 6 (4m5s ago) 13m
csi-nodeplugin-nfsplugin-h5cgw 0/2 ImagePullBackOff 6 (3m44s ago) 13m
csi-nodeplugin-nfsplugin-qpq5g 0/2 ImagePullBackOff 6 (4m8s ago) 13m
csi-provisioner-s3-0 0/1 CrashLoopBackOff 6 (3m32s ago) 13m
csi-s3-8fprp 0/2 ImagePullBackOff 6 (3m52s ago) 13m
csi-s3-drbkz 0/2 ImagePullBackOff 6 (4m4s ago) 13m
csi-s3-kfkgt 0/2 ImagePullBackOff 6 (4m1s ago) 13m
csi-s3-skllw 0/2 ImagePullBackOff 6 (3m49s ago) 13m
csi-s3-wcvbj 0/2 ImagePullBackOff 6 (3m59s ago) 13m
csi-s3-zmtrb 0/2 ImagePullBackOff 6 (3m49s ago) 13m

One image here, for example:
Warning Failed 8m45s (x4 over 10m) kubelet Failed to pull image "quay.io/datashim-io/csi-nfs:8f50a01": rpc error: code = NotFound desc = failed to pull and unpack image "quay.io/datashim-io/csi-nfs:8f50a01": failed to resolve reference "quay.io/datashim-io/csi-nfs:8f50a01": quay.io/datashim-io/csi-nfs:8f50a01: not found

A check at https://quay.io/repository/datashim-io/csi-nfs?tab=tags&tag=latest seems to confirm that this particular image is missing.

What you expected to happen:

A working helm driven deployment similar to the one provided by kube manifest =)

How to reproduce it (as minimally and precisely as possible):

Try to deploy and observer the containers in imagepullbackoff

datashim kube-storage 1 2025-01-21 16:32:34.909518 +0700 +07 failed datashim-charts-0.4.1 0.4.1

Anything else we need to know?:

Environment:

  • Datashim version: 0.4.1 (Helm version)
  • Kubernetes version (use kubectl version): 1.3.2
  • Kubernetes distribution: via kubeadm
  • Cloud provider or hardware configuration: Hardware
@jdblack jdblack added the bug Something isn't working label Jan 21, 2025
@srikumar003
Copy link
Collaborator

@jdblack Thanks for the report! Checking now

@jdblack
Copy link
Author

jdblack commented Jan 21, 2025

Thank you!

Were you able to replicate it? I tried digging into the helm charts a little bit, and I had trouble figuring out where it got those image IDs from. I'm a bit confused because in the helm, it seems like nice tag names are being used, rather than hash ids.

Please let me know if there's anything I can followup with!

@srikumar003
Copy link
Collaborator

I was able to replicate it on kind and trying to find out why the image IDs crept in (our release github action tags the images with the right version number)

If it helps, the image IDs is the commit id from which the release was generated. But still does not explain what happened

I'll keep digging into it. But, please feel free to share further insights!

@srikumar003
Copy link
Collaborator

The problem is fixed for now but I am still investigating.

Background:

  1. The release tag for Datashim is applied only to the images for dataset-operator, generate-keys, and cos-uploader components
  2. Images for the CSI components csi-nfs and csi-s3 are tagged with the commit ID at the time of the release.
  3. All the components are packaged into the helm charts

What happened:

For reasons unknown, the images for csi-nfs and csi-s3 were not tagged correctly, even though they were successfully pushed to the image repository

As a temporary fix, I have tagged the images in the image repository with the correct ID. The helm chart install works and I have verified this. Will post further when I have more insights

@srikumar003 srikumar003 self-assigned this Jan 27, 2025
@jdblack
Copy link
Author

jdblack commented Jan 27, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci/cd
Projects
None yet
Development

No branches or pull requests

2 participants