Skip to content

container mountpoint changes (like add, change size and deletion) should trigger a recreate #2322

@lexxxel

Description

@lexxxel

Describe the bug
I played around with mount points and found multiple issues:

  1. the container has to be stopped to add a new mount point
  2. the deletion of mount points does not work
  3. a change of the size does not work

point 2 and 3 also seams to change the first mount point, even if another index is 'changed'

To Reproduce
Steps to reproduce the behavior:

steps are different but obvious from the description above (at least I hope so - please comment if my assumption is wrong).

Please also provide a minimal Terraform configuration that reproduces the issue.

# >>> put your example here <<< #

and the output of terraform|tofu apply.


Expected behavior
That is a design design: either the container is recreated or the changes are made as expected. However, I was not able to find a quick way to disconnect and delete a mount point, on my brief search. So, a recreate might be easier to implement.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

  • Single or clustered Proxmox: single
  • Proxmox version: 9.0.11
  • Provider version (ideally it should be the latest version): 0.86.0
  • Terraform/OpenTofu version: 1.9.0
  • OS (where you run Terraform/OpenTofu from): gentoo
  • Debug logs (TF_LOG=DEBUG terraform apply):

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    Status

    📥 Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions