Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
- 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
- 2018/01/25 11:41:44 Built with Go Version: go1.9.2
- 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 Using internal plugin for digitalocean
- 2018/01/25 11:41:44 Using internal plugin for file
- 2018/01/25 11:41:44 Using internal plugin for lxd
- 2018/01/25 11:41:44 Using internal plugin for null
- 2018/01/25 11:41:44 Using internal plugin for triton
- 2018/01/25 11:41:44 Using internal plugin for vmware-vmx
- 2018/01/25 11:41:44 Using internal plugin for amazon-instance
- 2018/01/25 11:41:44 Using internal plugin for docker
- 2018/01/25 11:41:44 Using internal plugin for lxc
- 2018/01/25 11:41:44 Using internal plugin for parallels-iso
- 2018/01/25 11:41:44 Using internal plugin for vmware-iso
- 2018/01/25 11:41:44 Using internal plugin for amazon-ebsvolume
- 2018/01/25 11:41:44 Using internal plugin for cloudstack
- 2018/01/25 11:41:44 Using internal plugin for hyperv-vmcx
- 2018/01/25 11:41:44 Using internal plugin for profitbricks
- 2018/01/25 11:41:44 Using internal plugin for googlecompute
- 2018/01/25 11:41:44 Using internal plugin for amazon-chroot
- 2018/01/25 11:41:44 Using internal plugin for amazon-ebs
- 2018/01/25 11:41:44 Using internal plugin for qemu
- 2018/01/25 11:41:44 Using internal plugin for azure-arm
- 2018/01/25 11:41:44 Using internal plugin for openstack
- 2018/01/25 11:41:44 Using internal plugin for virtualbox-iso
- 2018/01/25 11:41:44 Using internal plugin for alicloud-ecs
- 2018/01/25 11:41:44 Using internal plugin for oneandone
- 2018/01/25 11:41:44 Using internal plugin for parallels-pvm
- 2018/01/25 11:41:44 Using internal plugin for amazon-ebssurrogate
- 2018/01/25 11:41:44 Using internal plugin for hyperv-iso
- 2018/01/25 11:41:44 Using internal plugin for oracle-oci
- 2018/01/25 11:41:44 Using internal plugin for virtualbox-ovf
- 2018/01/25 11:41:44 Using internal plugin for windows-restart
- 2018/01/25 11:41:44 Using internal plugin for chef-client
- 2018/01/25 11:41:44 Using internal plugin for powershell
- 2018/01/25 11:41:44 Using internal plugin for puppet-server
- 2018/01/25 11:41:44 Using internal plugin for puppet-masterless
- 2018/01/25 11:41:44 Using internal plugin for salt-masterless
- 2018/01/25 11:41:44 Using internal plugin for shell
- 2018/01/25 11:41:44 Using internal plugin for windows-shell
- 2018/01/25 11:41:44 Using internal plugin for chef-solo
- 2018/01/25 11:41:44 Using internal plugin for converge
- 2018/01/25 11:41:44 Using internal plugin for file
- 2018/01/25 11:41:44 Using internal plugin for ansible
- 2018/01/25 11:41:44 Using internal plugin for ansible-local
- 2018/01/25 11:41:44 Using internal plugin for shell-local
- 2018/01/25 11:41:44 Using internal plugin for alicloud-import
- 2018/01/25 11:41:44 Using internal plugin for docker-push
- 2018/01/25 11:41:44 Using internal plugin for docker-save
- 2018/01/25 11:41:44 Using internal plugin for vagrant-cloud
- 2018/01/25 11:41:44 Using internal plugin for vsphere-template
- 2018/01/25 11:41:44 Using internal plugin for amazon-import
- 2018/01/25 11:41:44 Using internal plugin for compress
- 2018/01/25 11:41:44 Using internal plugin for googlecompute-export
- 2018/01/25 11:41:44 Using internal plugin for manifest
- 2018/01/25 11:41:44 Using internal plugin for vsphere
- 2018/01/25 11:41:44 Using internal plugin for artifice
- 2018/01/25 11:41:44 Using internal plugin for checksum
- 2018/01/25 11:41:44 Using internal plugin for docker-tag
- 2018/01/25 11:41:44 Using internal plugin for vagrant
- 2018/01/25 11:41:44 Using internal plugin for atlas
- 2018/01/25 11:41:44 Using internal plugin for docker-import
- 2018/01/25 11:41:44 Using internal plugin for shell-local
- 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
- 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
- 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]}
- 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 Setting cache directory: /Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/packer_cache
- 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 Loading builder: amazon-ebs
- 2018/01/25 11:41:44 Plugin could not be found. Checking same directory as executable.
- 2018/01/25 11:41:44 Current exe path: /usr/local/bin/packer
- 2018/01/25 11:41:44 Creating plugin client for path: /usr/local/bin/packer
- 2018/01/25 11:41:44 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
- 2018/01/25 11:41:44 Waiting for RPC address for: /usr/local/bin/packer
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Built with Go Version: go1.9.2
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
- 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[]}
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 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
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 args: []string{"packer-builder-amazon-ebs"}
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin minimum port: 10000
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin maximum port: 25000
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin address: unix /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/packer-plugin243515197
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Waiting for connection...
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Serving a plugin connection...
- 2018/01/25 11:41:44 Loading provisioner: ansible
- 2018/01/25 11:41:44 Plugin could not be found. Checking same directory as executable.
- 2018/01/25 11:41:44 Current exe path: /usr/local/bin/packer
- 2018/01/25 11:41:44 Creating plugin client for path: /usr/local/bin/packer
- 2018/01/25 11:41:44 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-ansible"}
- 2018/01/25 11:41:44 Waiting for RPC address for: /usr/local/bin/packer
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [INFO] Packer version: 1.1.3
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Packer Target OS/Arch: darwin amd64
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Built with Go Version: go1.9.2
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Attempting to open config file: /Users/ksmets/.packerconfig
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 [WARN] Config file doesn't exist: /Users/ksmets/.packerconfig
- 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[]}
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 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
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 args: []string{"packer-provisioner-ansible"}
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Detected home directory from env var: /Users/ksmets
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin minimum port: 10000
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin maximum port: 25000
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Plugin address: unix /var/folders/pq/yx7lh9vd5hsdp37b84y0rnrm0000gn/T/packer-plugin514630873
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Waiting for connection...
- 2018/01/25 11:41:44 packer: 2018/01/25 11:41:44 Serving a plugin connection...
- 2018/01/25 11:41:44 ui: [1;32mamazon-ebs output will be in this color.[0m
- 2018/01/25 11:41:44 ui:
- 2018/01/25 11:41:44 Build debug mode: false
- 2018/01/25 11:41:44 Force build: false
- 2018/01/25 11:41:44 On error:
- 2018/01/25 11:41:44 Preparing build: amazon-ebs
- 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}}
- 2018/01/25 11:41:46 packer: 2018/01/25 11:41:46 ansible-playbook version: 2.4.2.0
- 2018/01/25 11:41:46 Waiting on builds to complete...
- 2018/01/25 11:41:46 Starting build run: amazon-ebs
- 2018/01/25 11:41:46 Running builder: amazon-ebs
- 2018/01/25 11:41:46 [INFO] (telemetry) Starting builder amazon-ebs
- 2018/01/25 11:41:46 packer: 2018/01/25 11:41:46 Found region eu-west-1
- 2018/01/25 11:41:46 ui: [1;32m==> amazon-ebs: Prevalidating AMI Name: packer-example-20180125104144[0m
- 2018/01/25 11:41:48 packer: 2018/01/25 11:41:48 Using AMI Filters {
- 2018/01/25 11:41:48 packer: Filters: [{
- 2018/01/25 11:41:48 packer: Name: "virtualization-type",
- 2018/01/25 11:41:48 packer: Values: ["hvm"]
- 2018/01/25 11:41:48 packer: },{
- 2018/01/25 11:41:48 packer: Name: "name",
- 2018/01/25 11:41:48 packer: Values: ["ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*"]
- 2018/01/25 11:41:48 packer: },{
- 2018/01/25 11:41:48 packer: Name: "root-device-type",
- 2018/01/25 11:41:48 packer: Values: ["ebs"]
- 2018/01/25 11:41:48 packer: }],
- 2018/01/25 11:41:48 packer: Owners: ["099720109477"]
- 2018/01/25 11:41:48 packer: }
- 2018/01/25 11:41:49 ui: [0;32m amazon-ebs: Found Image ID: ami-7a187c03[0m
- 2018/01/25 11:41:49 ui: [1;32m==> amazon-ebs: Creating temporary keypair: packer_5a69b468-ddc1-2738-c604-d10f5f5631f4[0m
- 2018/01/25 11:41:50 ui: [1;32m==> amazon-ebs: Creating temporary security group for this instance: packer_5a69b46e-4bf2-e823-4ab3-6a1be3a56f5e[0m
- 2018/01/25 11:41:50 ui: [1;32m==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...[0m
- 2018/01/25 11:41:50 packer: 2018/01/25 11:41:50 [DEBUG] Waiting for temporary security group: sg-3ebf4944
- 2018/01/25 11:41:50 packer: 2018/01/25 11:41:50 [DEBUG] Found security group sg-3ebf4944
- 2018/01/25 11:41:50 ui: [1;32m==> amazon-ebs: Launching a source AWS instance...[0m
- 2018/01/25 11:41:50 ui: [1;32m==> amazon-ebs: Adding tags to source instance[0m
- 2018/01/25 11:41:50 ui: [0;32m amazon-ebs: Adding tag: "Name": "Packer Builder"[0m
- 2018/01/25 11:41:51 ui: [0;32m amazon-ebs: Instance ID: i-0c83ecad713ba6f7d[0m
- 2018/01/25 11:41:51 ui: [1;32m==> amazon-ebs: Waiting for instance (i-0c83ecad713ba6f7d) to become ready...[0m
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Not using winrm communicator, skipping get password...
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Waiting for SSH, up to timeout: 5m0s
- 2018/01/25 11:44:54 ui: [1;32m==> amazon-ebs: Waiting for SSH to become available...[0m
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] Attempting SSH connection...
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 reconnecting to TCP connection for SSH
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 handshaking with SSH
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 handshake complete!
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 opening new ssh session
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 [INFO] agent forwarding enabled
- 2018/01/25 11:44:54 ui: [1;32m==> amazon-ebs: Connected to SSH![0m
- 2018/01/25 11:44:54 packer: 2018/01/25 11:44:54 Running the provision hook
- 2018/01/25 11:44:54 [INFO] (telemetry) Starting provisioner ansible
- 2018/01/25 11:44:54 ui: [1;32m==> amazon-ebs: Provisioning with Ansible...[0m
- 2018/01/25 11:44:55 packer: 2018/01/25 11:44:55 SSH proxy: serving on 127.0.0.1:58416
- 2018/01/25 11:44:55 ui: [1;32m==> 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"}'[0m
- 2018/01/25 11:44:56 ui: [0;32m amazon-ebs:[0m
- 2018/01/25 11:44:56 ui: [0;32m amazon-ebs: PLAY [all] *********************************************************************[0m
- 2018/01/25 11:44:56 ui: [0;32m amazon-ebs:[0m
- 2018/01/25 11:44:56 ui: [0;32m amazon-ebs: TASK [Gathering Facts] *********************************************************[0m
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 SSH proxy: accepted connection
- 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
- 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
- 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
- 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
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new exec request: /bin/sh -c 'echo ~ && sleep 0'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 starting remote command: /bin/sh -c 'echo ~ && sleep 0'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 13 bytes written for 'stdout'
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 13 bytes written for 'stdout'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 110 bytes written for 'stdout'
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 110 bytes written for 'stdout'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
- 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
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 196418 bytes written for 'uploadData'
- 2018/01/25 11:44:57 [INFO] 196418 bytes written for 'uploadData'
- 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
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Started SCP session, beginning transfers...
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [DEBUG] scp: Uploading setup.py: perms=C0600 size=196418
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 SCP session complete, closing stdin pipe.
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Waiting for SSH session to complete.
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 scp stderr (length 28): Sink: C0600 196418 setup.py
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stderr'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 rejecting auth-agent-req@openssh.com request
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 ansible provisioner pty-req request
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 new env request: LC_CTYPE=en_US.UTF-8
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 opening new ssh session
- 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'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 39 bytes written for 'stderr'
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
- 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdout'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 39 bytes written for 'stderr'
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] RPC client: Communicator ended with: 0
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 [INFO] 0 bytes written for 'stdin'
- 2018/01/25 11:44:57 ui: [0;32m 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}[0m
- 2018/01/25 11:44:57 ui: [0;32m amazon-ebs: to retry, use: --limit @/Users/ksmets/repositories/my-packer-templates/example-ansible-extra-vars/playbook.retry[0m
- 2018/01/25 11:44:57 ui: [0;32m amazon-ebs:[0m
- 2018/01/25 11:44:57 ui: [0;32m amazon-ebs: PLAY RECAP *********************************************************************[0m
- 2018/01/25 11:44:57 ui: [0;32m amazon-ebs: default : ok=0 changed=0 unreachable=0 failed=1[0m
- 2018/01/25 11:44:57 ui: [0;32m amazon-ebs:[0m
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 shutting down the SSH proxy
- 2018/01/25 11:44:57 [INFO] (telemetry) ending ansible
- 2018/01/25 11:44:57 [INFO] (telemetry) found error: Error executing Ansible: Non-zero exit status: exit status 2
- 2018/01/25 11:44:57 ui: [1;32m==> amazon-ebs: Terminating the source AWS instance...[0m
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Waiting for state to become: terminated
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
- 2018/01/25 11:44:57 packer: 2018/01/25 11:44:57 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
- 2018/01/25 11:45:46 ui: [1;32m==> amazon-ebs: Cleaning up any extra volumes...[0m
- 2018/01/25 11:45:46 ui: [1;32m==> amazon-ebs: No volumes to clean up, skipping[0m
- 2018/01/25 11:45:46 ui: [1;32m==> amazon-ebs: Deleting temporary security group...[0m
- 2018/01/25 11:45:46 ui: [1;32m==> amazon-ebs: Deleting temporary keypair...[0m
- 2018/01/25 11:45:46 [INFO] (telemetry) ending amazon-ebs
- 2018/01/25 11:45:46 [INFO] (telemetry) found error: Error executing Ansible: Non-zero exit status: exit status 2
- 2018/01/25 11:45:46 ui error: [1;31mBuild 'amazon-ebs' errored: Error executing Ansible: Non-zero exit status: exit status 2[0m
- 2018/01/25 11:45:46 Builds completed. Waiting on interrupt barrier...
- 2018/01/25 11:45:46 machine readable: error-count []string{"1"}
- 2018/01/25 11:45:46 ui error:
- ==> Some builds didn't complete successfully and had errors:
- 2018/01/25 11:45:46 machine readable: amazon-ebs,error []string{"Error executing Ansible: Non-zero exit status: exit status 2"}
- 2018/01/25 11:45:46 ui error: --> amazon-ebs: Error executing Ansible: Non-zero exit status: exit status 2
- 2018/01/25 11:45:46 ui:
- ==> Builds finished but no artifacts were created.
- 2018/01/25 11:45:46 [INFO] (telemetry) Finalizing.
- 2018/01/25 11:45:47 waiting for all plugin processes to complete...
- 2018/01/25 11:45:47 /usr/local/bin/packer: plugin process exited
- 2018/01/25 11:45:47 /usr/local/bin/packer: plugin process exited
Add Comment
Please, Sign In to add comment