Guest User

terraform

a guest
Oct 9th, 2021
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sat, 09 Oct 2021 21:55:02 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:141 > Enabling the capture of log-library logs as ithe _capturelog flag was detected
  2. Sat, 09 Oct 2021 21:55:02 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:174 > Logging Started. Root Logger Set to level debug
  3. Sat, 09 Oct 2021 21:56:06 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:141 > Enabling the capture of log-library logs as ithe _capturelog flag was detected
  4. Sat, 09 Oct 2021 21:56:06 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:174 > Logging Started. Root Logger Set to level debug
  5. Sat, 09 Oct 2021 21:56:07 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:141 > Enabling the capture of log-library logs as ithe _capturelog flag was detected
  6. Sat, 09 Oct 2021 21:56:07 -0500 INF github.com/Telmate/terraform-provider-proxmox/proxmox/util.go:174 > Logging Started. Root Logger Set to level debug
  7. 2021/10/09 21:56:07 [DEBUG] setting computed for "unused_disk" from ComputedKeys
  8. Sat, 09 Oct 2021 21:56:07 -0500 DBG github.com/Telmate/terraform-provider-proxmox/proxmox/resource_vm_qemu.go:726 > Invoking VM create with resource data: '{"additional_wait":15,"agent":1,"args":"","balloon":0,"bios":"seabios","boot":"cdn","bootdisk":"scsi0","bridge":"","ci_wait":0,"cicustom":"","cipassword":"","ciuser":"","clone":"ubuntu-2004-cloudinit-template","clone_wait":15,"cloudinit_cdrom_storage":"","cores":2,"cpu":"host","default_ipv4_address":"","define_connection_info":true,"desc":"","disk":[{"backup":0,"cache":"none","discard":"","file":"","format":"","iothread":1,"mbps":0,"mbps_rd":0,"mbps_rd_max":0,"mbps_wr":0,"mbps_wr_max":0,"media":"","replicate":0,"size":"10G","slot":0,"ssd":0,"storage":"local-zfs","storage_type":"","type":"scsi","volume":""}],"disk_gb":0,"force_create":false,"force_recreate_on_change_of":"","full_clone":true,"guest_agent_ready_timeout":600,"hastate":"","hotplug":"network,disk,usb","ipconfig0":"ip=192.168.11.61/24,gw=192.168.11.1","ipconfig1":"","ipconfig2":"","ipconfig3":"","ipconfig4":"","ipconfig5":"","iso":"","kvm":true,"mac":"","memory":2048,"name":"test-vm-1","nameserver":"","network":[{"bridge":"vmbr0","firewall":false,"link_down":false,"macaddr":"","model":"virtio","queues":0,"rate":0,"tag":-1}],"nic":"","numa":false,"onboot":true,"os_network_config":"","os_type":"cloud-init","pool":"","preprovision":true,"qemu_os":"","reboot_required":false,"scsihw":"virtio-scsi-pci","searchdomain":"","serial":[],"sockets":1,"ssh_forward_ip":"","ssh_host":"","ssh_port":"","ssh_private_key":"","ssh_user":"","sshkeys":" XXX","storage":"","storage_type":"","tags":"","target_node":"192.168.11.30","unused_disk":[],"vcpus":0,"vga":[],"vlan":-1,"vmid":0}' loggerName=resource_vm_create vmid=
  9. 2021/10/09 21:56:07 [DEBUG] checking for duplicate name
  10. 2021/10/09 21:56:07 >>>>>>>>>> REQUEST:
  11. GET /api2/json/cluster/resources?type=vm HTTP/1.1
  12. Host: 192.168.11.30:8006
  13. User-Agent: Go-http-client/1.1
  14. Accept: application/json
  15. Authorization: PVEAPIToken=XXX@pam!new_token_id=XXX
  16. Accept-Encoding: gzip
  17.  
  18. 2021/10/09 21:56:07 <<<<<<<<<< RESULT:
  19. HTTP/1.1 200 OK
  20. Content-Length: 1805
  21. Cache-Control: max-age=0
  22. Connection: Keep-Alive
  23. Content-Type: application/json;charset=UTF-8
  24. Date: Sun, 10 Oct 2021 02:56:14 GMT
  25. Expires: Sun, 10 Oct 2021 02:56:14 GMT
  26. Pragma: no-cache
  27. Server: pve-api-daemon/3.0
  28.  
  29. {"data":[{"maxmem":8589934592,"disk":0,"uptime":0,"mem":0,"status":"stopped","maxdisk":107374182400,"id":"qemu/100","vmid":100,"netin":0,"cpu":0,"maxcpu":8,"diskwrite":0,"type":"qemu","diskread":0,"node":"pve","netout":0,"name":"PopOS","template":0},{"cpu":0,"netin":0,"maxcpu":4,"maxdisk":107374182400,"id":"qemu/101","status":"stopped","vmid":101,"mem":0,"maxmem":8589934592,"disk":0,"uptime":0,"netout":0,"name":"ub2104","template":0,"diskread":0,"node":"pve","type":"qemu","diskwrite":0},{"node":"pve","diskread":0,"name":"ubsrv1","template":0,"netout":0,"diskwrite":0,"type":"qemu","vmid":301,"id":"qemu/301","maxdisk":13098811392,"status":"stopped","cpu":0,"netin":0,"maxcpu":2,"disk":0,"maxmem":2147483648,"uptime":0,"mem":0},{"maxcpu":4,"netin":930436479420,"cpu":0.0143776945880614,"vmid":302,"id":"qemu/302","maxdisk":107374182400,"status":"running","mem":4006273024,"uptime":598407,"disk":0,"maxmem":4294967296,"name":"mediaserver","template":0,"netout":472364268166,"node":"pve","diskread":23373586954,"type":"qemu","diskwrite":132512635904},{"diskwrite":0,"type":"lxc","template":0,"name":"wordpress","netout":0,"node":"pve","diskread":0,"mem":0,"uptime":0,"disk":0,"maxmem":1073741824,"maxcpu":1,"netin":0,"cpu":0,"vmid":501,"id":"lxc/501","maxdisk":8589934592,"status":"stopped"},{"diskwrite":0,"type":"qemu","name":"VM 9000","template":1,"netout":0,"node":"pve","diskread":0,"mem":0,"disk":0,"maxmem":2147483648,"uptime":0,"cpu":0,"netin":0,"maxcpu":1,"vmid":9000,"id":"qemu/9000","maxdisk":2361393152,"status":"stopped"},{"mem":0,"uptime":0,"disk":0,"maxmem":2147483648,"maxcpu":2,"cpu":0,"netin":0,"vmid":9001,"status":"stopped","maxdisk":2361393152,"id":"qemu/9001","diskwrite":0,"type":"qemu","template":1,"name":"ubuntu-2004-cloudinit-template","netout":0,"node":"pve","diskread":0}]}
  30. 2021/10/09 21:56:07 >>>>>>>>>> REQUEST:
  31. GET /api2/json/cluster/nextid HTTP/1.1
  32. Host: 192.168.11.30:8006
  33. User-Agent: Go-http-client/1.1
  34. Accept: application/json
  35. Authorization: PVEAPIToken=XXX@pam!new_token_id=XXX
  36. Accept-Encoding: gzip
  37.  
  38. 2021/10/09 21:56:07 <<<<<<<<<< RESULT:
  39. HTTP/1.1 200 OK
  40. Content-Length: 14
  41. Cache-Control: max-age=0
  42. Connection: Keep-Alive
  43. Content-Type: application/json;charset=UTF-8
  44. Date: Sun, 10 Oct 2021 02:56:14 GMT
  45. Expires: Sun, 10 Oct 2021 02:56:14 GMT
  46. Pragma: no-cache
  47. Server: pve-api-daemon/3.0
  48.  
  49. {"data":"102"}
  50. 2021/10/09 21:56:07 >>>>>>>>>> REQUEST:
  51. GET /api2/json/cluster/resources?type=vm HTTP/1.1
  52. Host: 192.168.11.30:8006
  53. User-Agent: Go-http-client/1.1
  54. Accept: application/json
  55. Authorization: PVEAPIToken=XXX@pam!new_token_id=XXX
  56. Accept-Encoding: gzip
  57.  
  58. 2021/10/09 21:56:07 <<<<<<<<<< RESULT:
  59. HTTP/1.1 200 OK
  60. Content-Length: 1805
  61. Cache-Control: max-age=0
  62. Connection: Keep-Alive
  63. Content-Type: application/json;charset=UTF-8
  64. Date: Sun, 10 Oct 2021 02:56:14 GMT
  65. Expires: Sun, 10 Oct 2021 02:56:14 GMT
  66. Pragma: no-cache
  67. Server: pve-api-daemon/3.0
  68.  
  69. {"data":[{"type":"qemu","diskwrite":0,"name":"PopOS","template":0,"netout":0,"node":"pve","diskread":0,"mem":0,"disk":0,"maxmem":8589934592,"uptime":0,"netin":0,"cpu":0,"maxcpu":8,"vmid":100,"id":"qemu/100","maxdisk":107374182400,"status":"stopped"},{"netout":0,"template":0,"name":"ub2104","diskread":0,"node":"pve","diskwrite":0,"type":"qemu","cpu":0,"netin":0,"maxcpu":4,"maxdisk":107374182400,"status":"stopped","id":"qemu/101","vmid":101,"mem":0,"maxmem":8589934592,"disk":0,"uptime":0},{"netin":0,"cpu":0,"maxcpu":2,"vmid":301,"status":"stopped","maxdisk":13098811392,"id":"qemu/301","mem":0,"disk":0,"maxmem":2147483648,"uptime":0,"template":0,"name":"ubsrv1","netout":0,"node":"pve","diskread":0,"type":"qemu","diskwrite":0},{"maxdisk":107374182400,"id":"qemu/302","status":"running","vmid":302,"maxcpu":4,"cpu":0.0143776945880614,"netin":930436479420,"uptime":598407,"maxmem":4294967296,"disk":0,"mem":4006273024,"diskread":23373586954,"node":"pve","netout":472364268166,"template":0,"name":"mediaserver","diskwrite":132512635904,"type":"qemu"},{"diskwrite":0,"type":"lxc","netout":0,"name":"wordpress","template":0,"diskread":0,"node":"pve","mem":0,"maxmem":1073741824,"disk":0,"uptime":0,"netin":0,"cpu":0,"maxcpu":1,"id":"lxc/501","maxdisk":8589934592,"status":"stopped","vmid":501},{"type":"qemu","diskwrite":0,"netout":0,"template":1,"name":"VM 9000","diskread":0,"node":"pve","mem":0,"uptime":0,"maxmem":2147483648,"disk":0,"maxcpu":1,"netin":0,"cpu":0,"maxdisk":2361393152,"id":"qemu/9000","status":"stopped","vmid":9000},{"diskwrite":0,"type":"qemu","diskread":0,"node":"pve","netout":0,"name":"ubuntu-2004-cloudinit-template","template":1,"maxmem":2147483648,"disk":0,"uptime":0,"mem":0,"id":"qemu/9001","maxdisk":2361393152,"status":"stopped","vmid":9001,"cpu":0,"netin":0,"maxcpu":2}]}
  70. 2021/10/09 21:56:07 [DEBUG] cloning VM
  71. 2021/10/09 21:56:07 >>>>>>>>>> REQUEST:
  72. POST /api2/json/nodes/pve/qemu/9001/clone HTTP/1.1
  73. Host: 192.168.11.30:8006
  74. User-Agent: Go-http-client/1.1
  75. Content-Length: 70
  76. Accept: application/json
  77. Authorization: PVEAPIToken=XXX@pam!new_token_id=XXX
  78. Content-Type: application/x-www-form-urlencoded
  79. Accept-Encoding: gzip
  80.  
  81. full=1&name=test-vm-1&newid=102&storage=local-zfs&target=192.168.11.30
  82. 2021/10/09 21:56:07 <<<<<<<<<< RESULT:
  83. HTTP/1.1 400 Parameter verification failed.
  84. Connection: close
  85. Content-Length: 97
  86. Cache-Control: max-age=0
  87. Content-Type: application/json;charset=UTF-8
  88. Date: Sun, 10 Oct 2021 02:56:14 GMT
  89. Expires: Sun, 10 Oct 2021 02:56:14 GMT
  90. Pragma: no-cache
  91. Server: pve-api-daemon/3.0
  92.  
  93. {"errors":{"target":"invalid format - value does not look like a valid node name\n"},"data":null}
RAW Paste Data