ravecat

main.log

Dec 14th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 KB | None | 0 0
  1. max@x230 ~/project/infra (master) $ docker run --rm -v $PWD:$PWD -v ${HOME}/.docker/config.json:/root/.docker/config.json -v /var/run/docker.sock:/var/run/docker.sock --workdir $PWD gitlab/gitlab-runner exec docker terraform
  2. Runtime platform arch=amd64 os=linux pid=6 revision=ece86343 version=13.5.0
  3. Running with gitlab-runner 13.5.0 (ece86343)
  4. Preparing the "docker" executor
  5. Using Docker executor with image hashicorp/terraform:0.13.5 ...
  6. Pulling docker image hashicorp/terraform:0.13.5 ...
  7. Using docker image sha256:7ea6097f7359410e769ab1596746cae33ee461c91d27e2806ba87b48b829655f for hashicorp/terraform:0.13.5 with digest hashicorp/terraform@sha256:943b1d56d978e713315e1058e1e1297eafdf166c95bb7bbe2712699b0a664f48 ...
  8. Preparing environment
  9. Running on runner--project-0-concurrent-0 via 2189d549e24e...
  10. Getting source from Git repository
  11. Fetching changes...
  12. Initialized empty Git repository in /builds/project-0/.git/
  13. Created fresh repository.
  14. Checking out bc802241 as master...
  15.  
  16. Skipping Git submodules setup
  17. Restoring cache
  18. Skipping cache extraction due to empty cache key
  19. Executing "step_script" stage of the job script
  20. $ terraform init
  21.  
  22. Initializing the backend...
  23.  
  24. Successfully configured the backend "s3"! Terraform will automatically
  25. use this backend unless the backend configuration changes.
  26.  
  27. Initializing provider plugins...
  28. - Finding telmate/proxmox versions matching ">= 2.0.0"...
  29. - Installing telmate/proxmox v2.6.5...
  30. - Installed telmate/proxmox v2.6.5 (self-signed, key ID A9EBBE091B35AFCE)
  31.  
  32. Partner and community providers are signed by their developers.
  33. If you'd like to know more about provider signing, you can read about it here:
  34. https://www.terraform.io/docs/plugins/signing.html
  35.  
  36. Terraform has been successfully initialized!
  37.  
  38. You may now begin working with Terraform. Try running "terraform plan" to see
  39. any changes that are required for your infrastructure. All Terraform commands
  40. should now work.
  41.  
  42. If you ever set or change modules or backend configuration for Terraform,
  43. rerun this command to reinitialize your working directory. If you forget, other
  44. commands will detect it and remind you to do so if necessary.
  45. $ terraform providers
  46.  
  47. Providers required by configuration:
  48. .
  49. └── provider[registry.terraform.io/telmate/proxmox] >= 2.0.0
  50.  
  51. $ apk add --update curl jq
  52. fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
  53. fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
  54. (1/3) Installing curl (7.69.1-r3)
  55. (2/3) Installing oniguruma (6.9.5-r2)
  56. (3/3) Installing jq (1.6-r1)
  57. Executing busybox-1.31.1-r16.trigger
  58. OK: 29 MiB in 32 packages
  59. $ alias convert_report="jq -r '([.resource_changes[].change.actions?]|flatten)|{\"create\":(map(select(.==\"create\"))|length),\"update\":(map(select(.==\"update\"))|length),\"delete\":(map(select(.==\"delete\"))|length)}'"
  60. $ terraform plan -out=$PLAN
  61. Acquiring state lock. This may take a few moments...
  62. Refreshing Terraform state in-memory prior to plan...
  63. The refreshed state will be used to calculate this plan, but will not be
  64. persisted to local or remote state storage.
  65.  
  66.  
  67. ------------------------------------------------------------------------
  68.  
  69. An execution plan has been generated and is shown below.
  70. Resource actions are indicated with the following symbols:
  71. + create
  72.  
  73. Terraform will perform the following actions:
  74.  
  75. # proxmox_vm_qemu.gate[0] will be created
  76. + resource "proxmox_vm_qemu" "gate" {
  77. + agent = 0
  78. + balloon = 0
  79. + bios = "seabios"
  80. + boot = "cdn"
  81. + bootdisk = "scsi0"
  82. + cipassword = (sensitive value)
  83. + ciuser = "test"
  84. + clone = "debian-10-cloudinit"
  85. + clone_wait = 15
  86. + cores = 4
  87. + cpu = "host"
  88. + define_connection_info = true
  89. + force_create = false
  90. + full_clone = true
  91. + hotplug = "network,disk,usb"
  92. + id = (known after apply)
  93. + ipconfig0 = "ip=dhcp"
  94. + kvm = true
  95. + memory = 4096
  96. + name = "gate"
  97. + nameserver = (known after apply)
  98. + numa = false
  99. + onboot = true
  100. + os_type = "cloud-init"
  101. + preprovision = true
  102. + scsihw = "virtio-scsi-pci"
  103. + searchdomain = (known after apply)
  104. + sockets = 1
  105. + ssh_host = (known after apply)
  106. + ssh_port = (known after apply)
  107. + sshkeys = <<~EOT
  108. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCn1bAv00w8u849NSsHWWnQ+C1D1Dm1v9MLmJMXpa+a/BxJvGyofdsltoE6G+B66IMcSPI7fgwwu2Qy7Y4VR/mLK3Om7jma90F/+l505bMKdG6SXduyluW/S47wREBtJoeHlq4wcDUfQ2EYvWi7sLnn6Nb7fAm9krA43VKg2jjmS9TKxU8lLenntZxLt4JaEUKKt8Z4FC6EqmuTW9Gqn44BvfD5SBA6/dQspufFRZxeY1VhWfcfh0NlF5Xk2jKuMuLupNLNipNEHRg+3IZSt0mwFXlHTGuaSIAmsdaC+aAPbV2ly8++w+vBEa03CpcxVKhhUar4j1OT2BuFb/368fHj max@x230
  109. EOT
  110. + target_node = "node-0"
  111. + unused_disk = (known after apply)
  112. + vcpus = 0
  113. + vlan = -1
  114. + vmid = (known after apply)
  115.  
  116. + disk {
  117. + backup = false
  118. + cache = "none"
  119. + file = (known after apply)
  120. + format = (known after apply)
  121. + iothread = true
  122. + mbps = 0
  123. + mbps_rd = 0
  124. + mbps_rd_max = 0
  125. + mbps_wr = 0
  126. + mbps_wr_max = 0
  127. + media = (known after apply)
  128. + replicate = false
  129. + size = "200G"
  130. + slot = (known after apply)
  131. + storage = "local-lvm"
  132. + type = "scsi"
  133. + volume = (known after apply)
  134. }
  135.  
  136. + network {
  137. + bridge = "vmbr0"
  138. + firewall = false
  139. + link_down = false
  140. + macaddr = (known after apply)
  141. + model = "virtio"
  142. + queues = (known after apply)
  143. + rate = (known after apply)
  144. + tag = -1
  145. }
  146. }
  147.  
  148. Plan: 1 to add, 0 to change, 0 to destroy.
  149.  
  150. ------------------------------------------------------------------------
  151.  
  152. This plan was saved to: plan.tfplan
  153.  
  154. To perform exactly these actions, run the following command to apply:
  155. terraform apply "plan.tfplan"
  156.  
  157. Releasing state lock. This may take a few moments...
  158. $ terraform show --json $PLAN | convert_report > $JSON_PLAN_FILE
  159. $ terraform apply -input=false $PLAN
  160. Acquiring state lock. This may take a few moments...
  161. proxmox_vm_qemu.gate[0]: Creating...
  162. proxmox_vm_qemu.gate[0]: Still creating... [10s elapsed]
  163. proxmox_vm_qemu.gate[0]: Still creating... [20s elapsed]
  164. proxmox_vm_qemu.gate[0]: Still creating... [30s elapsed]
  165. proxmox_vm_qemu.gate[0]: Still creating... [40s elapsed]
  166. proxmox_vm_qemu.gate[0]: Still creating... [50s elapsed]
  167. proxmox_vm_qemu.gate[0]: Still creating... [1m0s elapsed]
  168. proxmox_vm_qemu.gate[0]: Still creating... [1m10s elapsed]
  169. proxmox_vm_qemu.gate[0]: Still creating... [1m20s elapsed]
  170. proxmox_vm_qemu.gate[0]: Still creating... [1m30s elapsed]
  171. proxmox_vm_qemu.gate[0]: Still creating... [1m40s elapsed]
  172. proxmox_vm_qemu.gate[0]: Creation complete after 1m43s [id=node-0/qemu/100]
  173.  
  174. Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
  175. Releasing state lock. This may take a few moments...
  176.  
  177. Outputs:
  178.  
  179. test = [
  180. {
  181. "agent" = 0
  182. "balloon" = 0
  183. "bios" = "seabios"
  184. "boot" = "cdn"
  185. "bootdisk" = "scsi0"
  186. "bridge" = ""
  187. "cicustom" = ""
  188. "cipassword" = "test"
  189. "ciuser" = "test"
  190. "clone" = "debian-10-cloudinit"
  191. "clone_wait" = 15
  192. "cores" = 4
  193. "cpu" = "host"
  194. "define_connection_info" = true
  195. "desc" = ""
  196. "disk" = [
  197. {
  198. "backup" = false
  199. "cache" = "none"
  200. "discard" = ""
  201. "file" = ""
  202. "format" = ""
  203. "iothread" = true
  204. "mbps" = 0
  205. "mbps_rd" = 0
  206. "mbps_rd_max" = 0
  207. "mbps_wr" = 0
  208. "mbps_wr_max" = 0
  209. "media" = ""
  210. "replicate" = false
  211. "size" = "200G"
  212. "slot" = 0
  213. "ssd" = false
  214. "storage" = "local-lvm"
  215. "type" = "scsi"
  216. "volume" = ""
  217. },
  218. ]
  219. "disk_gb" = 0
  220. "force_create" = false
  221. "full_clone" = true
  222. "hastate" = ""
  223. "hotplug" = "network,disk,usb"
  224. "id" = "node-0/qemu/100"
  225. "ipconfig0" = "ip=dhcp"
  226. "ipconfig1" = ""
  227. "ipconfig2" = ""
  228. "kvm" = true
  229. "mac" = ""
  230. "memory" = 4096
  231. "name" = "gate"
  232. "nameserver" = ""
  233. "network" = [
  234. {
  235. "bridge" = "vmbr0"
  236. "firewall" = false
  237. "link_down" = false
  238. "macaddr" = "82:7E:79:44:91:78"
  239. "model" = "virtio"
  240. "queues" = 0
  241. "rate" = 0
  242. "tag" = -1
  243. },
  244. ]
  245. "nic" = ""
  246. "numa" = false
  247. "onboot" = true
  248. "os_type" = "cloud-init"
  249. "pool" = ""
  250. "preprovision" = true
  251. "qemu_os" = "other"
  252. "scsihw" = "virtio-scsi-pci"
  253. "searchdomain" = ""
  254. "serial" = []
  255. "sockets" = 1
  256. "ssh_host" = ""
  257. "ssh_port" = "22"
  258. "sshkeys" = " ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCn1bAv00w8u849NSsHWWnQ+C1D1Dm1v9MLmJMXpa+a/BxJvGyofdsltoE6G+B66IMcSPI7fgwwu2Qy7Y4VR/mLK3Om7jma90F/+l505bMKdG6SXduyluW/S47wREBtJoeHlq4wcDUfQ2EYvWi7sLnn6Nb7fAm9krA43VKg2jjmS9TKxU8lLenntZxLt4JaEUKKt8Z4FC6EqmuTW9Gqn44BvfD5SBA6/dQspufFRZxeY1VhWfcfh0NlF5Xk2jKuMuLupNLNipNEHRg+3IZSt0mwFXlHTGuaSIAmsdaC+aAPbV2ly8++w+vBEa03CpcxVKhhUar4j1OT2BuFb/368fHj max@x230\n\n"
  259. "storage" = ""
  260. "storage_type" = ""
  261. "target_node" = "node-0"
  262. "unused_disk" = []
  263. "vcpus" = 0
  264. "vga" = []
  265. "vlan" = -1
  266. },
  267. ]
  268. Saving cache for successful job
  269. Skipping cache archiving due to empty cache key
  270. Cleaning up file based variables
  271. Job succeeded
  272.  
Advertisement
Add Comment
Please, Sign In to add comment