Giter VIP home page Giter VIP logo

Comments (3)

bpg avatar bpg commented on August 9, 2024

Hey @willifehler 👋🏼

Could you post your tofu output after the first and then second run?

from terraform-provider-proxmox.

willifehler avatar willifehler commented on August 9, 2024

Sure @bpg. Thank you so much for your support. I will cut the output of OpenTofu, there are also Ansible resource changes which I skip here.

tofu plan

114   # proxmox_virtual_environment_vm.vm["testserver"] will be updated in-place
115   ~ resource "proxmox_virtual_environment_vm" "vm" {
116         id                      = "100"
117         name                    = "testserver"
118       ~ node_name               = "pve2" -> "pve3"
119         tags                    = [
120             "opentofu",
121             "test",
122         ]
123         # (26 unchanged attributes hidden)
124
125         # (7 unchanged blocks hidden)
126     }
127
128 Plan: 2 to add, 1 to change, 0 to destroy.

tofu apply

228   # proxmox_virtual_environment_vm.vm["testserver"] will be updated in-place
229   ~ resource "proxmox_virtual_environment_vm" "vm" {
230         id                      = "100"
231         name                    = "testserver"
232       ~ node_name               = "pve2" -> "pve3"
233         tags                    = [
234             "opentofu",
235             "test",
236         ]
237         # (26 unchanged attributes hidden)
238
239         # (7 unchanged blocks hidden)
240     }
241
242 Plan: 2 to add, 1 to change, 0 to destroy.
243 proxmox_virtual_environment_vm.vm["testserver"]: Modifying... [id=100]
244 ╷
245 │ Error: error retrieving VM 100: the requested resource does not exist
246 │
247 │   with proxmox_virtual_environment_vm.vm["testserver"],
248 │   on proxmox_vm.tf line 5, in resource "proxmox_virtual_environment_vm" "vm":
249 │    5: resource "proxmox_virtual_environment_vm" "vm" {
250 │
251 ╵

After the migration is finished tofu plan isn't showing anything which is related to the VM. (100)

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Hey @willifehler, it looks like you didn't use the migrate attribute. Could you please try that and report back?

I've also done some tests for VM migration in another ticket, and it worked for me.

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.