Giter Site home page Giter Site logo

Comments (4)

muhlba91 avatar muhlba91 commented on June 11, 2024

can you please verify, and open an issue for this in the upstream provider? (https://github.com/bpg/terraform-provider-proxmox)

this resource takes the terraform provider and maps its definition to pulumi resources. if this mapping leads to such behaviour itβ€˜s either an upstream requirement/issue or is autogenerated errornously through the pulumi generator. so far, alls of these minor mapping issues have been upstream issues though.

from pulumi-proxmoxve.

yoshikakbudto avatar yoshikakbudto commented on June 11, 2024

I'v tried to configure a vm resource directly with the upstream provider, the vm creates with no issues:
the upstream provider version is 0.28.0

resource "proxmox_virtual_environment_vm" "test_node" {
  startup {
    order      = "3"
  //  up_delay  and  down_delay will have a default value
  }
}

terraform apply:

...
      + startup {
          + down_delay = -1
          + order      = 3
          + up_delay   = -1
        }

and the resulting VM has values as expected:
image

If i configure vm resource with pulumi with the running pulumi versions:
pulumi==3.78.0
pulumi-proxmoxve==5.10.0

proxmox.vm.VirtualMachine(
   startup=proxmox.vm.VirtualMachineStartupArgs(order=3),
...

the pulumi up throws error:

    error: proxmoxve:VM/virtualMachine:VirtualMachine resource 'test-vm' has a problem: expected up_delay to be at least (0), got -1. Examine values at 'test-vm.startup.upDelay'.
    error: proxmoxve:VM/virtualMachine:VirtualMachine resource 'test-vm' has a problem: expected down_delay to be at least (0), got -1. Examine values at 'test-vm.startup.downDelay'.

from pulumi-proxmoxve.

muhlba91 avatar muhlba91 commented on June 11, 2024

i have tested the startup order with the newest version, and the default values are the same as in Terraform: -1.

i have tested this with the newest Proxmox version. maybe there's a difference in Proxmox between versions?

btw. because of the way Pulumi computes the diff, it will take the plan generated by Terraform.
hence, you need to either set these values to the same (-1) or add them to the ignoreDifferences parameter if you don't want to have an "update" every time.

from pulumi-proxmoxve.

muhlba91 avatar muhlba91 commented on June 11, 2024

closing as it is fixed upstream.

from pulumi-proxmoxve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.