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

When neither clone nor iso is set, apply ends with generic "VM not found" error #35

Closed
andrzejressel opened this issue Jan 12, 2019 · 0 comments

Comments

@andrzejressel
Copy link
Contributor

andrzejressel commented Jan 12, 2019

To reproduce:

Try creating machine with following config:

resource "proxmox_vm_qemu" "cloudinit-test" {
	name = "tftest1.xyz.com"
	desc = "tf description"
	target_node = "pve"

	storage = "local"
	cores = 3
	sockets = 1
	memory = 2560
	disk_gb = 4
	nic = "virtio"
	bridge = "vmbr0"

	ssh_user = "root"
	ssh_private_key = <<EOF
-----BEGIN RSA PRIVATE KEY-----
private ssh key root
-----END RSA PRIVATE KEY-----
EOF

	os_type = "cloud-init"
	ipconfig0 = "ip=10.0.2.99, gw=10.0.2.2"

	sshkeys = <<EOF
ssh-rsa AAAAB3NzaC1kj...key1
ssh-rsa AAAAB3NzaC1kj...key2
EOF

	provisioner "remote-exec" {
		inline = [
			"ip a"
		]
	}
}

Actual:
tfstate with machine is created and proxmox_vm_qemu.cloudinit-test: Vm '101' not found error is shown

Expected:
tfstate is not created (at least not with that machine) and Machine must have either clone or iso set error is shown.

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

No branches or pull requests

1 participant