Guest User

Untitled

a guest
Jun 25th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.22 KB | None | 0 0
  1. 2018/06/25 14:00:47 Waiting for agent ping
  2. 2018/06/25 14:00:50 Waiting for DOWNLOAD_SOURCE
  3. 2018/06/25 14:00:51 Phase is DOWNLOAD_SOURCE
  4. 2018/06/25 14:00:51 CODEBUILD_SRC_DIR=/codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
  5. 2018/06/25 14:00:51 YAML location is /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/buildspec-ebs-builds.yaml
  6. 2018/06/25 14:00:51 Processing environment variables
  7. 2018/06/25 14:00:51 Decrypting parameter store environment variables
  8. 2018/06/25 14:00:51 Moving to directory /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
  9. 2018/06/25 14:00:51 Registering with agent
  10. 2018/06/25 14:00:51 Phases found in YAML: 2
  11. 2018/06/25 14:00:51 BUILD: 8 commands
  12. 2018/06/25 14:00:51 PRE_BUILD: 1 commands
  13. 2018/06/25 14:00:51 Phase complete: DOWNLOAD_SOURCE Success: true
  14. 2018/06/25 14:00:51 Phase context status code: Message:
  15. 2018/06/25 14:00:51 Entering phase INSTALL
  16. 2018/06/25 14:00:51 Phase complete: INSTALL Success: true
  17. 2018/06/25 14:00:51 Phase context status code: Message:
  18. 2018/06/25 14:00:51 Entering phase PRE_BUILD
  19. 2018/06/25 14:00:51 Running command test ${SIZE+x}
  20.  
  21. 2018/06/25 14:00:51 Phase complete: PRE_BUILD Success: true
  22. 2018/06/25 14:00:51 Phase context status code: Message:
  23. 2018/06/25 14:00:52 Entering phase BUILD
  24. 2018/06/25 14:00:52 Running command cd ec2
  25.  
  26. 2018/06/25 14:00:52 Running command bash -c 'packer build <(jq -c ".builders[0].ebs_volumes[0].volume_size=${SIZE}" -- template-ebs-builds.json)'
  27. 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
  28. 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
  29. 2018/06/25 14:00:52 Built with Go Version: go1.10.1
  30. 2018/06/25 14:00:52 Detected home directory from env var: /root
  31. 2018/06/25 14:00:52 Using internal plugin for digitalocean
  32. 2018/06/25 14:00:52 Using internal plugin for file
  33. 2018/06/25 14:00:52 Using internal plugin for scaleway
  34. 2018/06/25 14:00:52 Using internal plugin for vmware-vmx
  35. 2018/06/25 14:00:52 Using internal plugin for amazon-instance
  36. 2018/06/25 14:00:52 Using internal plugin for cloudstack
  37. 2018/06/25 14:00:52 Using internal plugin for hyperv-iso
  38. 2018/06/25 14:00:52 Using internal plugin for openstack
  39. 2018/06/25 14:00:52 Using internal plugin for parallels-iso
  40. 2018/06/25 14:00:52 Using internal plugin for virtualbox-iso
  41. 2018/06/25 14:00:52 Using internal plugin for amazon-ebs
  42. 2018/06/25 14:00:52 Using internal plugin for hyperv-vmcx
  43. 2018/06/25 14:00:52 Using internal plugin for lxc
  44. 2018/06/25 14:00:52 Using internal plugin for ncloud
  45. 2018/06/25 14:00:52 Using internal plugin for oracle-classic
  46. 2018/06/25 14:00:52 Using internal plugin for amazon-ebssurrogate
  47. 2018/06/25 14:00:52 Using internal plugin for googlecompute
  48. 2018/06/25 14:00:52 Using internal plugin for lxd
  49. 2018/06/25 14:00:52 Using internal plugin for qemu
  50. 2018/06/25 14:00:52 Using internal plugin for virtualbox-ovf
  51. 2018/06/25 14:00:52 Using internal plugin for vmware-iso
  52. 2018/06/25 14:00:52 Using internal plugin for azure-arm
  53. 2018/06/25 14:00:52 Using internal plugin for null
  54. 2018/06/25 14:00:52 Using internal plugin for profitbricks
  55. 2018/06/25 14:00:52 Using internal plugin for parallels-pvm
  56. 2018/06/25 14:00:52 Using internal plugin for triton
  57. 2018/06/25 14:00:52 Using internal plugin for alicloud-ecs
  58. 2018/06/25 14:00:52 Using internal plugin for amazon-chroot
  59. 2018/06/25 14:00:52 Using internal plugin for amazon-ebsvolume
  60. 2018/06/25 14:00:52 Using internal plugin for docker
  61. 2018/06/25 14:00:52 Using internal plugin for oneandone
  62. 2018/06/25 14:00:52 Using internal plugin for oracle-oci
  63. 2018/06/25 14:00:52 Using internal plugin for shell
  64. 2018/06/25 14:00:52 Using internal plugin for shell-local
  65. 2018/06/25 14:00:52 Using internal plugin for ansible
  66. 2018/06/25 14:00:52 Using internal plugin for chef-solo
  67. 2018/06/25 14:00:52 Using internal plugin for puppet-masterless
  68. 2018/06/25 14:00:52 Using internal plugin for windows-shell
  69. 2018/06/25 14:00:52 Using internal plugin for ansible-local
  70. 2018/06/25 14:00:52 Using internal plugin for converge
  71. 2018/06/25 14:00:52 Using internal plugin for salt-masterless
  72. 2018/06/25 14:00:52 Using internal plugin for file
  73. 2018/06/25 14:00:52 Using internal plugin for powershell
  74. 2018/06/25 14:00:52 Using internal plugin for chef-client
  75. 2018/06/25 14:00:52 Using internal plugin for puppet-server
  76. 2018/06/25 14:00:52 Using internal plugin for windows-restart
  77. 2018/06/25 14:00:52 Using internal plugin for alicloud-import
  78. 2018/06/25 14:00:52 Using internal plugin for atlas
  79. 2018/06/25 14:00:52 Using internal plugin for checksum
  80. 2018/06/25 14:00:52 Using internal plugin for shell-local
  81. 2018/06/25 14:00:52 Using internal plugin for vagrant-cloud
  82. 2018/06/25 14:00:52 Using internal plugin for artifice
  83. 2018/06/25 14:00:52 Using internal plugin for docker-push
  84. 2018/06/25 14:00:52 Using internal plugin for docker-save
  85. 2018/06/25 14:00:52 Using internal plugin for docker-tag
  86. 2018/06/25 14:00:52 Using internal plugin for vsphere
  87. 2018/06/25 14:00:52 Using internal plugin for vsphere-template
  88. 2018/06/25 14:00:52 Using internal plugin for compress
  89. 2018/06/25 14:00:52 Using internal plugin for docker-import
  90. 2018/06/25 14:00:52 Using internal plugin for googlecompute-export
  91. 2018/06/25 14:00:52 Using internal plugin for manifest
  92. 2018/06/25 14:00:52 Using internal plugin for amazon-import
  93. 2018/06/25 14:00:52 Using internal plugin for vagrant
  94. 2018/06/25 14:00:52 Detected home directory from env var: /root
  95. 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
  96. 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
  97. 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[file:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file lxc:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc amazon-ebssurrogate:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate profitbricks:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks oracle-oci:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci qemu:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu amazon-ebsvolume:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume triton:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-chroot:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oracle-classic:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic docker:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker alicloud-ecs:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs cloudstack:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack parallels-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso virtualbox-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso vmware-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso parallels-pvm:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm scaleway:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway openstack:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-ebs:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs virtualbox-ovf:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf digitalocean:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean amazon-instance:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance hyperv-vmcx:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx googlecompute:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute lxd:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd vmware-vmx:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx ncloud:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud azure-arm:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm null:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone] PostProcessors:map[vsphere:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere shell-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-save:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vsphere-template:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template atlas:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas vagrant-cloud:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud manifest:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest amazon-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import checksum:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum googlecompute-export:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export docker-push:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push compress:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vagrant:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant alicloud-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import artifice:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice] Provisioners:map[chef-client:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client puppet-masterless:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell converge:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo salt-masterless:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless powershell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell windows-restart:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart shell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local puppet-server:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local]}
  98. 2018/06/25 14:00:52 Detected home directory from env var: /root
  99. 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
  100. 2018/06/25 14:00:52 Detected home directory from env var: /root
  101. 2018/06/25 14:00:52 Loading builder: amazon-ebsvolume
  102. 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
  103. 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
  104. 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
  105. 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-amazon-ebsvolume"}
  106. 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
  107. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
  108. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
  109. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
  110. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  111. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
  112. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
  113. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
  114. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  115. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
  116. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-builder-amazon-ebsvolume"}
  117. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  118. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
  119. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
  120. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin984724254
  121. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
  122. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
  123. 2018/06/25 14:00:52 Loading provisioner: ansible
  124. 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
  125. 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
  126. 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
  127. 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible"}
  128. 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
  129. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
  130. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
  131. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
  132. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  133. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
  134. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
  135. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
  136. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  137. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
  138. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-provisioner-ansible"}
  139. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
  140. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
  141. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin792389369
  142. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  143. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
  144. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
  145. 2018/06/25 14:00:52 Loading post-processor: manifest
  146. 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
  147. 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
  148. 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
  149. 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-post-processor-manifest"}
  150. 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
  151. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
  152. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
  153. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
  154. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  155. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
  156. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
  157. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
  158. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  159. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
  160. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-post-processor-manifest"}
  161. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
  162. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
  163. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
  164. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin154876105
  165. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
  166. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
  167. 2018/06/25 14:00:52 ui: amazon-ebsvolume output will be in this color.
  168. 2018/06/25 14:00:52 ui:
  169. 2018/06/25 14:00:52 Build debug mode: false
  170. 2018/06/25 14:00:52 Force build: false
  171. 2018/06/25 14:00:52 On error:
  172. 2018/06/25 14:00:52 Preparing build: amazon-ebsvolume
  173. amazon-ebsvolume output will be in this color.
  174.  
  175. 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Config: {PackerConfig:{PackerBuildName:amazon-ebsvolume PackerBuilderType:amazon-ebsvolume PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[instance_type:t2.micro ami:ami-07a3aacb2904bbc2e security_group_ids:sg-0a109c43177787a00,sg-00fcfbb812c45a978 size:50 subnet_id:subnet-0dc1885568fc09ef3 vpc_id:vpc-03c44ed7a069ba0ed ssh_user:root device_name:/dev/xvdf region:eu-central-1]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-central-1 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: DisableStopInstance:false EbsOptimized:false EnableT2Unlimited:false IamInstanceProfile: InstanceInitiatedShutdownBehavior:stop InstanceType:t2.micro RunTags:map[Packer:vibes-ebs-builds] SecurityGroupId: SecurityGroupIds:[sg-0a109c43177787a00 sg-00fcfbb812c45a978] SourceAmi:ami-07a3aacb2904bbc2e SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: SubnetId:subnet-0dc1885568fc09ef3 TemporaryKeyPairName: TemporarySGSourceCidr:0.0.0.0/0 UserData: UserDataFile: VpcId:vpc-03c44ed7a069ba0ed WindowsPasswordTimeout:20m0s Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:root SSHPassword: SSHPrivateKey:vibes-packer.pem SSHPty:false SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: SSHKeepAliveInterval:5s SSHReadWriteTimeout:0s WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName:vibes-packer SSHInterface:private_ip} VolumeMappings:[{BlockDevice:{DeleteOnTermination:false DeviceName:{{ user `device_name` }} Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:50 KmsKeyId:} Tags:map[vibes:builds]}] AMIENASupport:false AMISriovNetSupport:false launchBlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[{DeleteOnTermination:false DeviceName:/dev/xvdf Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:50 KmsKeyId:}]}} ctx:{Data:<nil> Funcs:map[clean_ami_name:0xc428d0] UserVariables:map[size:50 subnet_id:subnet-0dc1885568fc09ef3 region:eu-central-1 device_name:/dev/xvdf instance_type:t2.micro vpc_id:vpc-03c44ed7a069ba0ed ssh_user:root ami:ami-07a3aacb2904bbc2e security_group_ids:sg-0a109c43177787a00,sg-00fcfbb812c45a978] EnableEnv:false BuildName:amazon-ebsvolume BuildType:amazon-ebsvolume TemplatePath:/dev/fd/63}}
  176. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 ansible-playbook version: 2.5.5
  177. 2018/06/25 14:00:53 Waiting on builds to complete...
  178. 2018/06/25 14:00:53 Starting build run: amazon-ebsvolume
  179. 2018/06/25 14:00:53 Running builder: amazon-ebsvolume
  180. 2018/06/25 14:00:53 [INFO] (telemetry) Starting builder amazon-ebsvolume
  181. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Found region eu-central-1
  182. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AWS Auth provider used: "CredentialsEndpointProvider"
  183. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] Finding AZ and VpcId for the given subnet 'subnet-0dc1885568fc09ef3'
  184. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AvailabilityZone found: 'eu-central-1a'
  185. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Using AMI Filters {
  186. 2018/06/25 14:00:53 packer: ImageIds: ["ami-07a3aacb2904bbc2e"]
  187. 2018/06/25 14:00:53 packer: }
  188. 2018/06/25 14:00:53 ui: amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
  189. amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
  190. ==> amazon-ebsvolume: Using existing SSH private key
  191. 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Using existing SSH private key
  192. 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Using specified security groups: [sg-0a109c43177787a00 sg-00fcfbb812c45a978]
  193. ==> amazon-ebsvolume: Launching a source AWS instance...
  194. 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Launching a source AWS instance...
  195. 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Adding tags to source instance
  196. ==> amazon-ebsvolume: Adding tags to source instance
  197. amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
  198. 2018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
  199. 2018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
  200. amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
  201. amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
  202. 2018/06/25 14:00:54 ui: amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
  203. 2018/06/25 14:00:54 ui: ==> amazon-ebsvolume: Waiting for instance (i-07dcf3b2948e158f8) to become ready...
  204. ==> amazon-ebsvolume: Waiting for instance (i-07dcf3b2948e158f8) to become ready...
  205. ==> amazon-ebsvolume: Tagging EBS volumes...
  206. 2018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Tagging EBS volumes...
  207. amazon-ebsvolume: Adding tag: "vibes": "builds"
  208. 2018/06/25 14:01:24 ui: amazon-ebsvolume: Adding tag: "vibes": "builds"
  209. ==> amazon-ebsvolume: Waiting for SSH to become available...
  210. 2018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Not using winrm communicator, skipping get password...
  211. 2018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Waiting for SSH, up to timeout: 5m0s
  212. 2018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Waiting for SSH to become available...
  213. 2018/06/25 14:01:32 packer: 2018/06/25 14:01:32 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.0.0.12:22: connect: connection refused
  214. 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [INFO] Attempting SSH connection...
  215. 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] reconnecting to TCP connection for SSH
  216. 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] handshaking with SSH
  217. 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [DEBUG] handshake complete!
  218. 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [INFO] no local agent socket, will not connect agent
  219. 2018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Connected to SSH!
  220. ==> amazon-ebsvolume: Connected to SSH!
  221. 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 Running the provision hook
  222. 2018/06/25 14:01:38 [INFO] (telemetry) Starting provisioner ansible
  223. ==> amazon-ebsvolume: Provisioning with Ansible...
  224. 2018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Provisioning with Ansible...
  225. 2018/06/25 14:01:39 packer: 2018/06/25 14:01:39 SSH proxy: serving on 127.0.0.1:36307
  226. 2018/06/25 14:01:39 ui: ==> amazon-ebsvolume: Executing Ansible: ansible-playbook --extra-vars packer_build_name=amazon-ebsvolume packer_builder_type=amazon-ebsvolume -i /tmp/packer-provisioner-ansible644511123 /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml -e ansible_ssh_private_key_file=/tmp/ansible-key205509636 -vv --extra-vars device_name=/dev/xvdf
  227. ==> amazon-ebsvolume: Executing Ansible: ansible-playbook --extra-vars packer_build_name=amazon-ebsvolume packer_builder_type=amazon-ebsvolume -i /tmp/packer-provisioner-ansible644511123 /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml -e ansible_ssh_private_key_file=/tmp/ansible-key205509636 -vv --extra-vars device_name=/dev/xvdf
  228. amazon-ebsvolume: ansible-playbook 2.5.5
  229. 2018/06/25 14:01:40 ui: amazon-ebsvolume: ansible-playbook 2.5.5
  230. amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
  231. 2018/06/25 14:01:40 ui: amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
  232. amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  233. 2018/06/25 14:01:40 ui: amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  234. amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
  235. 2018/06/25 14:01:40 ui: amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
  236. 2018/06/25 14:01:40 ui: amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
  237. amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
  238. 2018/06/25 14:01:40 ui: amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
  239. amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
  240. amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
  241. 2018/06/25 14:01:40 ui: amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
  242. 2018/06/25 14:01:40 ui: amazon-ebsvolume:
  243. amazon-ebsvolume:
  244. 2018/06/25 14:01:40 ui: amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
  245. amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
  246. amazon-ebsvolume: 1 plays in /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml
  247. 2018/06/25 14:01:40 ui: amazon-ebsvolume: 1 plays in /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml
  248. amazon-ebsvolume:
  249. 2018/06/25 14:01:40 ui: amazon-ebsvolume:
  250. amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
  251. 2018/06/25 14:01:40 ui: amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
  252. amazon-ebsvolume:
  253. 2018/06/25 14:01:40 ui: amazon-ebsvolume:
  254. amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
  255. 2018/06/25 14:01:40 ui: amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
  256. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml:2
  257. 2018/06/25 14:01:40 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml:2
  258. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 SSH proxy: accepted connection
  259. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 authentication attempt from 127.0.0.1:38396 to 127.0.0.1:36307 as root using none
  260. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 authentication attempt from 127.0.0.1:38396 to 127.0.0.1:36307 as root using publickey
  261. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  262. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
  263. 2018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
  264. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] Opening new ssh session
  265. 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  266. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
  267. 2018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
  268. 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
  269. 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
  270. 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
  271. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
  272. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
  273. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
  274. amazon-ebsvolume: ok: [default]
  275. 2018/06/25 14:01:43 ui: amazon-ebsvolume: ok: [default]
  276. amazon-ebsvolume: META: ran handlers
  277. 2018/06/25 14:01:43 ui: amazon-ebsvolume: META: ran handlers
  278. amazon-ebsvolume:
  279. 2018/06/25 14:01:43 ui: amazon-ebsvolume:
  280. amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
  281. 2018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
  282. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:2
  283. 2018/06/25 14:01:43 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:2
  284. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  285. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
  286. 2018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
  287. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
  288. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  289. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
  290. 2018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
  291. 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
  292. 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
  293. 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
  294. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
  295. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
  296. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
  297. 2018/06/25 14:01:43 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "gid": 0, "group": "root", "mode": "0000", "owner": "root", "path": "/mnt", "size": 4096, "state": "directory", "uid": 0}
  298. amazon-ebsvolume: changed: [default] => {"changed": true, "gid": 0, "group": "root", "mode": "0000", "owner": "root", "path": "/mnt", "size": 4096, "state": "directory", "uid": 0}
  299. amazon-ebsvolume:
  300. 2018/06/25 14:01:43 ui: amazon-ebsvolume:
  301. amazon-ebsvolume: TASK [builds : Format volume] **************************************************
  302. 2018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Format volume] **************************************************
  303. 2018/06/25 14:01:43 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:9
  304. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:9
  305. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  306. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
  307. 2018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
  308. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
  309. 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  310. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
  311. 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
  312. 2018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
  313. 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
  314. 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
  315. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
  316. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
  317. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
  318. 2018/06/25 14:01:54 ui: amazon-ebsvolume: changed: [default] => {"changed": true}
  319. amazon-ebsvolume: changed: [default] => {"changed": true}
  320. 2018/06/25 14:01:54 ui: amazon-ebsvolume:
  321. amazon-ebsvolume:
  322. 2018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
  323. amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
  324. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:14
  325. 2018/06/25 14:01:54 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:14
  326. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  327. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
  328. 2018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
  329. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] Opening new ssh session
  330. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  331. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
  332. 2018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
  333. 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
  334. 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
  335. 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
  336. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
  337. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
  338. 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
  339. 2018/06/25 14:01:54 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "name": "/mnt", "opts": "defaults", "passno": "0", "src": "/dev/xvdf"}
  340. amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "name": "/mnt", "opts": "defaults", "passno": "0", "src": "/dev/xvdf"}
  341. amazon-ebsvolume:
  342. 2018/06/25 14:01:54 ui: amazon-ebsvolume:
  343. amazon-ebsvolume: TASK [builds : Create required directories] ************************************
  344. 2018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Create required directories] ************************************
  345. 2018/06/25 14:01:54 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:20
  346. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:20
  347. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  348. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
  349. 2018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
  350. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
  351. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  352. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
  353. 2018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
  354. 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
  355. 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
  356. 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
  357. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
  358. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
  359. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
  360. amazon-ebsvolume: changed: [default] => (item=builds) => {"changed": true, "gid": 1024, "group": "1024", "item": "builds", "mode": "0755", "owner": "1013", "path": "/mnt/builds", "size": 4096, "state": "directory", "uid": 1013}
  361. 2018/06/25 14:01:55 ui: amazon-ebsvolume: changed: [default] => (item=builds) => {"changed": true, "gid": 1024, "group": "1024", "item": "builds", "mode": "0755", "owner": "1013", "path": "/mnt/builds", "size": 4096, "state": "directory", "uid": 1013}
  362. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  363. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
  364. 2018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
  365. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
  366. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  367. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
  368. 2018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
  369. 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
  370. 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
  371. 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
  372. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
  373. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
  374. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
  375. amazon-ebsvolume: changed: [default] => (item=.overlayfs) => {"changed": true, "gid": 1024, "group": "1024", "item": ".overlayfs", "mode": "0755", "owner": "1013", "path": "/mnt/.overlayfs", "size": 4096, "state": "directory", "uid": 1013}
  376. 2018/06/25 14:01:55 ui: amazon-ebsvolume: changed: [default] => (item=.overlayfs) => {"changed": true, "gid": 1024, "group": "1024", "item": ".overlayfs", "mode": "0755", "owner": "1013", "path": "/mnt/.overlayfs", "size": 4096, "state": "directory", "uid": 1013}
  377. amazon-ebsvolume:
  378. 2018/06/25 14:01:55 ui: amazon-ebsvolume:
  379. amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
  380. 2018/06/25 14:01:55 ui: amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
  381. amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:30
  382. 2018/06/25 14:01:55 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:30
  383. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
  384. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
  385. 2018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
  386. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
  387. 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
  388. 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
  389. 2018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
  390. 2018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
  391. 2018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
  392. 2018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
  393. 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
  394. 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
  395. 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
  396. amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
  397. 2018/06/25 14:01:56 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
  398. amazon-ebsvolume: META: ran handlers
  399. 2018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
  400. amazon-ebsvolume: META: ran handlers
  401. 2018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
  402. amazon-ebsvolume:
  403. 2018/06/25 14:01:56 ui: amazon-ebsvolume:
  404. amazon-ebsvolume: PLAY RECAP *********************************************************************
  405. 2018/06/25 14:01:56 ui: amazon-ebsvolume: PLAY RECAP *********************************************************************
  406. amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
  407. 2018/06/25 14:01:56 ui: amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
  408. amazon-ebsvolume:
  409. 2018/06/25 14:01:56 ui: amazon-ebsvolume:
  410. 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 shutting down the SSH proxy
  411. 2018/06/25 14:01:56 [INFO] (telemetry) ending ansible
  412. 2018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Stopping the source instance...
  413. ==> amazon-ebsvolume: Stopping the source instance...
  414. amazon-ebsvolume: Stopping instance, attempt 1
  415. 2018/06/25 14:01:56 ui: amazon-ebsvolume: Stopping instance, attempt 1
  416. 2018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Waiting for the instance to stop...
  417. ==> amazon-ebsvolume: Waiting for the instance to stop...
  418. 2018/06/25 14:02:56 ui: ==> amazon-ebsvolume: Terminating the source AWS instance...
  419. ==> amazon-ebsvolume: Terminating the source AWS instance...
  420. 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Waiting for state to become: terminated
  421. 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
  422. 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
  423. 2018/06/25 14:03:03 ui: ==> amazon-ebsvolume: Created Volumes: EBS Volumes were created:
  424. ==> amazon-ebsvolume:
  425. ==> amazon-ebsvolume:
  426. ==> amazon-ebsvolume: Created Volumes: EBS Volumes were created:
  427. ==> amazon-ebsvolume:
  428. ==> amazon-ebsvolume:
  429. 2018/06/25 14:03:03 [INFO] (telemetry) ending amazon-ebsvolume
  430. 2018/06/25 14:03:03 ui: ==> amazon-ebsvolume: Running post-processor: manifest
  431. 2018/06/25 14:03:03 [INFO] (telemetry) Starting post-processor manifest
  432. ==> amazon-ebsvolume: Running post-processor: manifest
  433. 2018/06/25 14:03:03 [INFO] (telemetry) ending manifest
  434. 2018/06/25 14:03:03 Flagging to keep original artifact from post-processor 'manifest'
  435. 2018/06/25 14:03:03 ui: Build 'amazon-ebsvolume' finished.
  436. 2018/06/25 14:03:03 Builds completed. Waiting on interrupt barrier...
  437. 2018/06/25 14:03:03 ui:
  438. ==> Builds finished. The artifacts of successful builds are:
  439. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact-count []string{"2"}
  440. Build 'amazon-ebsvolume' finished.
  441.  
  442. ==> Builds finished. The artifacts of successful builds are:
  443. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "builder-id", "mitchellh.amazon.ebsvolume"}
  444. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "id", ""}
  445. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "string", "EBS Volumes were created:\n\n"}
  446. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "files-count", "0"}
  447. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "end"}
  448. 2018/06/25 14:03:03 ui: --> amazon-ebsvolume: EBS Volumes were created:
  449.  
  450. --> amazon-ebsvolume: EBS Volumes were created:
  451.  
  452.  
  453. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "builder-id", ""}
  454. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "id", ""}
  455. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "string", ""}
  456. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "files-count", "0"}
  457. 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "end"}
  458. 2018/06/25 14:03:03 ui: --> amazon-ebsvolume:
  459. 2018/06/25 14:03:03 [INFO] (telemetry) Finalizing.
  460. --> amazon-ebsvolume:
  461. 2018/06/25 14:03:03 waiting for all plugin processes to complete...
  462. 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
  463. 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
  464. 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
  465.  
  466. 2018/06/25 14:03:03 Running command cat -- manifest.json
  467. {
  468. "builds": [
  469. {
  470. "name": "amazon-ebsvolume",
  471. "builder_type": "amazon-ebsvolume",
  472. "build_time": 1529935383,
  473. "files": null,
  474. "artifact_id": "",
  475. "packer_run_uuid": "2663ba78-41c2-2bb3-34f6-438b736e28af"
  476. }
  477. ],
  478. "last_run_uuid": "2663ba78-41c2-2bb3-34f6-438b736e28af"
  479. }
  480. 2018/06/25 14:03:03 Running command VOLUME_ID="$(jq -r '.builds[0].artifact_id' -- manifest.json | cut -d : -f 2)"
  481.  
  482.  
  483. 2018/06/25 14:03:03 Running command SNAPSHOT_ID="$(aws --query 'SnapshotId' --output text ec2 create-snapshot --volume-id "${VOLUME_ID}" --tag-specifications 'ResourceType=snapshot,Tags=[{Key=vibes,Value=builds}]')"
  484.  
  485. An error occurred (MissingParameter) when calling the CreateSnapshot operation: The request must contain the parameter volume
  486.  
  487. 2018/06/25 14:03:04 Command did not exit successfully SNAPSHOT_ID="$(aws --query 'SnapshotId' --output text ec2 create-snapshot --volume-id "${VOLUME_ID}" --tag-specifications 'ResourceType=snapshot,Tags=[{Key=vibes,Value=builds}]')" exit status 255
  488. 2018/06/25 14:03:04 Running command aws ec2 delete-volume --volume-id "${VOLUME_ID}"
  489.  
  490. An error occurred (MissingParameter) when calling the DeleteVolume operation: The request must contain the parameter volume
  491.  
  492. 2018/06/25 14:03:04 Command did not exit successfully aws ec2 delete-volume --volume-id "${VOLUME_ID}" exit status 255
  493. 2018/06/25 14:03:04 Phase complete: BUILD Success: false
  494. 2018/06/25 14:03:04 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: aws ec2 delete-volume --volume-id "${VOLUME_ID}". Reason: exit status 255
  495. 2018/06/25 14:03:04 Entering phase POST_BUILD
  496. 2018/06/25 14:03:04 Phase complete: POST_BUILD Success: true
  497. 2018/06/25 14:03:04 Phase context status code: Message:
Add Comment
Please, Sign In to add comment