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

LXC mount bind in directory - mountpoint.0.size: '' expected type 'string', got unconvertible type 'int', value: '1' #1121

Open
ze42 opened this issue Oct 7, 2024 · 0 comments

Comments

@ze42
Copy link

ze42 commented Oct 7, 2024

Error when trying to plan after creating a container.

From the documentation here:
https://pve.proxmox.com/wiki/Linux_Container#pct_settings

  • Mount Points
  • Storage Backed Mount Points
  • Directories: passing size=0 triggers a special case where instead of a raw image a directory is created.

I created a mount point with 0 size, which allowed a directory to be automatically mounted, without any size applied.

The container works properly, has a folder mounted allowing to have no specific limit, just the underlying partition.

When trying to generate a new plan, I get the following error...

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: mountpoint.0.size: '' expected type 'string', got unconvertible type 'int', value: '1'
│ 
│   with module.proxmox-backup-1.proxmox_lxc.ct[0],
│   on modules/proxmox_ct/ct.tf line 11, in resource "proxmox_lxc" "ct":
│   11: resource "proxmox_lxc" "ct" {
│ 
╵
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