Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018/06/25 14:00:47 Waiting for agent ping
- 2018/06/25 14:00:50 Waiting for DOWNLOAD_SOURCE
- 2018/06/25 14:00:51 Phase is DOWNLOAD_SOURCE
- 2018/06/25 14:00:51 CODEBUILD_SRC_DIR=/codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
- 2018/06/25 14:00:51 YAML location is /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/buildspec-ebs-builds.yaml
- 2018/06/25 14:00:51 Processing environment variables
- 2018/06/25 14:00:51 Decrypting parameter store environment variables
- 2018/06/25 14:00:51 Moving to directory /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes
- 2018/06/25 14:00:51 Registering with agent
- 2018/06/25 14:00:51 Phases found in YAML: 2
- 2018/06/25 14:00:51 BUILD: 8 commands
- 2018/06/25 14:00:51 PRE_BUILD: 1 commands
- 2018/06/25 14:00:51 Phase complete: DOWNLOAD_SOURCE Success: true
- 2018/06/25 14:00:51 Phase context status code: Message:
- 2018/06/25 14:00:51 Entering phase INSTALL
- 2018/06/25 14:00:51 Phase complete: INSTALL Success: true
- 2018/06/25 14:00:51 Phase context status code: Message:
- 2018/06/25 14:00:51 Entering phase PRE_BUILD
- 2018/06/25 14:00:51 Running command test ${SIZE+x}
- 2018/06/25 14:00:51 Phase complete: PRE_BUILD Success: true
- 2018/06/25 14:00:51 Phase context status code: Message:
- 2018/06/25 14:00:52 Entering phase BUILD
- 2018/06/25 14:00:52 Running command cd ec2
- 2018/06/25 14:00:52 Running command bash -c 'packer build <(jq -c ".builders[0].ebs_volumes[0].volume_size=${SIZE}" -- template-ebs-builds.json)'
- 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
- 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
- 2018/06/25 14:00:52 Built with Go Version: go1.10.1
- 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 Using internal plugin for digitalocean
- 2018/06/25 14:00:52 Using internal plugin for file
- 2018/06/25 14:00:52 Using internal plugin for scaleway
- 2018/06/25 14:00:52 Using internal plugin for vmware-vmx
- 2018/06/25 14:00:52 Using internal plugin for amazon-instance
- 2018/06/25 14:00:52 Using internal plugin for cloudstack
- 2018/06/25 14:00:52 Using internal plugin for hyperv-iso
- 2018/06/25 14:00:52 Using internal plugin for openstack
- 2018/06/25 14:00:52 Using internal plugin for parallels-iso
- 2018/06/25 14:00:52 Using internal plugin for virtualbox-iso
- 2018/06/25 14:00:52 Using internal plugin for amazon-ebs
- 2018/06/25 14:00:52 Using internal plugin for hyperv-vmcx
- 2018/06/25 14:00:52 Using internal plugin for lxc
- 2018/06/25 14:00:52 Using internal plugin for ncloud
- 2018/06/25 14:00:52 Using internal plugin for oracle-classic
- 2018/06/25 14:00:52 Using internal plugin for amazon-ebssurrogate
- 2018/06/25 14:00:52 Using internal plugin for googlecompute
- 2018/06/25 14:00:52 Using internal plugin for lxd
- 2018/06/25 14:00:52 Using internal plugin for qemu
- 2018/06/25 14:00:52 Using internal plugin for virtualbox-ovf
- 2018/06/25 14:00:52 Using internal plugin for vmware-iso
- 2018/06/25 14:00:52 Using internal plugin for azure-arm
- 2018/06/25 14:00:52 Using internal plugin for null
- 2018/06/25 14:00:52 Using internal plugin for profitbricks
- 2018/06/25 14:00:52 Using internal plugin for parallels-pvm
- 2018/06/25 14:00:52 Using internal plugin for triton
- 2018/06/25 14:00:52 Using internal plugin for alicloud-ecs
- 2018/06/25 14:00:52 Using internal plugin for amazon-chroot
- 2018/06/25 14:00:52 Using internal plugin for amazon-ebsvolume
- 2018/06/25 14:00:52 Using internal plugin for docker
- 2018/06/25 14:00:52 Using internal plugin for oneandone
- 2018/06/25 14:00:52 Using internal plugin for oracle-oci
- 2018/06/25 14:00:52 Using internal plugin for shell
- 2018/06/25 14:00:52 Using internal plugin for shell-local
- 2018/06/25 14:00:52 Using internal plugin for ansible
- 2018/06/25 14:00:52 Using internal plugin for chef-solo
- 2018/06/25 14:00:52 Using internal plugin for puppet-masterless
- 2018/06/25 14:00:52 Using internal plugin for windows-shell
- 2018/06/25 14:00:52 Using internal plugin for ansible-local
- 2018/06/25 14:00:52 Using internal plugin for converge
- 2018/06/25 14:00:52 Using internal plugin for salt-masterless
- 2018/06/25 14:00:52 Using internal plugin for file
- 2018/06/25 14:00:52 Using internal plugin for powershell
- 2018/06/25 14:00:52 Using internal plugin for chef-client
- 2018/06/25 14:00:52 Using internal plugin for puppet-server
- 2018/06/25 14:00:52 Using internal plugin for windows-restart
- 2018/06/25 14:00:52 Using internal plugin for alicloud-import
- 2018/06/25 14:00:52 Using internal plugin for atlas
- 2018/06/25 14:00:52 Using internal plugin for checksum
- 2018/06/25 14:00:52 Using internal plugin for shell-local
- 2018/06/25 14:00:52 Using internal plugin for vagrant-cloud
- 2018/06/25 14:00:52 Using internal plugin for artifice
- 2018/06/25 14:00:52 Using internal plugin for docker-push
- 2018/06/25 14:00:52 Using internal plugin for docker-save
- 2018/06/25 14:00:52 Using internal plugin for docker-tag
- 2018/06/25 14:00:52 Using internal plugin for vsphere
- 2018/06/25 14:00:52 Using internal plugin for vsphere-template
- 2018/06/25 14:00:52 Using internal plugin for compress
- 2018/06/25 14:00:52 Using internal plugin for docker-import
- 2018/06/25 14:00:52 Using internal plugin for googlecompute-export
- 2018/06/25 14:00:52 Using internal plugin for manifest
- 2018/06/25 14:00:52 Using internal plugin for amazon-import
- 2018/06/25 14:00:52 Using internal plugin for vagrant
- 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
- 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
- 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[file:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file lxc:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc amazon-ebssurrogate:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate profitbricks:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks oracle-oci:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci qemu:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu amazon-ebsvolume:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume triton:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-chroot:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oracle-classic:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic docker:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker alicloud-ecs:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs cloudstack:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack parallels-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso virtualbox-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso vmware-iso:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso parallels-pvm:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm scaleway:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway openstack:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-ebs:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs virtualbox-ovf:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf digitalocean:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean amazon-instance:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance hyperv-vmcx:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx googlecompute:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute lxd:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd vmware-vmx:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx ncloud:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud azure-arm:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm null:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone] PostProcessors:map[vsphere:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere shell-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-save:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vsphere-template:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template atlas:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas vagrant-cloud:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud manifest:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest amazon-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import checksum:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum googlecompute-export:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export docker-push:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push compress:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vagrant:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant alicloud-import:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import artifice:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice] Provisioners:map[chef-client:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client puppet-masterless:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell converge:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo salt-masterless:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless powershell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell windows-restart:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart shell:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local puppet-server:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:/usr/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local]}
- 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
- 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 Loading builder: amazon-ebsvolume
- 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
- 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
- 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
- 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-amazon-ebsvolume"}
- 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-builder-amazon-ebsvolume"}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin984724254
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
- 2018/06/25 14:00:52 Loading provisioner: ansible
- 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
- 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
- 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
- 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible"}
- 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-provisioner-ansible"}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin792389369
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
- 2018/06/25 14:00:52 Loading post-processor: manifest
- 2018/06/25 14:00:52 Plugin could not be found. Checking same directory as executable.
- 2018/06/25 14:00:52 Current exe path: /usr/bin/packer
- 2018/06/25 14:00:52 Creating plugin client for path: /usr/bin/packer
- 2018/06/25 14:00:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-post-processor-manifest"}
- 2018/06/25 14:00:52 Waiting for RPC address for: /usr/bin/packer
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [INFO] Packer version: 1.2.4
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer Target OS/Arch: linux amd64
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Built with Go Version: go1.10.1
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Attempting to open config file: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 [WARN] Config file doesn't exist: /root/.packerconfig
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Setting cache directory: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/packer_cache
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 args: []string{"packer-post-processor-manifest"}
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Detected home directory from env var: /root
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin minimum port: 10000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin maximum port: 25000
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Plugin address: unix /tmp/packer-plugin154876105
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Waiting for connection...
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Serving a plugin connection...
- 2018/06/25 14:00:52 ui: amazon-ebsvolume output will be in this color.
- 2018/06/25 14:00:52 ui:
- 2018/06/25 14:00:52 Build debug mode: false
- 2018/06/25 14:00:52 Force build: false
- 2018/06/25 14:00:52 On error:
- 2018/06/25 14:00:52 Preparing build: amazon-ebsvolume
- amazon-ebsvolume output will be in this color.
- 2018/06/25 14:00:52 packer: 2018/06/25 14:00:52 Config: {PackerConfig:{PackerBuildName:amazon-ebsvolume PackerBuilderType:amazon-ebsvolume PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[instance_type:t2.micro ami:ami-07a3aacb2904bbc2e security_group_ids:sg-0a109c43177787a00,sg-00fcfbb812c45a978 size:50 subnet_id:subnet-0dc1885568fc09ef3 vpc_id:vpc-03c44ed7a069ba0ed ssh_user:root device_name:/dev/xvdf region:eu-central-1]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-central-1 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: DisableStopInstance:false EbsOptimized:false EnableT2Unlimited:false IamInstanceProfile: InstanceInitiatedShutdownBehavior:stop InstanceType:t2.micro RunTags:map[Packer:vibes-ebs-builds] SecurityGroupId: SecurityGroupIds:[sg-0a109c43177787a00 sg-00fcfbb812c45a978] SourceAmi:ami-07a3aacb2904bbc2e SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: SubnetId:subnet-0dc1885568fc09ef3 TemporaryKeyPairName: TemporarySGSourceCidr:0.0.0.0/0 UserData: UserDataFile: VpcId:vpc-03c44ed7a069ba0ed WindowsPasswordTimeout:20m0s Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:root SSHPassword: SSHPrivateKey:vibes-packer.pem SSHPty:false SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: SSHKeepAliveInterval:5s SSHReadWriteTimeout:0s WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName:vibes-packer SSHInterface:private_ip} VolumeMappings:[{BlockDevice:{DeleteOnTermination:false DeviceName:{{ user `device_name` }} Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:50 KmsKeyId:} Tags:map[vibes:builds]}] AMIENASupport:false AMISriovNetSupport:false launchBlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[{DeleteOnTermination:false DeviceName:/dev/xvdf Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:50 KmsKeyId:}]}} ctx:{Data:<nil> Funcs:map[clean_ami_name:0xc428d0] UserVariables:map[size:50 subnet_id:subnet-0dc1885568fc09ef3 region:eu-central-1 device_name:/dev/xvdf instance_type:t2.micro vpc_id:vpc-03c44ed7a069ba0ed ssh_user:root ami:ami-07a3aacb2904bbc2e security_group_ids:sg-0a109c43177787a00,sg-00fcfbb812c45a978] EnableEnv:false BuildName:amazon-ebsvolume BuildType:amazon-ebsvolume TemplatePath:/dev/fd/63}}
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 ansible-playbook version: 2.5.5
- 2018/06/25 14:00:53 Waiting on builds to complete...
- 2018/06/25 14:00:53 Starting build run: amazon-ebsvolume
- 2018/06/25 14:00:53 Running builder: amazon-ebsvolume
- 2018/06/25 14:00:53 [INFO] (telemetry) Starting builder amazon-ebsvolume
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Found region eu-central-1
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AWS Auth provider used: "CredentialsEndpointProvider"
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] Finding AZ and VpcId for the given subnet 'subnet-0dc1885568fc09ef3'
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 [INFO] AvailabilityZone found: 'eu-central-1a'
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Using AMI Filters {
- 2018/06/25 14:00:53 packer: ImageIds: ["ami-07a3aacb2904bbc2e"]
- 2018/06/25 14:00:53 packer: }
- 2018/06/25 14:00:53 ui: amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
- amazon-ebsvolume: Found Image ID: ami-07a3aacb2904bbc2e
- ==> amazon-ebsvolume: Using existing SSH private key
- 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Using existing SSH private key
- 2018/06/25 14:00:53 packer: 2018/06/25 14:00:53 Using specified security groups: [sg-0a109c43177787a00 sg-00fcfbb812c45a978]
- ==> amazon-ebsvolume: Launching a source AWS instance...
- 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Launching a source AWS instance...
- 2018/06/25 14:00:53 ui: ==> amazon-ebsvolume: Adding tags to source instance
- ==> amazon-ebsvolume: Adding tags to source instance
- amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
- 2018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Packer": "vibes-ebs-builds"
- 2018/06/25 14:00:53 ui: amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
- amazon-ebsvolume: Adding tag: "Name": "Packer Builder"
- amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
- 2018/06/25 14:00:54 ui: amazon-ebsvolume: Instance ID: i-07dcf3b2948e158f8
- 2018/06/25 14:00:54 ui: ==> amazon-ebsvolume: Waiting for instance (i-07dcf3b2948e158f8) to become ready...
- ==> amazon-ebsvolume: Waiting for instance (i-07dcf3b2948e158f8) to become ready...
- ==> amazon-ebsvolume: Tagging EBS volumes...
- 2018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Tagging EBS volumes...
- amazon-ebsvolume: Adding tag: "vibes": "builds"
- 2018/06/25 14:01:24 ui: amazon-ebsvolume: Adding tag: "vibes": "builds"
- ==> amazon-ebsvolume: Waiting for SSH to become available...
- 2018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Not using winrm communicator, skipping get password...
- 2018/06/25 14:01:24 packer: 2018/06/25 14:01:24 [INFO] Waiting for SSH, up to timeout: 5m0s
- 2018/06/25 14:01:24 ui: ==> amazon-ebsvolume: Waiting for SSH to become available...
- 2018/06/25 14:01:32 packer: 2018/06/25 14:01:32 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.0.0.12:22: connect: connection refused
- 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [INFO] Attempting SSH connection...
- 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] reconnecting to TCP connection for SSH
- 2018/06/25 14:01:37 packer: 2018/06/25 14:01:37 [DEBUG] handshaking with SSH
- 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [DEBUG] handshake complete!
- 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 [INFO] no local agent socket, will not connect agent
- 2018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Connected to SSH!
- ==> amazon-ebsvolume: Connected to SSH!
- 2018/06/25 14:01:38 packer: 2018/06/25 14:01:38 Running the provision hook
- 2018/06/25 14:01:38 [INFO] (telemetry) Starting provisioner ansible
- ==> amazon-ebsvolume: Provisioning with Ansible...
- 2018/06/25 14:01:38 ui: ==> amazon-ebsvolume: Provisioning with Ansible...
- 2018/06/25 14:01:39 packer: 2018/06/25 14:01:39 SSH proxy: serving on 127.0.0.1:36307
- 2018/06/25 14:01:39 ui: ==> amazon-ebsvolume: Executing Ansible: ansible-playbook --extra-vars packer_build_name=amazon-ebsvolume packer_builder_type=amazon-ebsvolume -i /tmp/packer-provisioner-ansible644511123 /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml -e ansible_ssh_private_key_file=/tmp/ansible-key205509636 -vv --extra-vars device_name=/dev/xvdf
- ==> 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
- amazon-ebsvolume: ansible-playbook 2.5.5
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: ansible-playbook 2.5.5
- amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: config file = /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg
- amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
- amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
- amazon-ebsvolume: executable location = /usr/local/bin/ansible-playbook
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
- amazon-ebsvolume: python version = 3.5.5 (default, May 17 2018, 07:04:26) [GCC 7.3.0]
- amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: Using /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/ansible.cfg as config file
- 2018/06/25 14:01:40 ui: amazon-ebsvolume:
- amazon-ebsvolume:
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
- amazon-ebsvolume: PLAYBOOK: playbook-ebs-builds.yaml *********************************************
- amazon-ebsvolume: 1 plays in /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: 1 plays in /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml
- amazon-ebsvolume:
- 2018/06/25 14:01:40 ui: amazon-ebsvolume:
- amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: PLAY [Provision builds EBS volume] *********************************************
- amazon-ebsvolume:
- 2018/06/25 14:01:40 ui: amazon-ebsvolume:
- amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: TASK [Gathering Facts] *********************************************************
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml:2
- 2018/06/25 14:01:40 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/playbook-ebs-builds.yaml:2
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 SSH proxy: accepted connection
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 authentication attempt from 127.0.0.1:38396 to 127.0.0.1:36307 as root using none
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 authentication attempt from 127.0.0.1:38396 to 127.0.0.1:36307 as root using publickey
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
- 2018/06/25 14:01:40 [INFO] 204400 bytes written for 'stdin'
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:40 packer: 2018/06/25 14:01:40 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
- 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 11444 bytes written for 'stdout'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
- amazon-ebsvolume: ok: [default]
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: ok: [default]
- amazon-ebsvolume: META: ran handlers
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: META: ran handlers
- amazon-ebsvolume:
- 2018/06/25 14:01:43 ui: amazon-ebsvolume:
- amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Create mount point] *********************************************
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:2
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:2
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
- 2018/06/25 14:01:43 [INFO] 70663 bytes written for 'stdin'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
- 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:43 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 701 bytes written for 'stdout'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "gid": 0, "group": "root", "mode": "0000", "owner": "root", "path": "/mnt", "size": 4096, "state": "directory", "uid": 0}
- amazon-ebsvolume: changed: [default] => {"changed": true, "gid": 0, "group": "root", "mode": "0000", "owner": "root", "path": "/mnt", "size": 4096, "state": "directory", "uid": 0}
- amazon-ebsvolume:
- 2018/06/25 14:01:43 ui: amazon-ebsvolume:
- amazon-ebsvolume: TASK [builds : Format volume] **************************************************
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: TASK [builds : Format volume] **************************************************
- 2018/06/25 14:01:43 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:9
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:9
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
- 2018/06/25 14:01:43 [INFO] 68222 bytes written for 'stdin'
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:43 packer: 2018/06/25 14:01:43 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
- 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 209 bytes written for 'stdout'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: changed: [default] => {"changed": true}
- amazon-ebsvolume: changed: [default] => {"changed": true}
- 2018/06/25 14:01:54 ui: amazon-ebsvolume:
- amazon-ebsvolume:
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
- amazon-ebsvolume: TASK [builds : Mount volume] ***************************************************
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:14
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:14
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
- 2018/06/25 14:01:54 [INFO] 73548 bytes written for 'stdin'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
- 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:54 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 341 bytes written for 'stdout'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:54 packer: 2018/06/25 14:01:54 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "name": "/mnt", "opts": "defaults", "passno": "0", "src": "/dev/xvdf"}
- amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "name": "/mnt", "opts": "defaults", "passno": "0", "src": "/dev/xvdf"}
- amazon-ebsvolume:
- 2018/06/25 14:01:54 ui: amazon-ebsvolume:
- amazon-ebsvolume: TASK [builds : Create required directories] ************************************
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: TASK [builds : Create required directories] ************************************
- 2018/06/25 14:01:54 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:20
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:20
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
- 2018/06/25 14:01:55 [INFO] 70682 bytes written for 'stdin'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
- 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 814 bytes written for 'stdout'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
- 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}
- 2018/06/25 14:01:55 ui: amazon-ebsvolume: changed: [default] => (item=builds) => {"changed": true, "gid": 1024, "group": "1024", "item": "builds", "mode": "0755", "owner": "1013", "path": "/mnt/builds", "size": 4096, "state": "directory", "uid": 1013}
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
- 2018/06/25 14:01:55 [INFO] 70686 bytes written for 'stdin'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
- 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:55 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 830 bytes written for 'stdout'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] RPC client: Communicator ended with: 0
- 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}
- 2018/06/25 14:01:55 ui: amazon-ebsvolume: changed: [default] => (item=.overlayfs) => {"changed": true, "gid": 1024, "group": "1024", "item": ".overlayfs", "mode": "0755", "owner": "1013", "path": "/mnt/.overlayfs", "size": 4096, "state": "directory", "uid": 1013}
- amazon-ebsvolume:
- 2018/06/25 14:01:55 ui: amazon-ebsvolume:
- amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
- 2018/06/25 14:01:55 ui: amazon-ebsvolume: TASK [builds : Unmount volume] *************************************************
- amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:30
- 2018/06/25 14:01:55 ui: amazon-ebsvolume: task path: /codebuild/output/src052445932/src/github.com/kalrish/aws-vibes/ec2/roles/builds/tasks/main.yaml:30
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 new exec request: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
- 2018/06/25 14:01:55 [INFO] 73512 bytes written for 'stdin'
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] Opening new ssh session
- 2018/06/25 14:01:55 packer: 2018/06/25 14:01:55 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python && sleep 0'
- 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
- 2018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
- 2018/06/25 14:01:56 [INFO] RPC endpoint: Communicator ended with: 0
- 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 296 bytes written for 'stdout'
- 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] 0 bytes written for 'stderr'
- 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 [INFO] RPC client: Communicator ended with: 0
- amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: changed: [default] => {"changed": true, "dump": "0", "fstab": "/etc/fstab", "name": "/mnt", "opts": "defaults", "passno": "0"}
- amazon-ebsvolume: META: ran handlers
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
- amazon-ebsvolume: META: ran handlers
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: META: ran handlers
- amazon-ebsvolume:
- 2018/06/25 14:01:56 ui: amazon-ebsvolume:
- amazon-ebsvolume: PLAY RECAP *********************************************************************
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: PLAY RECAP *********************************************************************
- amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: default : ok=6 changed=5 unreachable=0 failed=0
- amazon-ebsvolume:
- 2018/06/25 14:01:56 ui: amazon-ebsvolume:
- 2018/06/25 14:01:56 packer: 2018/06/25 14:01:56 shutting down the SSH proxy
- 2018/06/25 14:01:56 [INFO] (telemetry) ending ansible
- 2018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Stopping the source instance...
- ==> amazon-ebsvolume: Stopping the source instance...
- amazon-ebsvolume: Stopping instance, attempt 1
- 2018/06/25 14:01:56 ui: amazon-ebsvolume: Stopping instance, attempt 1
- 2018/06/25 14:01:56 ui: ==> amazon-ebsvolume: Waiting for the instance to stop...
- ==> amazon-ebsvolume: Waiting for the instance to stop...
- 2018/06/25 14:02:56 ui: ==> amazon-ebsvolume: Terminating the source AWS instance...
- ==> amazon-ebsvolume: Terminating the source AWS instance...
- 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Waiting for state to become: terminated
- 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
- 2018/06/25 14:02:56 packer: 2018/06/25 14:02:56 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
- 2018/06/25 14:03:03 ui: ==> amazon-ebsvolume: Created Volumes: EBS Volumes were created:
- ==> amazon-ebsvolume:
- ==> amazon-ebsvolume:
- ==> amazon-ebsvolume: Created Volumes: EBS Volumes were created:
- ==> amazon-ebsvolume:
- ==> amazon-ebsvolume:
- 2018/06/25 14:03:03 [INFO] (telemetry) ending amazon-ebsvolume
- 2018/06/25 14:03:03 ui: ==> amazon-ebsvolume: Running post-processor: manifest
- 2018/06/25 14:03:03 [INFO] (telemetry) Starting post-processor manifest
- ==> amazon-ebsvolume: Running post-processor: manifest
- 2018/06/25 14:03:03 [INFO] (telemetry) ending manifest
- 2018/06/25 14:03:03 Flagging to keep original artifact from post-processor 'manifest'
- 2018/06/25 14:03:03 ui: Build 'amazon-ebsvolume' finished.
- 2018/06/25 14:03:03 Builds completed. Waiting on interrupt barrier...
- 2018/06/25 14:03:03 ui:
- ==> Builds finished. The artifacts of successful builds are:
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact-count []string{"2"}
- Build 'amazon-ebsvolume' finished.
- ==> Builds finished. The artifacts of successful builds are:
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "builder-id", "mitchellh.amazon.ebsvolume"}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "id", ""}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "string", "EBS Volumes were created:\n\n"}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "files-count", "0"}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"0", "end"}
- 2018/06/25 14:03:03 ui: --> amazon-ebsvolume: EBS Volumes were created:
- --> amazon-ebsvolume: EBS Volumes were created:
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "builder-id", ""}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "id", ""}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "string", ""}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "files-count", "0"}
- 2018/06/25 14:03:03 machine readable: amazon-ebsvolume,artifact []string{"1", "end"}
- 2018/06/25 14:03:03 ui: --> amazon-ebsvolume:
- 2018/06/25 14:03:03 [INFO] (telemetry) Finalizing.
- --> amazon-ebsvolume:
- 2018/06/25 14:03:03 waiting for all plugin processes to complete...
- 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
- 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
- 2018/06/25 14:03:03 /usr/bin/packer: plugin process exited
- 2018/06/25 14:03:03 Running command cat -- manifest.json
- {
- "builds": [
- {
- "name": "amazon-ebsvolume",
- "builder_type": "amazon-ebsvolume",
- "build_time": 1529935383,
- "files": null,
- "artifact_id": "",
- "packer_run_uuid": "2663ba78-41c2-2bb3-34f6-438b736e28af"
- }
- ],
- "last_run_uuid": "2663ba78-41c2-2bb3-34f6-438b736e28af"
- }
- 2018/06/25 14:03:03 Running command VOLUME_ID="$(jq -r '.builds[0].artifact_id' -- manifest.json | cut -d : -f 2)"
- 2018/06/25 14:03:03 Running command SNAPSHOT_ID="$(aws --query 'SnapshotId' --output text ec2 create-snapshot --volume-id "${VOLUME_ID}" --tag-specifications 'ResourceType=snapshot,Tags=[{Key=vibes,Value=builds}]')"
- An error occurred (MissingParameter) when calling the CreateSnapshot operation: The request must contain the parameter volume
- 2018/06/25 14:03:04 Command did not exit successfully SNAPSHOT_ID="$(aws --query 'SnapshotId' --output text ec2 create-snapshot --volume-id "${VOLUME_ID}" --tag-specifications 'ResourceType=snapshot,Tags=[{Key=vibes,Value=builds}]')" exit status 255
- 2018/06/25 14:03:04 Running command aws ec2 delete-volume --volume-id "${VOLUME_ID}"
- An error occurred (MissingParameter) when calling the DeleteVolume operation: The request must contain the parameter volume
- 2018/06/25 14:03:04 Command did not exit successfully aws ec2 delete-volume --volume-id "${VOLUME_ID}" exit status 255
- 2018/06/25 14:03:04 Phase complete: BUILD Success: false
- 2018/06/25 14:03:04 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: aws ec2 delete-volume --volume-id "${VOLUME_ID}". Reason: exit status 255
- 2018/06/25 14:03:04 Entering phase POST_BUILD
- 2018/06/25 14:03:04 Phase complete: POST_BUILD Success: true
- 2018/06/25 14:03:04 Phase context status code: Message:
Add Comment
Please, Sign In to add comment