Giter VIP home page Giter VIP logo

Comments (4)

bitchecker avatar bitchecker commented on August 9, 2024

I can confirm the reported behavior.

To avoid this issue, I added in my code config this lifecycle statement:

lifecycle {
    ignore_changes = [
      initialization
    ]
  }

It seems to be too much (and it is) but, it prevents every unwanted reboots. If I need to change something, I can simply rebuild the instance.

from terraform-provider-proxmox.

rafsaf avatar rafsaf commented on August 9, 2024

Looks like mea culpa in #832

It was an attempt to add servers without breaking change of server but well 😢

Thinking fast, maybe providing both attributes will be temporary fix? Or just downgrade to v0.41.0

resource "proxmox_virtual_environment_vm" "k3s_server_vm" {
  initialization {
    dns {
      server = "10.91.1.1"
      servers = ["10.91.1.1"]
    }
    ...
  }
  ...
}

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Let me take a look... 👀

from terraform-provider-proxmox.

dandyrow avatar dandyrow commented on August 9, 2024

I had noticed this as well. I was going to look into trying to see if there would be a way to put in some logic to maybe check if servers was being used then to ignore the server being set or set it in the code as they shouldn't be defined differently. Not ideal solution.

In the meantime I was able to prevent the change coming up by just defining the server attribute as well as servers with the same value. This worked with the side effect of showing a deprecated attribute warning however this is better than having terraform reboot the VM. The ideal solution, I think, would be to remove the server attribute but obviously that introduces a, albeit small, breaking change unfortunately.

from terraform-provider-proxmox.

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.