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

Combine the computed volume keys with the inherited storage pool keys (from Incus) #531

Merged

Conversation

MusicDin
Copy link
Member

@MusicDin MusicDin commented Sep 26, 2024

Cherry-picked from lxc/terraform-provider-incus#68

Simple example that was causing an issue:

resource "lxd_storage_pool" "pool" {
  name   = "tf-pool"
  driver = "zfs"

  config = {
    "volume.zfs.block_mode" = false
  }
}

resource "lxd_volume" "vol" {
  name = "tf-vol"
  pool = lxd_storage_pool.pool.name
}
$ terraform apply

│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to lxd_volume.vol, provider "provider[\"registry.terraform.io/terraform-lxd/lxd\"]" produced an unexpected new value: .config: new element
│ "zfs.block_mode" has appeared.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

…torage pool keys

Signed-off-by: Fabian Mettler <[email protected]>
(cherry picked from commit 0075a635761973e57b438d74630a06ed83f993fe)
Signed-off-by: Din Music <[email protected]>
@MusicDin MusicDin force-pushed the cp/storage-pool-inherited-keys branch from d6b4f5c to 2c8f3ad Compare September 26, 2024 15:51
@MusicDin MusicDin marked this pull request as ready for review September 26, 2024 16:06
@simondeziel simondeziel merged commit f8538e7 into terraform-lxd:main Oct 2, 2024
9 checks passed
@MusicDin MusicDin deleted the cp/storage-pool-inherited-keys branch October 2, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants