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

Attempting to create a volume in Docker Swarm fails #680

Open
tetious opened this issue Jul 29, 2024 · 3 comments · Fixed by moby/swarmkit#3181
Open

Attempting to create a volume in Docker Swarm fails #680

tetious opened this issue Jul 29, 2024 · 3 comments · Fixed by moby/swarmkit#3181
Labels
bug Something isn't working

Comments

@tetious
Copy link

tetious commented Jul 29, 2024

TL;DR

When creating a volume as described in the doc linked from the readme, it doesn't error, but never creates the volume. It shows as "pending creation" in volume ls and logs errors in journaldb: "does not implement PluginAddr"

Expected behavior

The volume should be created.

Observed behavior

It isn't created. :)

Minimal working example

  1. Spin up a cluster using the Hetzner Docker image.
  2. Follow the steps in the docs to add and enable the plugin.
  3. Create a volume:
docker volume create --driver hetznercloud/hcloud-csi-driver:swarm --required-bytes 40G --type mount --sharing all --scope single postgres-data --topology-required csi.hetzner.cloud/location=ash
  1. Observe the errors in syslog

Log output

Jul 29 17:35:37 bb-prod-node-1 dockerd[963]: time="2024-07-29T17:35:37.201332112Z" level=info msg="error handling volume" attempt=11 error="plugin for driver \"hetznercloud/hcloud-csi-driver:swarm\" does not implement PluginAddr" module=csi/manager node.id=uqhj7s7qt34saeh896trcm35k volume.id=241uf201u8r5h4bzpjvynwu02

Additional information

Docker version 27.1.1, build 6312585 (From Hetzner's official image)
I've tried using v2.8.0 and latest tags for the plugin with the same results.

@tetious tetious added the bug Something isn't working label Jul 29, 2024
@jooola
Copy link
Member

jooola commented Jul 30, 2024

I was able to reproduce the logs, this seems related to moby/moby#48133

@apricote
Copy link
Member

apricote commented Aug 8, 2024

As @jooola wrote, this seems the be caused by a Docker Swarm bug. An older version of Docker Swarm might work.

As stated in our README, we do not provide official support for the csi-driver in Docker Swarm.

- [Docker Swarm](./docs/docker-swarm/README.md)_⚠️ Not officially supported_

@blib
Copy link

blib commented Sep 8, 2024

please note that in docker 27.x.x CSI plugin interface is broken

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