Skip to content

tpm device requires explicit model parameter #1200

@lod

Description

@lod
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to libvirt_domain.worker_node[0], provider
│ "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]" produced an unexpected new value:
│ .devices.tpms[0].model: was null, but now cty.StringVal("tpm-tis").

Produced from

resource "libvirt_domain" "worker_node" {
  devices = {
    tpms = [
      {
        backend_type    = "emulator"
        backend_version = "2.0"
      }
    ]
...

Manually specifying the model does work around the issue. However this clashes with the documentation that states it is optional and is a regression from the v0.8 behaviour. It's also not something I really care about or want to hard code.

tpms = [
      {
        backend_type    = "emulator"
        backend_version = "2.0"
        model = "tpm-tis"
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions