Advertisement
Guest User

Untitled

a guest
Jan 4th, 2022
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.10 KB | None | 0 0
  1. PACKER_LOG=1 packer build .
  2. 2022/01/04 16:26:36 [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
  3. 2022/01/04 16:26:36 [TRACE] discovering plugins in /usr/bin
  4. 2022/01/04 16:26:36 [TRACE] discovering plugins in /home/alteredtech/.config/packer/plugins
  5. 2022/01/04 16:26:36 [TRACE] discovering plugins in .
  6. 2022/01/04 16:26:36 [INFO] PACKER_CONFIG env var not set; checking the default config file path
  7. 2022/01/04 16:26:36 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
  8. 2022/01/04 16:26:36 [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
  9. 2022/01/04 16:26:36 [INFO] Setting cache directory: /home/alteredtech/.cache/packer
  10. 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_node, so skipping
  11. 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_token, so skipping
  12. 2022/01/04 16:26:36 [TRACE] validateValue: not active for ssh_info, so skipping
  13. 2022/01/04 16:26:36 [TRACE] validateValue: not active for preseed_file, so skipping
  14. 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_host, so skipping
  15. 2022/01/04 16:26:36 [TRACE] validateValue: not active for template_description, so skipping
  16. 2022/01/04 16:26:36 [TRACE] validateValue: not active for locale, so skipping
  17. 2022/01/04 16:26:36 [TRACE] validateValue: not active for sockets, so skipping
  18. 2022/01/04 16:26:36 [TRACE] validateValue: not active for disk_size, so skipping
  19. 2022/01/04 16:26:36 [TRACE] validateValue: not active for ansible_play, so skipping
  20. 2022/01/04 16:26:36 [TRACE] validateValue: not active for iso, so skipping
  21. 2022/01/04 16:26:36 [TRACE] validateValue: not active for iso_checksum, so skipping
  22. 2022/01/04 16:26:36 [TRACE] validateValue: not active for hostname, so skipping
  23. 2022/01/04 16:26:36 [TRACE] validateValue: not active for cores, so skipping
  24. 2022/01/04 16:26:36 [TRACE] validateValue: not active for memory, so skipping
  25. 2022/01/04 16:26:36 [TRACE] validateValue: not active for datastore, so skipping
  26. 2022/01/04 16:26:36 [TRACE] validateValue: not active for datastore_type, so skipping
  27. 2022/01/04 16:26:36 [TRACE] validateValue: not active for bridge_name, so skipping
  28. 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_user, so skipping
  29. 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_token_name, so skipping
  30. 2022/01/04 16:26:36 [TRACE] validateValue: not active for template_name, so skipping
  31. 2022/01/04 16:26:36 [TRACE] validateValue: not active for vmid, so skipping
  32. 2022/01/04 16:26:36 [TRACE] Starting internal plugin packer-builder-proxmox
  33. 2022/01/04 16:26:36 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-proxmox"}
  34. 2022/01/04 16:26:36 Waiting for RPC address for: /usr/bin/packer
  35. 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
  36. 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
  37. 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
  38. 2022/01/04 16:26:36 packer-builder-proxmox plugin: [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
  39. 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] Setting cache directory: /home/alteredtech/.cache/packer
  40. 2022/01/04 16:26:36 packer-builder-proxmox plugin: args: []string{"packer-builder-proxmox"}
  41. 2022/01/04 16:26:36 packer-builder-proxmox plugin: Plugin address: unix /tmp/packer-plugin3256203526
  42. 2022/01/04 16:26:36 packer-builder-proxmox plugin: Waiting for connection...
  43. 2022/01/04 16:26:36 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin3256203526
  44. 2022/01/04 16:26:36 packer-builder-proxmox plugin: Serving a plugin connection...
  45. 2022/01/04 16:26:36 packer-builder-proxmox plugin: CPU type not set, using default 'kvm64'
  46. 2022/01/04 16:26:36 packer-builder-proxmox plugin: SCSI controller not set, using default 'lsi'
  47. 2022/01/04 16:26:36 [TRACE] Starting internal plugin packer-provisioner-ansible
  48. 2022/01/04 16:26:36 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible"}
  49. 2022/01/04 16:26:36 Waiting for RPC address for: /usr/bin/packer
  50. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
  51. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
  52. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
  53. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
  54. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] Setting cache directory: /home/alteredtech/.cache/packer
  55. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: args: []string{"packer-provisioner-ansible"}
  56. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Plugin address: unix /tmp/packer-plugin1311860752
  57. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Waiting for connection...
  58. 2022/01/04 16:26:37 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin1311860752
  59. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Serving a plugin connection...
  60. 2022/01/04 16:26:37 packer-provisioner-ansible plugin: ansible-playbook version: 2.12.1
  61. 2022/01/04 16:26:37 Build debug mode: false
  62. 2022/01/04 16:26:37 Force build: false
  63. 2022/01/04 16:26:37 On error:
  64. 2022/01/04 16:26:37 Waiting on builds to complete...
  65. 2022/01/04 16:26:37 Starting build run: proxmox.ubuntu-2004
  66. 2022/01/04 16:26:37 Running builder:
  67. 2022/01/04 16:26:37 [INFO] (telemetry) Starting builder proxmox.ubuntu-2004
  68. proxmox.ubuntu-2004: output will be in this color.
  69.  
  70. 2022/01/04 16:26:37 packer-builder-proxmox plugin: using token auth
  71. 2022/01/04 16:26:37 packer-builder-proxmox plugin: No URLs were provided to Step Download. Continuing...
  72. ==> proxmox.ubuntu-2004: Creating VM
  73. ==> proxmox.ubuntu-2004: Starting VM
  74. 2022/01/04 16:26:41 packer-builder-proxmox plugin: Found available port: 8698 on IP: 0.0.0.0
  75. ==> proxmox.ubuntu-2004: Starting HTTP server on port 8698
  76. ==> proxmox.ubuntu-2004: Waiting 5s for boot
  77. ==> proxmox.ubuntu-2004: Typing the boot command
  78. 2022/01/04 16:26:46 packer-builder-proxmox plugin: [INFO] Waiting 1s
  79. 2022/01/04 16:26:47 packer-builder-proxmox plugin: [INFO] Waiting 1s
  80. 2022/01/04 16:26:48 packer-builder-proxmox plugin: [INFO] Waiting 1s
  81. 2022/01/04 16:26:50 packer-builder-proxmox plugin: [INFO] Waiting 1s
  82. 2022/01/04 16:26:51 packer-builder-proxmox plugin: [INFO] Waiting 1s
  83. 2022/01/04 16:26:52 packer-builder-proxmox plugin: [INFO] Waiting 1s
  84. 2022/01/04 16:26:54 packer-builder-proxmox plugin: [INFO] Waiting 1s
  85. 2022/01/04 16:26:55 packer-builder-proxmox plugin: [INFO] Waiting 1s
  86. 2022/01/04 16:26:56 packer-builder-proxmox plugin: [INFO] Waiting 1s
  87. 2022/01/04 16:26:58 packer-builder-proxmox plugin: [INFO] Waiting 1s
  88. 2022/01/04 16:27:02 packer-builder-proxmox plugin: [DEBUG] Unable to get address during connection step: 500 QEMU guest agent is not running
  89. 2022/01/04 16:27:02 packer-builder-proxmox plugin: [INFO] Waiting for SSH, up to timeout: 1h30m0s
  90. ==> proxmox.ubuntu-2004: Waiting for SSH to become available...
  91. 2022/01/04 16:27:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  92. 2022/01/04 16:27:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  93. 2022/01/04 16:27:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  94. 2022/01/04 16:27:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  95. 2022/01/04 16:27:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  96. 2022/01/04 16:27:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  97. 2022/01/04 16:27:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  98. 2022/01/04 16:28:01 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  99. 2022/01/04 16:28:09 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  100. 2022/01/04 16:28:17 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  101. 2022/01/04 16:28:25 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  102. 2022/01/04 16:28:33 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  103. 2022/01/04 16:28:41 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  104. 2022/01/04 16:28:49 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  105. 2022/01/04 16:28:57 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  106. 2022/01/04 16:29:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  107. 2022/01/04 16:29:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  108. 2022/01/04 16:29:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  109. 2022/01/04 16:29:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  110. 2022/01/04 16:29:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  111. 2022/01/04 16:29:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  112. 2022/01/04 16:29:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  113. 2022/01/04 16:30:01 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  114. 2022/01/04 16:30:09 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  115. 2022/01/04 16:30:17 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  116. 2022/01/04 16:30:25 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  117. 2022/01/04 16:30:33 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  118. 2022/01/04 16:30:41 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  119. 2022/01/04 16:30:49 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  120. 2022/01/04 16:30:57 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  121. 2022/01/04 16:31:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  122. 2022/01/04 16:31:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  123. 2022/01/04 16:31:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  124. 2022/01/04 16:31:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  125. 2022/01/04 16:31:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  126. 2022/01/04 16:31:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  127. 2022/01/04 16:31:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  128. 2022/01/04 16:32:02 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  129. 2022/01/04 16:32:10 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  130. 2022/01/04 16:32:18 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  131. 2022/01/04 16:32:26 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  132. 2022/01/04 16:32:34 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  133. 2022/01/04 16:32:42 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  134. 2022/01/04 16:32:50 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  135. 2022/01/04 16:32:58 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  136. 2022/01/04 16:33:06 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  137. 2022/01/04 16:33:14 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  138. 2022/01/04 16:33:22 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  139. 2022/01/04 16:33:30 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  140. 2022/01/04 16:33:38 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
  141. 2022/01/04 16:33:43 packer-builder-proxmox plugin: [INFO] Attempting SSH connection to 10.0.2.199:22...
  142. 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] reconnecting to TCP connection for SSH
  143. 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] handshaking with SSH
  144. 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] handshake complete!
  145. 2022/01/04 16:33:43 packer-builder-proxmox plugin: [INFO] no local agent socket, will not connect agent
  146. ==> proxmox.ubuntu-2004: Connected to SSH!
  147. 2022/01/04 16:33:43 packer-builder-proxmox plugin: Running the provision hook
  148. 2022/01/04 16:33:43 [INFO] (telemetry) Starting provisioner ansible
  149. 2022/01/04 16:33:43 packer-provisioner-ansible plugin: ansible-playbook version: 2.12.1
  150. ==> proxmox.ubuntu-2004: Provisioning with Ansible...
  151. proxmox.ubuntu-2004: Using ssh keys from Packer communicator...
  152. proxmox.ubuntu-2004: Not using Proxy adapter for Ansible run:
  153. proxmox.ubuntu-2004: Using ssh keys from Packer communicator...
  154. 2022/01/04 16:33:43 packer-provisioner-ansible plugin: Creating inventory file for Ansible run...
  155. ==> proxmox.ubuntu-2004: Executing Ansible: ansible-playbook -e packer_build_name="ubuntu-2004" -e packer_builder_type=proxmox -e packer_http_addr=10.0.2.57:8698 --ssh-extra-args '-o IdentitiesOnly=yes' -v --extra-vars ansible_python_interpreter=/usr/bin/python -e ansible_ssh_private_key_file=/tmp/ansible-key4158079046 -i /tmp/packer-provisioner-ansible1476003741 /home/alteredtech/Coding/infrastructure/packer/ubuntu-20.04/playbook/packer-ubuntu-20-04.yml
  156. proxmox.ubuntu-2004: Using /home/alteredtech/Coding/infrastructure/packer/ubuntu-20.04/playbook/ansible.cfg as config file
  157. proxmox.ubuntu-2004:
  158. proxmox.ubuntu-2004: PLAY [Provision Image] *********************************************************
  159. proxmox.ubuntu-2004:
  160. proxmox.ubuntu-2004: TASK [Gathering Facts] *********************************************************
  161. proxmox.ubuntu-2004: fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.0.2.199' (ED25519) to the list of known hosts.\r\nLoad key \"/tmp/ansible-key4158079046\": invalid format\r\npacker@10.0.2.199: Permission denied (publickey,password).", "unreachable": true}
  162. proxmox.ubuntu-2004:
  163. proxmox.ubuntu-2004: PLAY RECAP *********************************************************************
  164. proxmox.ubuntu-2004: default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
  165. proxmox.ubuntu-2004:
  166. 2022/01/04 16:33:44 [INFO] (telemetry) ending ansible
  167. ==> proxmox.ubuntu-2004: Provisioning step had errors: Running the cleanup provisioner, if present...
  168. ==> proxmox.ubuntu-2004: Stopping VM
  169. ==> proxmox.ubuntu-2004: Deleting VM
  170. 2022/01/04 16:33:48 [INFO] (telemetry) ending proxmox.ubuntu-2004
  171. ==> Wait completed after 7 minutes 10 seconds
  172. 2022/01/04 16:33:48 machine readable: error-count []string{"1"}
  173. ==> Some builds didn't complete successfully and had errors:
  174. 2022/01/04 16:33:48 machine readable: proxmox.ubuntu-2004,error []string{"Error executing Ansible: Non-zero exit status: exit status 4"}
  175. ==> Builds finished but no artifacts were created.
  176. 2022/01/04 16:33:48 [INFO] (telemetry) Finalizing.
  177. Build 'proxmox.ubuntu-2004' errored after 7 minutes 10 seconds: Error executing Ansible: Non-zero exit status: exit status 4
  178.  
  179. ==> Wait completed after 7 minutes 10 seconds
  180.  
  181. ==> Some builds didn't complete successfully and had errors:
  182. --> proxmox.ubuntu-2004: Error executing Ansible: Non-zero exit status: exit status 4
  183.  
  184. ==> Builds finished but no artifacts were created.
  185. 2022/01/04 16:33:48 waiting for all plugin processes to complete...
  186. 2022/01/04 16:33:48 /usr/bin/packer: plugin process exited
  187. 2022/01/04 16:33:48 /usr/bin/packer: plugin process exited
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement