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

virtual machine (ID: 137): unexpected state 'LCM_INIT', wanted target 'RUNNING'. last error: %!s(<nil>) #410

Closed
thangamani-arun opened this issue Feb 17, 2023 · 1 comment · Fixed by #411
Assignees
Milestone

Comments

@thangamani-arun
Copy link

We have created 6 numbers of VMs. The errors are random, sometimes you see somes times you won't see. Since It happens quite frequently, logged this report.

Terraform Version

Terraform v1.3.3

Affected Resource(s)

  • provider registry.terraform.io/opennebula/opennebula v1.1.1

Terraform Configuration Files

Create 6 numbers of generic VMs using terraform, you can see this error.

Debug Output

Expected Behavior

opennebula_virtual_machine.t3-vm1: Creation complete after 1m39s [id=136]
opennebula_virtual_machine.t3-vm2: Creation complete after 1m39s [id=139]
opennebula_virtual_machine.t3-vm4: Creation complete after 1m39s [id=137]

Actual Behavior

│ Error: Failed to wait virtual machine to be in RUNNING state
│
│   with opennebula_virtual_machine.t3-vm1,
│   on vm.tf line 74, in resource "opennebula_virtual_machine" "t3-vm1":
│   74: resource "opennebula_virtual_machine" "t3-vm1" {
│
│ virtual machine (ID: 136): unexpected state 'LCM_INIT', wanted target 'RUNNING'. last error: %!s(<nil>)
╵
╷
│ Error: Failed to wait virtual machine to be in RUNNING state
│
│   with opennebula_virtual_machine.t3-vm2,
│   on vm.tf line 90, in resource "opennebula_virtual_machine" "t3-vm2":
│   90: resource "opennebula_virtual_machine" "t3-vm2" {
│
│ virtual machine (ID: 139): unexpected state 'LCM_INIT', wanted target 'RUNNING'. last error: %!s(<nil>)
╵
╷
│ Error: Failed to wait virtual machine to be in RUNNING state
│
│   with opennebula_virtual_machine.t3-vm4,
│   on vm.tf line 122, in resource "opennebula_virtual_machine" "t3-vm4":
│  122: resource "opennebula_virtual_machine" "t3-vm4" {
│
│ virtual machine (ID: 137): unexpected state 'LCM_INIT', wanted target 'RUNNING'. last error: %!s(<nil>)

Steps to Reproduce

  1. terraform apply
@treywelsh
Copy link
Collaborator

treywelsh commented Feb 17, 2023

Here are the VM states description: https://docs.opennebula.io/6.4/integration_and_development/references/vm_states.html#list-of-states

And the description of the state we're talking about:
LCM_INIT: Internal initialization state, not visible for the end users

Maybe that I was influenced by the description and I didn't added it to possible transient states when waiting for the VM to be ready, I just opened #411 for this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants