· 7 years ago · Jun 26, 2018, 03:42 AM
12018/06/25 14:00:47 Waiting for agent ping
22018/06/25 14:00:50 Waiting for DOWNLOAD_SOURCE
32018/06/25 14:00:51 Phase is DOWNLOAD_SOURCE
42018/06/25 14:00:51 CODEBUILD_SRC_DIR=/codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
52018/06/25 14:00:51 YAML location is /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/buildspec-ebs-builds.yaml
62018/06/25 14:00:51 Processing environment variables
72018/06/25 14:00:51 Decrypting parameter store environment variables
82018/06/25 14:00:51 Moving to directory /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
92018/06/25 14:00:51 Registering with agent
102018/06/25 14:00:51 Phases found in YAML: 2
112018/06/25 14:00:51 BUILD: 8 commands
122018/06/25 14:00:51 PRE_BUILD: 1 commands
132018/06/25 14:00:51 Phase complete: DOWNLOAD_SOURCE Success: true
142018/06/25 14:00:51 Phase context status code: Message:
152018/06/25 14:00:51 Entering phase INSTALL
162018/06/25 14:00:51 Phase complete: INSTALL Success: true
172018/06/25 14:00:51 Phase context status code: Message:
182018/06/25 14:00:51 Entering phase PRE_BUILD
192018/06/25 14:00:51 Running command test ${SIZE+x}
20
212018/06/25 14:00:51 Phase complete: PRE_BUILD Success: true
222018/06/25 14:00:51 Phase context status code: Message:
232018/06/25 14:00:52 Entering phase BUILD
242018/06/25 14:00:52 Running command cd ec2
25
262018/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)'
272018/06/25 14:00:52 [INFO] Packer version: 1.2.4
282018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
292018/06/25 14:00:52 Built with Go Version: go1.10.1
302018/06/25 14:00:52 Detected home directory from env var: /root
312018/06/25 14:00:52 Using internal plugin for digitalocean
322018/06/25 14:00:52 Using internal plugin for file
332018/06/25 14:00:52 Using internal plugin for scaleway
342018/06/25 14:00:52 Using internal plugin for vmware-vmx
352018/06/25 14:00:52 Using internal plugin for amazon-instance
362018/06/25 14:00:52 Using internal plugin for cloudstack
372018/06/25 14:00:52 Using internal plugin for hyperv-iso
382018/06/25 14:00:52 Using internal plugin for openstack
392018/06/25 14:00:52 Using internal plugin for parallels-iso
402018/06/25 14:00:52 Using internal plugin for virtualbox-iso
412018/06/25 14:00:52 Using internal plugin for amazon-ebs
422018/06/25 14:00:52 Using internal plugin for hyperv-vmcx
432018/06/25 14:00:52 Using internal plugin for lxc
442018/06/25 14:00:52 Using internal plugin for ncloud
452018/06/25 14:00:52 Using internal plugin for oracle-classic
462018/06/25 14:00:52 Using internal plugin for amazon-ebssurrogate
472018/06/25 14:00:52 Using internal plugin for googlecompute
482018/06/25 14:00:52 Using internal plugin for lxd
492018/06/25 14:00:52 Using internal plugin for qemu
502018/06/25 14:00:52 Using internal plugin for virtualbox-ovf
512018/06/25 14:00:52 Using internal plugin for vmware-iso
522018/06/25 14:00:52 Using internal plugin for azure-arm
532018/06/25 14:00:52 Using internal plugin for null
542018/06/25 14:00:52 Using internal plugin for profitbricks
552018/06/25 14:00:52 Using internal plugin for parallels-pvm
562018/06/25 14:00:52 Using internal plugin for triton
572018/06/25 14:00:52 Using internal plugin for alicloud-ecs
582018/06/25 14:00:52 Using internal plugin for amazon-chroot
592018/06/25 14:00:52 Using internal plugin for amazon-ebsvolume
602018/06/25 14:00:52 Using internal plugin for docker
612018/06/25 14:00:52 Using internal plugin for oneandone
622018/06/25 14:00:52 Using internal plugin for oracle-oci
632018/06/25 14:00:52 Using internal plugin for shell
642018/06/25 14:00:52 Using internal plugin for shell-local
652018/06/25 14:00:52 Using internal plugin for ansible
662018/06/25 14:00:52 Using internal plugin for chef-solo
672018/06/25 14:00:52 Using internal plugin for puppet-masterless
682018/06/25 14:00:52 Using internal plugin for windows-shell
692018/06/25 14:00:52 Using internal plugin for ansible-local
702018/06/25 14:00:52 Using internal plugin for converge
712018/06/25 14:00:52 Using internal plugin for salt-masterless
722018/06/25 14:00:52 Using internal plugin for file
732018/06/25 14:00:52 Using internal plugin for powershell
742018/06/25 14:00:52 Using internal plugin for chef-client
752018/06/25 14:00:52 Using internal plugin for puppet-server
762018/06/25 14:00:52 Using internal plugin for windows-restart
772018/06/25 14:00:52 Using internal plugin for alicloud-import
782018/06/25 14:00:52 Using internal plugin for atlas
792018/06/25 14:00:52 Using internal plugin for checksum
802018/06/25 14:00:52 Using internal plugin for shell-local
812018/06/25 14:00:52 Using internal plugin for vagrant-cloud
822018/06/25 14:00:52 Using internal plugin for artifice
832018/06/25 14:00:52 Using internal plugin for docker-push
842018/06/25 14:00:52 Using internal plugin for docker-save
852018/06/25 14:00:52 Using internal plugin for docker-tag
862018/06/25 14:00:52 Using internal plugin for vsphere
872018/06/25 14:00:52 Using internal plugin for vsphere-template
882018/06/25 14:00:52 Using internal plugin for compress
892018/06/25 14:00:52 Using internal plugin for docker-import
902018/06/25 14:00:52 Using internal plugin for googlecompute-export
912018/06/25 14:00:52 Using internal plugin for manifest
922018/06/25 14:00:52 Using internal plugin for amazon-import
932018/06/25 14:00:52 Using internal plugin for vagrant
942018/06/25 14:00:52 Detected home directory from env var: /root
952018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
962018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
972018/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]}
982018/06/25 14:00:52 Detected home directory from env var: /root
992018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
1002018/06/25 14:00:52 Detected home directory from env var: /root
1012018/06/25 14:00:52 Loading builder: amazon-ebsvolume
1022018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
1032018/06/25 14:00:52 Current exe path: /usr/bin/packer
1042018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
1052018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-amazon-ebsvolume"}
1062018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
1072018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
1082018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
1092018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
1102018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1112018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
1122018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
1132018/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[]}
1142018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1152018/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
1162018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-builder-amazon-ebsvolume"}
1172018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1182018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
1192018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
1202018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin984724254
1212018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
1222018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
1232018/06/25 14:00:52 Loading provisioner: ansible
1242018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
1252018/06/25 14:00:52 Current exe path: /usr/bin/packer
1262018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
1272018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible"}
1282018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
1292018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
1302018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
1312018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
1322018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1332018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
1342018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
1352018/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[]}
1362018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1372018/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
1382018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-provisioner-ansible"}
1392018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
1402018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
1412018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin792389369
1422018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1432018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
1442018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
1452018/06/25 14:00:52 Loading post-processor: manifest
1462018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
1472018/06/25 14:00:52 Current exe path: /usr/bin/packer
1482018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
1492018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-post-processor-manifest"}
1502018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
1512018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
1522018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
1532018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
1542018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1552018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
1562018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
1572018/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[]}
1582018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1592018/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
1602018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-post-processor-manifest"}
1612018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
1622018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
1632018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
1642018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin154876105
1652018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
1662018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
1672018/06/25 14:00:52 ui: amazon-ebsvolume output will be in this color.
1682018/06/25 14:00:52 ui:
1692018/06/25 14:00:52 Build debug mode: false
1702018/06/25 14:00:52 Force build: false
1712018/06/25 14:00:52 On error:
1722018/06/25 14:00:52 Preparing build: amazon-ebsvolume
173amazon-ebsvolume output will be in this color.
174
1752018/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}}
1762018/06/25 14:00:53 packer: 2018/06/25 14:00:53 ansible-playbook version: 2.5.5
1772018/06/25 14:00:53 Waiting on builds to complete...
1782018/06/25 14:00:53 Starting build run: amazon-ebsvolume
1792018/06/25 14:00:53 Running builder: amazon-ebsvolume
1802018/06/25 14:00:53 [INFO] (telemetry) Starting builder amazon-ebsvolume
1812018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Found region eu-central-1
1822018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AWS Auth provider used: "CredentialsEndpointProvider"
1832018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] Finding AZ and VpcId for the given subnet 'subnet-0dc1885568fc09ef3'
1842018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AvailabilityZone found: 'eu-central-1a'
1852018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Using AMI Filters {
1862018/06/25 14:00:53 packer: ImageIds: ["ami-07a3aacb2904bbc2e"]
1872018/06/25 14:00:53 packer: }
1882018/06/25 14:00:53 ui: amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
189amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
190==> amazon-ebsvolume: Using existing SSH private key
1912018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Using existing SSH private key
1922018/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...
1942018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Launching a source AWS instance...
1952018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Adding tags to source instance
196==> amazon-ebsvolume: Adding tags to source instance
197amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
1982018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
1992018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
200amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
201amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
2022018/06/25 14:00:54 ui: amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
2032018/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...
2062018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Tagging EBS volumes...
207amazon-ebsvolume: Adding tag: "vibes": "builds"
2082018/06/25 14:01:24 ui: amazon-ebsvolume: Adding tag: "vibes": "builds"
209==> amazon-ebsvolume: Waiting for SSH to become available...
2102018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Not using winrm communicator, skipping get password...
2112018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Waiting for SSH, up to timeout: 5m0s
2122018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Waiting for SSH to become available...
2132018/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
2142018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [INFO] Attempting SSH connection...
2152018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] reconnecting to TCP connection for SSH
2162018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] handshaking with SSH
2172018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [DEBUG] handshake complete!
2182018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [INFO] no local agent socket, will not connect agent
2192018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Connected to SSH!
220==> amazon-ebsvolume: Connected to SSH!
2212018/06/25 14:01:38 packer: 2018/06/25 14:01:38 Running the provision hook
2222018/06/25 14:01:38 [INFO] (telemetry) Starting provisioner ansible
223==> amazon-ebsvolume: Provisioning with Ansible...
2242018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Provisioning with Ansible...
2252018/06/25 14:01:39 packer: 2018/06/25 14:01:39 SSH proxy: serving on 127.0.0.1:36307
2262018/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
228amazon-ebsvolume: ansible-playbook 2.5.5
2292018/06/25 14:01:40 ui: amazon-ebsvolume: ansible-playbook 2.5.5
230amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
2312018/06/25 14:01:40 ui: amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
232amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
2332018/06/25 14:01:40 ui: amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
234amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
2352018/06/25 14:01:40 ui: amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
2362018/06/25 14:01:40 ui: amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
237amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
2382018/06/25 14:01:40 ui: amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
239amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
240amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
2412018/06/25 14:01:40 ui: amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
2422018/06/25 14:01:40 ui: amazon-ebsvolume:
243amazon-ebsvolume:
2442018/06/25 14:01:40 ui: amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
245amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
246amazon-ebsvolume: 1 plays in /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml
2472018/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
248amazon-ebsvolume:
2492018/06/25 14:01:40 ui: amazon-ebsvolume:
250amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
2512018/06/25 14:01:40 ui: amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
252amazon-ebsvolume:
2532018/06/25 14:01:40 ui: amazon-ebsvolume:
254amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
2552018/06/25 14:01:40 ui: amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
256amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml:2
2572018/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
2582018/06/25 14:01:40 packer: 2018/06/25 14:01:40 SSH proxy: accepted connection
2592018/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
2602018/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
2612018/06/25 14:01:40 packer: 2018/06/25 14:01:40 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
2622018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
2632018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
2642018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] Opening new ssh session
2652018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
2662018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
2672018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
2682018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
2692018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
2702018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
2712018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
2722018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
2732018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
274amazon-ebsvolume: ok: [default]
2752018/06/25 14:01:43 ui: amazon-ebsvolume: ok: [default]
276amazon-ebsvolume: META: ran handlers
2772018/06/25 14:01:43 ui: amazon-ebsvolume: META: ran handlers
278amazon-ebsvolume:
2792018/06/25 14:01:43 ui: amazon-ebsvolume:
280amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
2812018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
282amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:2
2832018/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
2842018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
2852018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
2862018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
2872018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
2882018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
2892018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
2902018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
2912018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
2922018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
2932018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
2942018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
2952018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
2962018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
2972018/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}
298amazon-ebsvolume: changed: [default] => {"changed": true, "gid": 0, "group": "root", "mode": "0000", "owner": "root", "path": "/mnt", "size": 4096, "state": "directory", "uid": 0}
299amazon-ebsvolume:
3002018/06/25 14:01:43 ui: amazon-ebsvolume:
301amazon-ebsvolume: TASK [builds : Format volume] **************************************************
3022018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Format volume] **************************************************
3032018/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
304amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:9
3052018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
3062018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
3072018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
3082018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
3092018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
3102018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
3112018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
3122018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
3132018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
3142018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
3152018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
3162018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
3172018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
3182018/06/25 14:01:54 ui: amazon-ebsvolume: changed: [default] => {"changed": true}
319amazon-ebsvolume: changed: [default] => {"changed": true}
3202018/06/25 14:01:54 ui: amazon-ebsvolume:
321amazon-ebsvolume:
3222018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
323amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
324amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:14
3252018/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
3262018/06/25 14:01:54 packer: 2018/06/25 14:01:54 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
3272018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
3282018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
3292018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] Opening new ssh session
3302018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
3312018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
3322018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
3332018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
3342018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
3352018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
3362018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
3372018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
3382018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
3392018/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"}
340amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "name": "/mnt", "opts": "defaults", "passno": "0", "src": "/dev/xvdf"}
341amazon-ebsvolume:
3422018/06/25 14:01:54 ui: amazon-ebsvolume:
343amazon-ebsvolume: TASK [builds : Create required directories] ************************************
3442018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Create required directories] ************************************
3452018/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
346amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:20
3472018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
3482018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
3492018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
3502018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
3512018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
3522018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
3532018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
3542018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
3552018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
3562018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
3572018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
3582018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
3592018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
360amazon-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}
3612018/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}
3622018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
3632018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
3642018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
3652018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
3662018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
3672018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
3682018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
3692018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
3702018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
3712018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
3722018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
3732018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
3742018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
375amazon-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}
3762018/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}
377amazon-ebsvolume:
3782018/06/25 14:01:55 ui: amazon-ebsvolume:
379amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
3802018/06/25 14:01:55 ui: amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
381amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:30
3822018/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
3832018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
3842018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
3852018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
3862018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
3872018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
3882018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
3892018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
3902018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
3912018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
3922018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
3932018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
3942018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
3952018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
396amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
3972018/06/25 14:01:56 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
398amazon-ebsvolume: META: ran handlers
3992018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
400amazon-ebsvolume: META: ran handlers
4012018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
402amazon-ebsvolume:
4032018/06/25 14:01:56 ui: amazon-ebsvolume:
404amazon-ebsvolume: PLAY RECAP *********************************************************************
4052018/06/25 14:01:56 ui: amazon-ebsvolume: PLAY RECAP *********************************************************************
406amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
4072018/06/25 14:01:56 ui: amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
408amazon-ebsvolume:
4092018/06/25 14:01:56 ui: amazon-ebsvolume:
4102018/06/25 14:01:56 packer: 2018/06/25 14:01:56 shutting down the SSH proxy
4112018/06/25 14:01:56 [INFO] (telemetry) ending ansible
4122018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Stopping the source instance...
413==> amazon-ebsvolume: Stopping the source instance...
414amazon-ebsvolume: Stopping instance, attempt 1
4152018/06/25 14:01:56 ui: amazon-ebsvolume: Stopping instance, attempt 1
4162018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Waiting for the instance to stop...
417==> amazon-ebsvolume: Waiting for the instance to stop...
4182018/06/25 14:02:56 ui: ==> amazon-ebsvolume: Terminating the source AWS instance...
419==> amazon-ebsvolume: Terminating the source AWS instance...
4202018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Waiting for state to become: terminated
4212018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
4222018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
4232018/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:
4292018/06/25 14:03:03 [INFO] (telemetry) ending amazon-ebsvolume
4302018/06/25 14:03:03 ui: ==> amazon-ebsvolume: Running post-processor: manifest
4312018/06/25 14:03:03 [INFO] (telemetry) Starting post-processor manifest
432==> amazon-ebsvolume: Running post-processor: manifest
4332018/06/25 14:03:03 [INFO] (telemetry) ending manifest
4342018/06/25 14:03:03 Flagging to keep original artifact from post-processor 'manifest'
4352018/06/25 14:03:03 ui: Build 'amazon-ebsvolume' finished.
4362018/06/25 14:03:03 Builds completed. Waiting on interrupt barrier...
4372018/06/25 14:03:03 ui:
438==> Builds finished. The artifacts of successful builds are:
4392018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact-count []string{"2"}
440Build 'amazon-ebsvolume' finished.
441
442==> Builds finished. The artifacts of successful builds are:
4432018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "builder-id", "mitchellh.amazon.ebsvolume"}
4442018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "id", ""}
4452018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "string", "EBS Volumes were created:\n\n"}
4462018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "files-count", "0"}
4472018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "end"}
4482018/06/25 14:03:03 ui: --> amazon-ebsvolume: EBS Volumes were created:
449
450--> amazon-ebsvolume: EBS Volumes were created:
451
452
4532018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "builder-id", ""}
4542018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "id", ""}
4552018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "string", ""}
4562018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "files-count", "0"}
4572018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "end"}
4582018/06/25 14:03:03 ui: --> amazon-ebsvolume:
4592018/06/25 14:03:03 [INFO] (telemetry) Finalizing.
460--> amazon-ebsvolume:
4612018/06/25 14:03:03 waiting for all plugin processes to complete...
4622018/06/25 14:03:03 /usr/bin/packer: plugin process exited
4632018/06/25 14:03:03 /usr/bin/packer: plugin process exited
4642018/06/25 14:03:03 /usr/bin/packer: plugin process exited
465
4662018/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}
4802018/06/25 14:03:03 Running command VOLUME_ID="$(jq -r '.builds[0].artifact_id' -- manifest.json | cut -d : -f 2)"
481
482
4832018/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
485An error occurred (MissingParameter) when calling the CreateSnapshot operation: The request must contain the parameter volume
486
4872018/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
4882018/06/25 14:03:04 Running command aws ec2 delete-volume --volume-id "${VOLUME_ID}"
489
490An error occurred (MissingParameter) when calling the DeleteVolume operation: The request must contain the parameter volume
491
4922018/06/25 14:03:04 Command did not exit successfully aws ec2 delete-volume --volume-id "${VOLUME_ID}" exit status 255
4932018/06/25 14:03:04 Phase complete: BUILD Success: false
4942018/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
4952018/06/25 14:03:04 Entering phase POST_BUILD
4962018/06/25 14:03:04 Phase complete: POST_BUILD Success: true
4972018/06/25 14:03:04 Phase context status code: Message: