Comments (7)
[core@bastion storage]$ kubectl logs -f hcloud-csi-node-jcsdp -n kube-system -c hcloud-csi-driver level=info ts=2024-03-15T13:33:11.303902051Z msg="Fetched data from metadata service" id=41964065 location=nbg1 ^C [core@bastion storage]$ kubectl logs -f hcloud-csi-node-p6jj2 -n kube-system -c hcloud-csi-driver level=info ts=2024-03-15T13:33:09.161029164Z msg="Fetched data from metadata service" id=41963957 location=nbg1 level=error ts=2024-03-15T13:34:49.615777847Z component=grpc-server msg="handler failed" err="rpc error: code = Internal desc = failed to publish volume: unable to detect existing disk format of /dev/disk/by-id/scsi-0HC_Volume_100455302: disk /dev/disk/by-id/scsi-0HC_Volume_100455302 propably contains partitions"
from csi-driver.
I'm also running into this issue.
My manifest:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: task-pv-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
---
apiVersion: v1
kind: Pod
metadata:
name: task-pv-pod
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: task-pv-claim
containers:
- name: task-pv-container
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: task-pv-storage
The error:
MountVolume.SetUp failed for volume "pvc-15b2696c-eaf0-4e79-97de-71903a597ebb" : rpc error: code = Internal desc = failed to publish volume: unable to detect existing disk format of /dev/disk/by-id/scsi-0HC_Volume_100612315: disk /dev/disk/by-id/scsi-0HC_Volume_100612315 propably contains partitions
from csi-driver.
I am unable to reproduce this with our dev setup and the Getting Started guide.
Some questions that might help to pinpoint the issue:
- What version of csi-driver are you using?
- How often does this issue happen?
- What OS are you using on the nodes where this happens?
- What Kubernetes distribution and what version are you using?
- Did you make any modifications to the
StorageClass
?
from csi-driver.
- Latest from helm
- Every time
- Talos cluster
- v1.27.4 vanilla
- No
from csi-driver.
I am still unable to reproduce this. What I have done:
- Setup a Cluster with Talos 1.7.0 using their docs
I used Packer to create the snapshots. To generate the Talos Config I used this command instead, to get below the 32kb limit on userdata:
talosctl gen config talos-k8s-hcloud-tutorial https://$LOAD_BALANCER_IP:6443 --kubernetes-version 1.27.4 --with-docs=false --with-examples=false
- Followed the Steps from our Getting Started on Kubernetes guide, installing the Helm chart and applying
my-csi-app
.
And my-csi-app
successfully started and the volume is mounted.
Do you have some steps for me to reproduce this?
from csi-driver.
It looks like I get the error from the API, or it bounds the volumes wrong. I only have the problem with an older cluster. If I create a new cluster (even on old talos like 1.6), it works.
Is there some API in the client ore how the volumes that are attached are different ?
Have 2 cluster now on the same project work on one but not on the other ?
I have given up and move
from csi-driver.
Same issue
- cluster setup with: https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner (3 controller, 3 nodes)
- installed csi_driver by helm (latest)
- any hcloud volumes that i try to create fails with
failed to publish volume: │ │ unable to detect existing disk format of /dev/disk/by-id/scsi-0HC_Volume_xxxxxxxx: disk /dev/disk/by-id/scsi-0 │ │ HC_Volume_xxxxxxxx propably contains partitions
from csi-driver.
Related Issues (20)
- You must either provide secret.hcloudApiToken or secret.existingSecretName HOT 3
- Missing image 2.3.0 HOT 3
- Plans to make the CSI working on bare metal (root) servers? HOT 1
- Use hetznercloud csi driver in non hetzner-cloud servers. HOT 1
- Helm Chart: Permissions for leases in apiGroup coordination.k8s.io missing
- Allow passing file system formatting options (e.g. block size) HOT 1
- Missing "mount" directory on provisioned persistent volume HOT 6
- fix(chart): Make default values work with cloud/dedicated hybrid clusters HOT 2
- feat(helm): deploy Grafana dashboard HOT 1
- clarify nomad requirements? HOT 2
- Question: can I attach a Volume to pods running on nodes that are NOT provisioned in Hetzner cloud? HOT 1
- Volume is not attached to the instance, but VolumeAttachment is existent already HOT 3
- Support mounting with SELinux mount options to prevent big volumes from not being able to mount into pods HOT 1
- registry.k8s.io 403, blacklisted ip HOT 1
- Running csi-driver on Hetzner bare-metal machines HOT 1
- ci: release process broken for 2.7.0 HOT 5
- Failed to increase pv size after successful increase of pvc size HOT 1
- Failed to recover after node took the drive (volume) offline
- MountVolume.SetUp failed for encrypted XFS volume
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csi-driver.