Guest User

Untitled

a guest
Feb 9th, 2018
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.14 KB | None | 0 0
  1. 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
  2. 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
  3. 2018/01/25 11:41:44 Built with Go Version: go1.9.2
  4. 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  5. 2018/01/25 11:41:44 Using internal plugin for digitalocean
  6. 2018/01/25 11:41:44 Using internal plugin for file
  7. 2018/01/25 11:41:44 Using internal plugin for lxd
  8. 2018/01/25 11:41:44 Using internal plugin for null
  9. 2018/01/25 11:41:44 Using internal plugin for triton
  10. 2018/01/25 11:41:44 Using internal plugin for vmware-vmx
  11. 2018/01/25 11:41:44 Using internal plugin for amazon-instance
  12. 2018/01/25 11:41:44 Using internal plugin for docker
  13. 2018/01/25 11:41:44 Using internal plugin for lxc
  14. 2018/01/25 11:41:44 Using internal plugin for parallels-iso
  15. 2018/01/25 11:41:44 Using internal plugin for vmware-iso
  16. 2018/01/25 11:41:44 Using internal plugin for amazon-ebsvolume
  17. 2018/01/25 11:41:44 Using internal plugin for cloudstack
  18. 2018/01/25 11:41:44 Using internal plugin for hyperv-vmcx
  19. 2018/01/25 11:41:44 Using internal plugin for profitbricks
  20. 2018/01/25 11:41:44 Using internal plugin for googlecompute
  21. 2018/01/25 11:41:44 Using internal plugin for amazon-chroot
  22. 2018/01/25 11:41:44 Using internal plugin for amazon-ebs
  23. 2018/01/25 11:41:44 Using internal plugin for qemu
  24. 2018/01/25 11:41:44 Using internal plugin for azure-arm
  25. 2018/01/25 11:41:44 Using internal plugin for openstack
  26. 2018/01/25 11:41:44 Using internal plugin for virtualbox-iso
  27. 2018/01/25 11:41:44 Using internal plugin for alicloud-ecs
  28. 2018/01/25 11:41:44 Using internal plugin for oneandone
  29. 2018/01/25 11:41:44 Using internal plugin for parallels-pvm
  30. 2018/01/25 11:41:44 Using internal plugin for amazon-ebssurrogate
  31. 2018/01/25 11:41:44 Using internal plugin for hyperv-iso
  32. 2018/01/25 11:41:44 Using internal plugin for oracle-oci
  33. 2018/01/25 11:41:44 Using internal plugin for virtualbox-ovf
  34. 2018/01/25 11:41:44 Using internal plugin for windows-restart
  35. 2018/01/25 11:41:44 Using internal plugin for chef-client
  36. 2018/01/25 11:41:44 Using internal plugin for powershell
  37. 2018/01/25 11:41:44 Using internal plugin for puppet-server
  38. 2018/01/25 11:41:44 Using internal plugin for puppet-masterless
  39. 2018/01/25 11:41:44 Using internal plugin for salt-masterless
  40. 2018/01/25 11:41:44 Using internal plugin for shell
  41. 2018/01/25 11:41:44 Using internal plugin for windows-shell
  42. 2018/01/25 11:41:44 Using internal plugin for chef-solo
  43. 2018/01/25 11:41:44 Using internal plugin for converge
  44. 2018/01/25 11:41:44 Using internal plugin for file
  45. 2018/01/25 11:41:44 Using internal plugin for ansible
  46. 2018/01/25 11:41:44 Using internal plugin for ansible-local
  47. 2018/01/25 11:41:44 Using internal plugin for shell-local
  48. 2018/01/25 11:41:44 Using internal plugin for alicloud-import
  49. 2018/01/25 11:41:44 Using internal plugin for docker-push
  50. 2018/01/25 11:41:44 Using internal plugin for docker-save
  51. 2018/01/25 11:41:44 Using internal plugin for vagrant-cloud
  52. 2018/01/25 11:41:44 Using internal plugin for vsphere-template
  53. 2018/01/25 11:41:44 Using internal plugin for amazon-import
  54. 2018/01/25 11:41:44 Using internal plugin for compress
  55. 2018/01/25 11:41:44 Using internal plugin for googlecompute-export
  56. 2018/01/25 11:41:44 Using internal plugin for manifest
  57. 2018/01/25 11:41:44 Using internal plugin for vsphere
  58. 2018/01/25 11:41:44 Using internal plugin for artifice
  59. 2018/01/25 11:41:44 Using internal plugin for checksum
  60. 2018/01/25 11:41:44 Using internal plugin for docker-tag
  61. 2018/01/25 11:41:44 Using internal plugin for vagrant
  62. 2018/01/25 11:41:44 Using internal plugin for atlas
  63. 2018/01/25 11:41:44 Using internal plugin for docker-import
  64. 2018/01/25 11:41:44 Using internal plugin for shell-local
  65. 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  66. 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
  67. 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
  68. 2018/01/25 11:41:44 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf] PostProcessors:map[docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud] Provisioners:map[windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge]}
  69. 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  70. 2018/01/25 11:41:44 Setting cache directory: /Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/packer_cache
  71. 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  72. 2018/01/25 11:41:44 Loading builder: amazon-ebs
  73. 2018/01/25 11:41:44 Plugin could not be found. Checking same directory as executable.
  74. 2018/01/25 11:41:44 Current exe path: /usr/local/bin/packer
  75. 2018/01/25 11:41:44 Creating plugin client for path: /usr/local/bin/packer
  76. 2018/01/25 11:41:44 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
  77. 2018/01/25 11:41:44 Waiting for RPC address for: /usr/local/bin/packer
  78. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
  79. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
  80. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Built with Go Version: go1.9.2
  81. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  82. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
  83. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
  84. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
  85. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  86. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Setting cache directory: /Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/packer_cache
  87. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 args: []string{"packer-builder-amazon-ebs"}
  88. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  89. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin minimum port: 10000
  90. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin maximum port: 25000
  91. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin address: unix /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/packer-plugin243515197
  92. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Waiting for connection...
  93. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Serving a plugin connection...
  94. 2018/01/25 11:41:44 Loading provisioner: ansible
  95. 2018/01/25 11:41:44 Plugin could not be found. Checking same directory as executable.
  96. 2018/01/25 11:41:44 Current exe path: /usr/local/bin/packer
  97. 2018/01/25 11:41:44 Creating plugin client for path: /usr/local/bin/packer
  98. 2018/01/25 11:41:44 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-ansible"}
  99. 2018/01/25 11:41:44 Waiting for RPC address for: /usr/local/bin/packer
  100. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
  101. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
  102. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Built with Go Version: go1.9.2
  103. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  104. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
  105. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
  106. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
  107. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  108. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Setting cache directory: /Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/packer_cache
  109. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 args: []string{"packer-provisioner-ansible"}
  110. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
  111. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin minimum port: 10000
  112. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin maximum port: 25000
  113. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin address: unix /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/packer-plugin514630873
  114. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Waiting for connection...
  115. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Serving a plugin connection...
  116. 2018/01/25 11:41:44 ui: amazon-ebs output will be in this color.
  117. 2018/01/25 11:41:44 ui:
  118. 2018/01/25 11:41:44 Build debug mode: false
  119. 2018/01/25 11:41:44 Force build: false
  120. 2018/01/25 11:41:44 On error:
  121. 2018/01/25 11:41:44 Preparing build: amazon-ebs
  122. 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[aws_instance_type:t2.micro aws_source_ami_owner:099720109477 aws_source_ami_ubuntu_version:xenial-16.04 aws_region:eu-west-1]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-west-1 SecretKey: SkipValidation:false Token: session:<nil>} AMIConfig:{AMIName:packer-example-20180125104144 AMIDescription: AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId: AMIRegionKMSKeyIDs:map[] SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi: SourceAmiFilter:{Filters:map[0xc4204445f0:0xc420444610 0xc420444630:0xc420444650 0xc420444670:0xc420444690] Owners:[0xc420444710] MostRecent:true} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId: TemporaryKeyPairName:packer_5a69b468-ddc1-2738-c604-d10f5f5631f4 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId: InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ubuntu SSHPassword: SSHPrivateKey: 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: WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false SSHInterface:} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x186cb50] UserVariables:map[aws_instance_type:t2.micro aws_source_ami_owner:099720109477 aws_source_ami_ubuntu_version:xenial-16.04 aws_region:eu-west-1] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/template-json.json}}
  123. 2018/01/25 11:41:46 packer: 2018/01/25 11:41:46 ansible-playbook version: 2.4.2.0
  124. 2018/01/25 11:41:46 Waiting on builds to complete...
  125. 2018/01/25 11:41:46 Starting build run: amazon-ebs
  126. 2018/01/25 11:41:46 Running builder: amazon-ebs
  127. 2018/01/25 11:41:46 [INFO] (telemetry) Starting builder amazon-ebs
  128. 2018/01/25 11:41:46 packer: 2018/01/25 11:41:46 Found region eu-west-1
  129. 2018/01/25 11:41:46 ui: ==> amazon-ebs: Prevalidating AMI Name: packer-example-20180125104144
  130. 2018/01/25 11:41:48 packer: 2018/01/25 11:41:48 Using AMI Filters {
  131. 2018/01/25 11:41:48 packer: Filters: [{
  132. 2018/01/25 11:41:48 packer: Name: "virtualization-type",
  133. 2018/01/25 11:41:48 packer: Values: ["hvm"]
  134. 2018/01/25 11:41:48 packer: },{
  135. 2018/01/25 11:41:48 packer: Name: "name",
  136. 2018/01/25 11:41:48 packer: Values: ["ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*"]
  137. 2018/01/25 11:41:48 packer: },{
  138. 2018/01/25 11:41:48 packer: Name: "root-device-type",
  139. 2018/01/25 11:41:48 packer: Values: ["ebs"]
  140. 2018/01/25 11:41:48 packer: }],
  141. 2018/01/25 11:41:48 packer: Owners: ["099720109477"]
  142. 2018/01/25 11:41:48 packer: }
  143. 2018/01/25 11:41:49 ui:  amazon-ebs: Found Image ID: ami-7a187c03
  144. 2018/01/25 11:41:49 ui: ==> amazon-ebs: Creating temporary keypair: packer_5a69b468-ddc1-2738-c604-d10f5f5631f4
  145. 2018/01/25 11:41:50 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5a69b46e-4bf2-e823-4ab3-6a1be3a56f5e
  146. 2018/01/25 11:41:50 ui: ==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
  147. 2018/01/25 11:41:50 packer: 2018/01/25 11:41:50 [DEBUG] Waiting for temporary security group: sg-3ebf4944
  148. 2018/01/25 11:41:50 packer: 2018/01/25 11:41:50 [DEBUG] Found security group sg-3ebf4944
  149. 2018/01/25 11:41:50 ui: ==> amazon-ebs: Launching a source AWS instance...
  150. 2018/01/25 11:41:50 ui: ==> amazon-ebs: Adding tags to source instance
  151. 2018/01/25 11:41:50 ui:  amazon-ebs: Adding tag: "Name": "Packer Builder"
  152. 2018/01/25 11:41:51 ui:  amazon-ebs: Instance ID: i-0c83ecad713ba6f7d
  153. 2018/01/25 11:41:51 ui: ==> amazon-ebs: Waiting for instance (i-0c83ecad713ba6f7d) to become ready...
  154. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Not using winrm communicator, skipping get password...
  155. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Waiting for SSH, up to timeout: 5m0s
  156. 2018/01/25 11:44:54 ui: ==> amazon-ebs: Waiting for SSH to become available...
  157. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Attempting SSH connection...
  158. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 reconnecting to TCP connection for SSH
  159. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 handshaking with SSH
  160. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 handshake complete!
  161. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 opening new ssh session
  162. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] agent forwarding enabled
  163. 2018/01/25 11:44:54 ui: ==> amazon-ebs: Connected to SSH!
  164. 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 Running the provision hook
  165. 2018/01/25 11:44:54 [INFO] (telemetry) Starting provisioner ansible
  166. 2018/01/25 11:44:54 ui: ==> amazon-ebs: Provisioning with Ansible...
  167. 2018/01/25 11:44:55 packer: 2018/01/25 11:44:55 SSH proxy: serving on 127.0.0.1:58416
  168. 2018/01/25 11:44:55 ui: ==> amazon-ebs: Executing Ansible: ansible-playbook --extra-vars packer_build_name=amazon-ebs packer_builder_type=amazon-ebs -i /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/packer-provisioner-ansible656372339 /Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/playbook.yml --private-key /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/ansible-key129001060 --extra-vars '{"ansible_python_interpreter": "/usr/bin/env python3"}'
  169. 2018/01/25 11:44:56 ui:  amazon-ebs:
  170. 2018/01/25 11:44:56 ui:  amazon-ebs: PLAY [all] *********************************************************************
  171. 2018/01/25 11:44:56 ui:  amazon-ebs:
  172. 2018/01/25 11:44:56 ui:  amazon-ebs: TASK [Gathering Facts] *********************************************************
  173. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 SSH proxy: accepted connection
  174. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 authentication attempt from 127.0.0.1:58419 to 127.0.0.1:58416 as ksmets using none
  175. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 authentication attempt from 127.0.0.1:58419 to 127.0.0.1:58416 as ksmets using publickey
  176. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 authentication attempt from 127.0.0.1:58419 to 127.0.0.1:58416 as ksmets using publickey
  177. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 authentication attempt from 127.0.0.1:58419 to 127.0.0.1:58416 as ksmets using publickey
  178. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
  179. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
  180. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: /bin/sh -c 'echo ~ && sleep 0'
  181. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
  182. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 starting remote command: /bin/sh -c 'echo ~ && sleep 0'
  183. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  184. 2018/01/25 11:44:57 [INFO] 13 bytes written for 'stdout'
  185. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  186. 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  187. 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  188. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  189. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  190. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 13 bytes written for 'stdout'
  191. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  192. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  193. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
  194. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
  195. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513 `" && echo ansible-tmp-1516877097.04-207189055174513="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513 `" ) && sleep 0'
  196. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
  197. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513 `" && echo ansible-tmp-1516877097.04-207189055174513="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513 `" ) && sleep 0'
  198. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  199. 2018/01/25 11:44:57 [INFO] 110 bytes written for 'stdout'
  200. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  201. 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  202. 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  203. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  204. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 110 bytes written for 'stdout'
  205. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  206. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  207. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  208. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
  209. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: scp -t /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/setup.py
  210. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
  211. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 196418 bytes written for 'uploadData'
  212. 2018/01/25 11:44:57 [INFO] 196418 bytes written for 'uploadData'
  213. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Starting remote scp process: scp -vt /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513
  214. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Started SCP session, beginning transfers...
  215. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [DEBUG] scp: Uploading setup.py: perms=C0600 size=196418
  216. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 SCP session complete, closing stdin pipe.
  217. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Waiting for SSH session to complete.
  218. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 scp stderr (length 28): Sink: C0600 196418 setup.py
  219. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
  220. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
  221. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/ /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/setup.py && sleep 0'
  222. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
  223. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 starting remote command: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/ /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/setup.py && sleep 0'
  224. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  225. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
  226. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  227. 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  228. 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  229. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  230. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
  231. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
  232. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  233. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  234. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
  235. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 ansible provisioner pty-req request
  236. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
  237. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: /bin/sh -c '/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/setup.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/" > /dev/null 2>&1 && sleep 0'
  238. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
  239. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 starting remote command: /bin/sh -c '/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/setup.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1516877097.04-207189055174513/" > /dev/null 2>&1 && sleep 0'
  240. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  241. 2018/01/25 11:44:57 [INFO] 39 bytes written for 'stderr'
  242. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
  243. 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  244. 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
  245. 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  246. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
  247. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 39 bytes written for 'stderr'
  248. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
  249. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
  250. 2018/01/25 11:44:57 ui:  amazon-ebs: fatal: [default]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: 1: /usr/bin/python: not found\nShared connection to 127.0.0.1 closed.\r\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
  251. 2018/01/25 11:44:57 ui:  amazon-ebs: to retry, use: --limit @/Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/playbook.retry
  252. 2018/01/25 11:44:57 ui:  amazon-ebs:
  253. 2018/01/25 11:44:57 ui:  amazon-ebs: PLAY RECAP *********************************************************************
  254. 2018/01/25 11:44:57 ui:  amazon-ebs: default : ok=0 changed=0 unreachable=0 failed=1
  255. 2018/01/25 11:44:57 ui:  amazon-ebs:
  256. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 shutting down the SSH proxy
  257. 2018/01/25 11:44:57 [INFO] (telemetry) ending ansible
  258. 2018/01/25 11:44:57 [INFO] (telemetry) found error: Error executing Ansible: Non-zero exit status: exit status 2
  259. 2018/01/25 11:44:57 ui: ==> amazon-ebs: Terminating the source AWS instance...
  260. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Waiting for state to become: terminated
  261. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
  262. 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
  263. 2018/01/25 11:45:46 ui: ==> amazon-ebs: Cleaning up any extra volumes...
  264. 2018/01/25 11:45:46 ui: ==> amazon-ebs: No volumes to clean up, skipping
  265. 2018/01/25 11:45:46 ui: ==> amazon-ebs: Deleting temporary security group...
  266. 2018/01/25 11:45:46 ui: ==> amazon-ebs: Deleting temporary keypair...
  267. 2018/01/25 11:45:46 [INFO] (telemetry) ending amazon-ebs
  268. 2018/01/25 11:45:46 [INFO] (telemetry) found error: Error executing Ansible: Non-zero exit status: exit status 2
  269. 2018/01/25 11:45:46 ui error: Build 'amazon-ebs' errored: Error executing Ansible: Non-zero exit status: exit status 2
  270. 2018/01/25 11:45:46 Builds completed. Waiting on interrupt barrier...
  271. 2018/01/25 11:45:46 machine readable: error-count []string{"1"}
  272. 2018/01/25 11:45:46 ui error:
  273. ==> Some builds didn't complete successfully and had errors:
  274. 2018/01/25 11:45:46 machine readable: amazon-ebs,error []string{"Error executing Ansible: Non-zero exit status: exit status 2"}
  275. 2018/01/25 11:45:46 ui error: --> amazon-ebs: Error executing Ansible: Non-zero exit status: exit status 2
  276. 2018/01/25 11:45:46 ui:
  277. ==> Builds finished but no artifacts were created.
  278. 2018/01/25 11:45:46 [INFO] (telemetry) Finalizing.
  279. 2018/01/25 11:45:47 waiting for all plugin processes to complete...
  280. 2018/01/25 11:45:47 /usr/local/bin/packer: plugin process exited
  281. 2018/01/25 11:45:47 /usr/local/bin/packer: plugin process exited
Add Comment
Please, Sign In to add comment