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

Unable to change etcd wal-dir #9726

Open
aretecarpe opened this issue Nov 15, 2024 · 3 comments
Open

Unable to change etcd wal-dir #9726

aretecarpe opened this issue Nov 15, 2024 · 3 comments

Comments

@aretecarpe
Copy link

Bug Report

Attempting to change the etcd wal-dir to to a mounted disk separate from the install disk causes a permission denied. Thus basically forcing me to utilize a static pod one shot to give nobody:nobody permissions to that mount point so it can work.

  etcd:
    extraArgs:
      wal-dir: /var/mnt/etcd-wal

Description

Adding in another disk to be used as the etcd wal-dir for example mounted to: /var/mnt/etcd-wal will deny permissions. Or even mounting the disk to /var/lib/etcd causes issues as well. Is there no way to attach a dedicated disc to be the location of the WAL files?

Logs

192.168.0.2: {"level":"warn","ts":"2024-11-15T05:06:46.465315Z","caller":"wal/wal.go:119","msg":"failed to create a temporary WAL directory","tmp-dir-path":"/var/mnt/etcd-wal.tmp","dir-path":"/var/mnt/etcd-wal","error":"mkdir /var/mnt: permission denied"}

192.168.0.2: {"level":"panic","ts":"2024-11-15T05:06:46.465335Z","caller":"etcdserver/raft.go:490","msg":"failed to create WAL","error":"mkdir /var/mnt: permission denied","stacktrace":"go.etcd.io/etcd/server/v3/etcdserver.startNode\n\tgo.etcd.io/etcd/server/v3/etcdserver/raft.go:490\ngo.etcd.io/etcd/server/v3/etcdserver.NewServer\n\tgo.etcd.io/etcd/server/v3/etcdserver/server.go:469\ngo.etcd.io/etcd/server/v3/embed.StartEtcd\n\tgo.etcd.io/etcd/server/v3/embed/etcd.go:248\ngo.etcd.io/etcd/server/v3/etcdmain.startEtcd\n\tgo.etcd.io/etcd/server/v3/etcdmain/etcd.go:228\ngo.etcd.io/etcd/server/v3/etcdmain.startEtcdOrProxyV2\n\tgo.etcd.io/etcd/server/v3/etcdmain/etcd.go:123\ngo.etcd.io/etcd/server/v3/etcdmain.Main\n\tgo.etcd.io/etcd/server/v3/etcdmain/main.go:40\nmain.main\n\tgo.etcd.io/etcd/server/v3/main.go:31\nruntime.main\n\truntime/proc.go:271"}

Environment

  • Talos version: 1.8.3
  • Kubernetes version: 1.31.1
  • Platform: bare-metal
@smira
Copy link
Member

smira commented Nov 15, 2024

This is not supported at the moment, I will link to #8367 to get it supported eventually.

@aretecarpe
Copy link
Author

aretecarpe commented Nov 15, 2024

Would it be possible to mount a dedicated disk to /var/lib/etcd or would this cause collisions/UB with the EPHEMERAL disk that is used by the install ?

@smira
Copy link
Member

smira commented Nov 15, 2024

You can move whole /var to a different disk with Talos 1.8+, please see documentation.

Eventually via #8367 we will support separate volumes for etcd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants