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

FailedAttachVolume #550

Open
danielstankw opened this issue Jul 26, 2024 · 18 comments
Open

FailedAttachVolume #550

danielstankw opened this issue Jul 26, 2024 · 18 comments
Assignees
Milestone

Comments

@danielstankw
Copy link

danielstankw commented Jul 26, 2024

What happened?

There is an issue with the helm chart deployment and Volume.
The volume 'vol-03e1c30abe533984b' does not exist. - seems like a misconfiguration of volume name on the helm site

When deploying the helm chart the following happens:

elasticsearch-5654f4f8c5-8xjkj   1/1     Running             0              16m
etcd-0                           0/1     ContainerCreating   0              13m
karpor-server-d9d477955-9gb4t    0/1     CrashLoopBackOff    7 (3m ago)     16m
karpor-syncer-64d449f4c-fbzjv    0/1     Error               8 (5m7s ago)   16m

This is due:
k describe pod etcd-0

  Warning  FailedAttachVolume  12m   attachdetach-controller  AttachVolume.Attach failed for volume "pvc-f28692d1-1d3e-4b8a-b2fc-1980dc2c1eee" : InvalidVolume.NotFound: The volume 'vol-03e1c30abe533984b' does not exist.
           status code: 400, request id: ef0543fb-03dd-4a9c-82ab-06f2cca0faa2

k get pvc

NAME          STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
data-etcd-0   Bound    pvc-f28692d1-1d3e-4b8a-b2fc-1980dc2c1eee   10Gi       RWO            gp2            3h59m

What did you expect to happen?

....

How can we reproduce it (as minimally and precisely as possible)?

Run the default helm chart with unchanged values.

Anything else we need to know?

No response

Karpor version

$ karpor -V
# paste output here

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

@elliotxx
Copy link
Collaborator

elliotxx commented Jul 26, 2024

Ohh, I'm not in front of the computer right now. I'll reproduce it locally later.

Does this mistake exist all the time, or will it just wait a while?

@danielstankw
Copy link
Author

@elliotxx
For me its been there all the time.
It seems like its trying to use volume that doesnt exist.

@elliotxx
Copy link
Collaborator

Strange, we didn't encounter this case during the test. Let me see what's going on.

@danielstankw
Copy link
Author

@elliotxx any update on this?

@ruquanzhao
Copy link
Collaborator

Hi, @danielstankw, welcome to the Community!

It seems you are using a k8s cluster with AWS. Can you please check your Persistent Volume? If you don't have an available Persistent Volume, you might need to either configure a StorageClass or manually create a 10GB storage volume.

@danielstankw
Copy link
Author

@ruquanzhao thanks for reply,
It seems like issue is happening due to the difference in AWS setup.
Would it be possible for you to add fields for defining pvc in the helm chart? - that would solve the issue

@ruquanzhao
Copy link
Collaborator

@ruquanzhao thanks for reply, It seems like issue is happening due to the difference in AWS setup. Would it be possible for you to add fields for defining pvc in the helm chart? - that would solve the issue

Yes, you are right, the stroageclass can be configured through Helm chart. Let's discuss more for details!
WDYT, @elliotxx ?

@elliotxx
Copy link
Collaborator

@ruquanzhao @danielstankw Yeah, PVC has been mentioned multiple times (#347 #522 ...), and we will support specifying it in helm this week!

@elliotxx elliotxx added this to the v0.5.0 milestone Jul 29, 2024
@elliotxx elliotxx self-assigned this Jul 29, 2024
@rajeswarr
Copy link

@ruquanzhao thanks for reply, It seems like issue is happening due to the difference in AWS setup. Would it be possible for you to add fields for defining pvc in the helm chart? - that would solve the issue

Yes, you are right, the stroageclass can be configured through Helm chart. Let's discuss more for details! WDYT, @elliotxx ?

is this implemented, still I am getting the issue?

@elliotxx
Copy link
Collaborator

@ruquanzhao thanks for reply, It seems like issue is happening due to the difference in AWS setup. Would it be possible for you to add fields for defining pvc in the helm chart? - that would solve the issue

Yes, you are right, the stroageclass can be configured through Helm chart. Let's discuss more for details! WDYT, @elliotxx ?

is this implemented, still I am getting the issue?

@rajeswarr Thank you feedback. Have you encountered this problem too? We will provide the ability to customize StorageClass this week.

@rajeswarr
Copy link

@ruquanzhao thanks for reply, It seems like issue is happening due to the difference in AWS setup. Would it be possible for you to add fields for defining pvc in the helm chart? - that would solve the issue

Yes, you are right, the stroageclass can be configured through Helm chart. Let's discuss more for details! WDYT, @elliotxx ?

is this implemented, still I am getting the issue?

@rajeswarr Thank you feedback. Have you encountered this problem too? We will provide the ability to customize StorageClass this week.

@elliotxx , I got this issue on-premises cluster.

@danielstankw
Copy link
Author

@elliotxx if you want I can modify the helm chart and create pull request, unless you started on this topic?

@elliotxx
Copy link
Collaborator

@elliotxx if you want I can modify the helm chart and create pull request, unless you started on this topic?

@danielstankw Very welcome! As I replied in another issue, I can only start optimizing the chart a few days later. If you can start directly, that would be great.

@danielstankw
Copy link
Author

@elliotxx sounds good, will do

@rajeswarr
Copy link

@elliotxx sounds good, will do

Thank you @elliotxx and @danielstankw. Please let me know once changes are done.

@elliotxx
Copy link
Collaborator

@elliotxx sounds good, will do

Thank you @elliotxx and @danielstankw. Please let me know once changes are done.

@rajeswarr Of course 👌

@elliotxx elliotxx assigned danielstankw and unassigned elliotxx Aug 7, 2024
@elliotxx elliotxx modified the milestones: v0.5.0, v0.6.0 Aug 22, 2024
@wenxuanwu
Copy link

I also encountered a similar problem and can temporarily solve it by creating a local pv

@elliotxx
Copy link
Collaborator

I also encountered a similar problem and can temporarily solve it by creating a local pv

Yeah, We are following this problem

@elliotxx elliotxx modified the milestones: v0.6.0, v0.7.0 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants