mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[GH-ISSUE #17] disk creation error #7
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @acaz on GitHub (Dec 29, 2018).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/17
I have setup terraform 0.11.11 + terraform-provider-proxmox + proxmox-api-go
I can create vm ( qemu ) without disk , with no problem
When i try to add a disk , terraform aplly hangs with this error
resource "proxmox_vm_qemu" "ljrsrv1" {
name = "ljrsrv1"
desc = "SSO VM"
target_node = "${var.vm_node}"
memory = 4096
sockets = 1
cores = 4
iso = "VMs:iso/ljrsrv1.iso"
network = {
id = 0
model = "${var.vm_net_driver}"
bridge = "${var.vm_net_bridge}"
}
disk = {
id = 0
type = "virtio"
storage = "VMs"
storage_type = "dir"
size = "50"
format = "raw"
}
}
1 error(s) occurred:
with debug mode :
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: 2018/12/29 14:32:00 >>>>>>>>>> REQUEST:
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: %!(EXTRA string=POST /api2/json/nodes/lrjhyp1/storage/VMs/content HTTP/1.1
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Host: 89.31.146.4:8006
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: User-Agent: Go-http-client/1.1
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Content-Length: 49
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Accept: application/json
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Content-Type: application/x-www-form-urlencoded
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Cookie: PVEAuthCookie=PVE:root@pam:5C278560::YcY/5F982RVfJcrQCOptIQr6terrtsy+ds49L4Lf7eGRd9gjDB1NmmNchEqaln5+vvkt7xfVBfm+ItD1jZCgv9yUmHAulvRgLPw5Zls2USwTJisFrHWRpBTKLZSr6V/4o8v2y9mFySALjCTGc9YbJ8lYpVT5xRZAu67PHCJA4meZbYMNp9jlfBx7AW0hDGZ+czfQIkYqovsvPx4rqA6nZzUCS5JB1ahqPlGeEIirMx6gDWKBog35K3UXKD8UorVO7WdRKQ1CrvA+A89TskN0xuJwKGgD7NMPBQuYalE6W38AZrH7zaIjBtofXWI4e2ukAuAYEIackkgE4Qpnhy9aSQ==
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Csrfpreventiontoken: 5C278560:5Ms3bpxrWNhthstAxML68Tv+tkg
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: Accept-Encoding: gzip
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox:
2018-12-29T14:32:00.450Z [DEBUG] plugin.terraform-provider-proxmox: filename=101%2Fvm-101-disk-1.raw&size=50&vmid=101)
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: 2018/12/29 14:32:00 <<<<<<<<<< RESULT:
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: %!(EXTRA string=HTTP/1.1 500 unable to parse volume filename '101/vm-101-disk-1.raw'
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Connection: close
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Content-Length: 13
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Cache-Control: max-age=0
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Content-Type: application/json;charset=UTF-8
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Date: Sat, 29 Dec 2018 14:32:00 GMT
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Expires: Sat, 29 Dec 2018 14:32:00 GMT
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Pragma: no-cache
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: Server: pve-api-daemon/3.0
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox:
2018-12-29T14:32:00.485Z [DEBUG] plugin.terraform-provider-proxmox: {"data":null})
2018/12/29 14:32:00 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
@acaz commented on GitHub (Jan 7, 2019):
Hello, today, i try again ( with latest proxmox-api-go version) : same error
proxmox version used : pve-manager/5.3-6/37b3c8df (running kernel: 4.15.18-9-pve)
With proxmox 5.3-5 and zfs storage, the same terraform's plan applies with success
Error: Error applying plan:
7 error(s) occurred:
proxmox_vm_qemu.ljrsrvvar1: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvvar1: 500 unable to parse volume filename '102/vm-102-disk-0.qcow2'
proxmox_vm_qemu.ljrsrvweb2: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvweb2: 500 unable to parse volume filename '103/vm-103-disk-0.qcow2'
proxmox_vm_qemu.ljrsrvnfs1: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvnfs1: 500 unable to parse volume filename '104/vm-104-disk-0.qcow2'
proxmox_vm_qemu.ljrsrvmem1: 1 error(s) occurred:
2019/01/07 11:27:31 [DEBUG] plugin: waiting for all plugin processes to complete...
proxmox_vm_qemu.ljrsrvmem1: 500 unable to parse volume filename '105/vm-105-disk-0.qcow2'
proxmox_vm_qemu.ljrsrvweb1: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvweb1: 500 unable to parse volume filename '106/vm-106-disk-0.qcow2'
proxmox_vm_qemu.ljrsrvsso1: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvsso1: 500 unable to parse volume filename '107/vm-107-disk-0.qcow2'
2019-01-07T11:27:31.111Z [DEBUG] plugin.terraform-provider-proxmox: 2019/01/07 11:27:31 [ERR] plugin: plugin server: accept unix /tmp/plugin533702307: use of closed network connection
proxmox_vm_qemu.ljrsrvbdd1: 1 error(s) occurred:
proxmox_vm_qemu.ljrsrvbdd1: 500 unable to parse volume filename '101/vm-101-disk-0.qcow2'
@acaz commented on GitHub (Jan 8, 2019):
The same terraform plan works great with lvm storage !
The issue append only with directory storage .
@nickhelmet commented on GitHub (Aug 26, 2020):
I have the same issue, but i discovered that if the file system its ZFS. In the terraform main.tf must use raw format instead of lvm format.
With this change the plan worked perfectly.