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

Provider deletes PVs created by proxmox-csi-plugin #1206

Open
TomyLobo opened this issue Dec 18, 2024 · 0 comments
Open

Provider deletes PVs created by proxmox-csi-plugin #1206

TomyLobo opened this issue Dec 18, 2024 · 0 comments

Comments

@TomyLobo
Copy link

TomyLobo commented Dec 18, 2024

I'm doing the following:

  1. (Telmate/terraform-provider-proxmox) Create a machine on Proxmox
    • The VM has an SCSI disk named scsi0
  2. (siderolabs/terraform-provider-talos) Install and bootstrap a Talos/Kubernetes cluster
    • Installing to /dev/sda
  3. (sergelogvinov/proxmox-csi-plugin) Provision PersistentVolumes to fulfill PersistentVolumeClaims with accessMode ReadWriteOnce
    • This provisions extra SCSI disks starting from scsi1, i.e. /dev/sdb
    • These disks belong to a non-existant vmid 9999 and are attached to the VM that runs the pods that need to mount the volume.

This works fine, but if I then run terraform plan again, it says it wants to remove the disks provisioned by proxmox-csi-plugin.

A workaround I tried was to put disks (or even just disks[0].scsi) into ignore_changes.
That works to prevent Terraform from removing my disks.
However, that also prevents me from increasing the size of scsi0 in order to, for instance, accommodate more and/or larger container images than originally anticipated.

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

1 participant