Created
November 28, 2017 17:35
-
-
Save wonderphil/c1f8ce753c95d2ff99ab1938596dab17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packer build -parallel=false -only amazon -var bbenvironment=bbstage -var aws_access_key=**** -var aws_secret_key=**** -var domain=bbstage-aws.local -var vpc=vpc-22aadf45 -var subnet=subnet-1a9af053 -var region=eu-west-1 -var instance_size=m4.large -var build_number=60 -var ebs_kms_key_id=**** -var ubuntu_version=16.04 -var ubuntu_code=xenial -var ami=ami-b11d17d7 ami/packer_config/ansible_base_ami.json | |
2017/11/28 17:16:22 [INFO] Packer version: 1.1.2 | |
2017/11/28 17:16:22 Packer Target OS/Arch: linux amd64 | |
2017/11/28 17:16:22 Built with Go Version: go1.9 | |
2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 [DEBUG] Discovered plugin: vagrant-s3 = /home/ubuntu/.packer.d/plugins/packer-post-processor-vagrant-s3 | |
2017/11/28 17:16:22 Using internal plugin for googlecompute | |
2017/11/28 17:16:22 Using internal plugin for profitbricks | |
2017/11/28 17:16:22 Using internal plugin for alicloud-ecs | |
2017/11/28 17:16:22 Using internal plugin for amazon-ebs | |
2017/11/28 17:16:22 Using internal plugin for amazon-ebssurrogate | |
2017/11/28 17:16:22 Using internal plugin for file | |
2017/11/28 17:16:22 Using internal plugin for parallels-iso | |
2017/11/28 17:16:22 Using internal plugin for lxc | |
2017/11/28 17:16:22 Using internal plugin for lxd | |
2017/11/28 17:16:22 Using internal plugin for triton | |
2017/11/28 17:16:22 Using internal plugin for virtualbox-ovf | |
2017/11/28 17:16:22 Using internal plugin for vmware-iso | |
2017/11/28 17:16:22 Using internal plugin for docker | |
2017/11/28 17:16:22 Using internal plugin for oracle-oci | |
2017/11/28 17:16:22 Using internal plugin for amazon-ebsvolume | |
2017/11/28 17:16:22 Using internal plugin for cloudstack | |
2017/11/28 17:16:22 Using internal plugin for oneandone | |
2017/11/28 17:16:22 Using internal plugin for parallels-pvm | |
2017/11/28 17:16:22 Using internal plugin for vmware-vmx | |
2017/11/28 17:16:22 Using internal plugin for digitalocean | |
2017/11/28 17:16:22 Using internal plugin for null | |
2017/11/28 17:16:22 Using internal plugin for openstack | |
2017/11/28 17:16:22 Using internal plugin for virtualbox-iso | |
2017/11/28 17:16:22 Using internal plugin for amazon-instance | |
2017/11/28 17:16:22 Using internal plugin for amazon-chroot | |
2017/11/28 17:16:22 Using internal plugin for azure-arm | |
2017/11/28 17:16:22 Using internal plugin for hyperv-iso | |
2017/11/28 17:16:22 Using internal plugin for hyperv-vmcx | |
2017/11/28 17:16:22 Using internal plugin for qemu | |
2017/11/28 17:16:22 Using internal plugin for converge | |
2017/11/28 17:16:22 Using internal plugin for salt-masterless | |
2017/11/28 17:16:22 Using internal plugin for shell-local | |
2017/11/28 17:16:22 Using internal plugin for windows-shell | |
2017/11/28 17:16:22 Using internal plugin for puppet-server | |
2017/11/28 17:16:22 Using internal plugin for shell | |
2017/11/28 17:16:22 Using internal plugin for ansible | |
2017/11/28 17:16:22 Using internal plugin for file | |
2017/11/28 17:16:22 Using internal plugin for powershell | |
2017/11/28 17:16:22 Using internal plugin for windows-restart | |
2017/11/28 17:16:22 Using internal plugin for ansible-local | |
2017/11/28 17:16:22 Using internal plugin for chef-client | |
2017/11/28 17:16:22 Using internal plugin for chef-solo | |
2017/11/28 17:16:22 Using internal plugin for puppet-masterless | |
2017/11/28 17:16:22 Using internal plugin for atlas | |
2017/11/28 17:16:22 Using internal plugin for checksum | |
2017/11/28 17:16:22 Using internal plugin for docker-import | |
2017/11/28 17:16:22 Using internal plugin for docker-save | |
2017/11/28 17:16:22 Using internal plugin for manifest | |
2017/11/28 17:16:22 Using internal plugin for googlecompute-export | |
2017/11/28 17:16:22 Using internal plugin for vsphere | |
2017/11/28 17:16:22 Using internal plugin for artifice | |
2017/11/28 17:16:22 Using internal plugin for compress | |
2017/11/28 17:16:22 Using internal plugin for docker-tag | |
2017/11/28 17:16:22 Using internal plugin for shell-local | |
2017/11/28 17:16:22 Using internal plugin for vagrant-cloud | |
2017/11/28 17:16:22 Using internal plugin for alicloud-import | |
2017/11/28 17:16:22 Using internal plugin for amazon-import | |
2017/11/28 17:16:22 Using internal plugin for docker-push | |
2017/11/28 17:16:22 Using internal plugin for vagrant | |
2017/11/28 17:16:22 Using internal plugin for vsphere-template | |
2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 Attempting to open config file: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 [WARN] Config file doesn't exist: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack] PostProcessors:map[docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-s3:/home/ubuntu/.packer.d/plugins/packer-post-processor-vagrant-s3 docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import] Provisioners:map[converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless]} | |
2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 Setting cache directory: /home/ubuntu/workspace/BBSTAGE-AMI-ANSIBLE-BASED-U16/packer_cache | |
2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 Loading builder: amazon-ebs | |
2017/11/28 17:16:22 Plugin could not be found. Checking same directory as executable. | |
2017/11/28 17:16:22 Current exe path: /usr/local/bin/packer | |
2017/11/28 17:16:22 Creating plugin client for path: /usr/local/bin/packer | |
2017/11/28 17:16:22 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"} | |
2017/11/28 17:16:22 Waiting for RPC address for: /usr/local/bin/packer | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 [INFO] Packer version: 1.1.2 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Packer Target OS/Arch: linux amd64 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Built with Go Version: go1.9 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Attempting to open config file: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 [WARN] Config file doesn't exist: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]} | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Setting cache directory: /home/ubuntu/workspace/BBSTAGE-AMI-ANSIBLE-BASED-U16/packer_cache | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 args: []string{"packer-builder-amazon-ebs"} | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin minimum port: 10000 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin maximum port: 25000 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin address: unix /tmp/packer-plugin647636695 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Waiting for connection... | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Serving a plugin connection... | |
2017/11/28 17:16:22 Loading provisioner: shell | |
2017/11/28 17:16:22 Plugin could not be found. Checking same directory as executable. | |
2017/11/28 17:16:22 Current exe path: /usr/local/bin/packer | |
2017/11/28 17:16:22 Creating plugin client for path: /usr/local/bin/packer | |
2017/11/28 17:16:22 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-shell"} | |
2017/11/28 17:16:22 Waiting for RPC address for: /usr/local/bin/packer | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 [INFO] Packer version: 1.1.2 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Packer Target OS/Arch: linux amd64 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Built with Go Version: go1.9 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Attempting to open config file: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 [WARN] Config file doesn't exist: /home/ubuntu/.packerconfig | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]} | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Setting cache directory: /home/ubuntu/workspace/BBSTAGE-AMI-ANSIBLE-BASED-U16/packer_cache | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 args: []string{"packer-provisioner-shell"} | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin minimum port: 10000 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin maximum port: 25000 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Plugin address: unix /tmp/packer-plugin874443525 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Waiting for connection... | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Detected home directory from env var: /home/ubuntu | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Serving a plugin connection... | |
2017/11/28 17:16:22 ui: amazon output will be in this color. | |
2017/11/28 17:16:22 ui: | |
2017/11/28 17:16:22 Build debug mode: false | |
2017/11/28 17:16:22 Force build: false | |
2017/11/28 17:16:22 On error: | |
2017/11/28 17:16:22 Preparing build: amazon | |
amazon output will be in this color. | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Found region eu-west-1 | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 Config: {PackerConfig:{PackerBuildName:amazon PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[vpc:vpc-22aadf45 bblocation:aws ubuntu_code:xenial aws_access_key:<Filtered> ami:ami-b11d17d7 ebs_kms_key_id:**** domain:bbstage-aws.local build_number:60 bbenvironment:bbstage ubuntu_version:16.04 bbrole:amicreate region:eu-west-1 instance_size:m4.large bbowners:[email protected] subnet:subnet-1a9af053 aws_secret_key:<Filtered>]} AccessConfig:{AccessKey:<Filtered> CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-west-1 SecretKey:<Filtered> SkipValidation:false Token: session:0xc420478900} AMIConfig:{AMIName:encrypt-baseimage-ansible-bbstage-u16.04-60 AMIDescription:Base AMI for {{**** `bbenvironment`}} setup for ansible AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[encrypted:true ubunutu_version:{{**** `ubuntu_version`}} Name:cis-encrypt-baseimage-ansible-{{**** `bbenvironment`}}-u{{**** `ubuntu_version`}}-{{**** `build_number`}} Environment:{{**** `bbenvironment`}} bbowners:{{**** `bbowners`}} terraform:packer consul_join:false] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:true AMIKmsKeyId:**** AMIRegionKMSKeyIDs:map[] SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[{DeleteOnTermination:true DeviceName:/dev/sda1 Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:15}]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:m4.large RunTags:map[bbowners:{{**** `bbowners`}} Name:{{**** `bbenvironment`}}-{{**** `bblocation`}}-{{**** `bbrole`}}-{{**** `build_number`}} bbrole:{{**** `bbrole`}} bblocation:{{**** `bblocation`}} build:{{**** `build_number`}} bbservice:packer bbenvironment:{{**** `bbenvironment`}} consul_join:false terraform:packer] SourceAmi:ami-b11d17d7 SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId:subnet-1a9af053 TemporaryKeyPairName:packer_5a1d99e6-14fa-b0fc-7207-1fb2a16f9ba3 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId:vpc-22aadf45 InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ubuntu SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:2h46m40s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0xc5f0e0] UserVariables:map[bbrole:amicreate ubuntu_code:xenial bbenvironment:bbstage subnet:subnet-1a9af053 ebs_kms_key_id:**** bblocation:aws ubuntu_version:16.04 domain:bbstage-aws.local build_number:60 vpc:vpc-22aadf45 instance_size:m4.large aws_access_key:<Filtered> ami:ami-b11d17d7 region:eu-west-1 bbowners:[email protected] aws_secret_key:<Filtered>] EnableEnv:false BuildName:amazon BuildType:amazon-ebs TemplatePath:/home/ubuntu/workspace/BBSTAGE-AMI-ANSIBLE-BASED-U16/ami/packer_config/ansible_base_ami.json}} | |
2017/11/28 17:16:22 Parallelization disabled, waiting for build to finish: amazon | |
2017/11/28 17:16:22 Starting build run: amazon | |
2017/11/28 17:16:22 Running builder: amazon-ebs | |
2017/11/28 17:16:22 [INFO] (telemetry) Starting builder amazon-ebs | |
2017/11/28 17:16:22 packer: 2017/11/28 17:16:22 [INFO] Finding AZ and VpcId for the given subnet 'subnet-1a9af053' | |
2017/11/28 17:16:23 packer: 2017/11/28 17:16:23 [INFO] AvailabilityZone found: 'eu-west-1b' | |
2017/11/28 17:16:23 ui: ==> amazon: Prevalidating AMI Name: encrypt-baseimage-ansible-bbstage-u16.04-60 | |
==> amazon: Prevalidating AMI Name: encrypt-baseimage-ansible-bbstage-u16.04-60 | |
2017/11/28 17:16:24 packer: 2017/11/28 17:16:24 Using AMI Filters { | |
2017/11/28 17:16:24 packer: ImageIds: ["ami-b11d17d7"] | |
2017/11/28 17:16:24 packer: } | |
2017/11/28 17:16:24 ui: amazon: Found Image ID: ami-b11d17d7 | |
amazon: Found Image ID: ami-b11d17d7 | |
2017/11/28 17:16:24 ui: ==> amazon: Creating temporary keypair: packer_5a1d99e6-14fa-b0fc-7207-1fb2a16f9ba3 | |
==> amazon: Creating temporary keypair: packer_5a1d99e6-14fa-b0fc-7207-1fb2a16f9ba3 | |
2017/11/28 17:16:24 ui: ==> amazon: Creating temporary security group for this instance: packer_5a1d99e8-23bc-bdec-847f-5573266af495 | |
==> amazon: Creating temporary security group for this instance: packer_5a1d99e8-23bc-bdec-847f-5573266af495 | |
2017/11/28 17:16:24 ui: ==> amazon: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group... | |
==> amazon: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group... | |
2017/11/28 17:16:24 packer: 2017/11/28 17:16:24 [DEBUG] Waiting for temporary security group: sg-23fd6358 | |
2017/11/28 17:16:24 packer: 2017/11/28 17:16:24 [DEBUG] Found security group sg-23fd6358 | |
2017/11/28 17:16:24 ui: ==> amazon: Launching a source AWS instance... | |
==> amazon: Launching a source AWS instance... | |
2017/11/28 17:16:24 ui: ==> amazon: Adding tags to source instance | |
==> amazon: Adding tags to source instance | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "bbenvironment": "bbstage" | |
amazon: Adding tag: "bbenvironment": "bbstage" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "consul_join": "false" | |
amazon: Adding tag: "consul_join": "false" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "terraform": "packer" | |
amazon: Adding tag: "terraform": "packer" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "bbservice": "packer" | |
amazon: Adding tag: "bbservice": "packer" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "bbowners": "[email protected]" | |
amazon: Adding tag: "bbowners": "[email protected]" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "Name": "bbstage-aws-amicreate-60" | |
amazon: Adding tag: "Name": "bbstage-aws-amicreate-60" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "bbrole": "amicreate" | |
amazon: Adding tag: "bbrole": "amicreate" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "bblocation": "aws" | |
amazon: Adding tag: "bblocation": "aws" | |
amazon: Adding tag: "build": "60" | |
2017/11/28 17:16:24 ui: amazon: Adding tag: "build": "60" | |
2017/11/28 17:16:25 ui: amazon: Instance ID: i-091b7f783043a9444 | |
amazon: Instance ID: i-091b7f783043a9444 | |
==> amazon: Waiting for instance (i-091b7f783043a9444) to become ready... | |
2017/11/28 17:16:25 ui: ==> amazon: Waiting for instance (i-091b7f783043a9444) to become ready... | |
2017/11/28 17:16:25 packer: 2017/11/28 17:16:25 Waiting for state to become: running | |
2017/11/28 17:16:25 packer: 2017/11/28 17:16:25 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS) | |
2017/11/28 17:16:25 packer: 2017/11/28 17:16:25 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS) | |
2017/11/28 17:16:42 packer: 2017/11/28 17:16:42 [INFO] Not using winrm communicator, skipping get password... | |
2017/11/28 17:16:42 packer: 2017/11/28 17:16:42 [INFO] Waiting for SSH, up to timeout: 2h46m40s | |
==> amazon: Waiting for SSH to become available... | |
2017/11/28 17:16:42 ui: ==> amazon: Waiting for SSH to become available... | |
2017/11/28 17:16:57 packer: 2017/11/28 17:16:57 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.154.130.179:22: i/o timeout | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [INFO] Attempting SSH connection... | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 reconnecting to TCP connection for SSH | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 handshaking with SSH | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 handshake complete! | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 opening new ssh session | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [INFO] agent forwarding enabled | |
2017/11/28 17:17:02 ui: ==> amazon: Connected to SSH! | |
==> amazon: Connected to SSH! | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Running the provision hook | |
2017/11/28 17:17:02 [INFO] (telemetry) Starting provisioner shell | |
2017/11/28 17:17:02 ui: ==> amazon: Provisioning with shell script: /tmp/packer-shell439512736 | |
==> amazon: Provisioning with shell script: /tmp/packer-shell439512736 | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Opening /tmp/packer-shell439512736 for reading | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [INFO] 2617 bytes written for 'uploadData' | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 opening new ssh session | |
2017/11/28 17:17:02 [INFO] 2617 bytes written for 'uploadData' | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Starting remote scp process: scp -vt /tmp | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Started SCP session, beginning transfers... | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Copying input data into temporary file so we can read the length | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [DEBUG] scp: Uploading script_7787.sh: perms=C0644 size=2617 | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 SCP session complete, closing stdin pipe. | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 Waiting for SSH session to complete. | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 scp stderr (length 32): Sink: C0644 2617 script_7787.sh | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 opening new ssh session | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 starting remote command: chmod 0755 /tmp/script_7787.sh | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [INFO] RPC endpoint: Communicator ended with: 0 | |
2017/11/28 17:17:02 [INFO] RPC client: Communicator ended with: 0 | |
2017/11/28 17:17:02 [INFO] RPC endpoint: Communicator ended with: 0 | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 [INFO] RPC client: Communicator ended with: 0 | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 opening new ssh session | |
2017/11/28 17:17:02 packer: 2017/11/28 17:17:02 starting remote command: AWS_ACCESS_KEY_ID='****' AWS_DEFAULT_REGION='eu-west-1' AWS_SECRET_ACCESS_KEY='****' BBENVIRONMENT='bbstage' BBLOCATION='aws' BBROLE='amicreate' BUILD_NUMBER='60' DOMAIN='bbstage-aws.local' PACKER_BUILDER_TYPE='amazon-ebs' PACKER_BUILD_NAME='amazon' sudo -n -E -s bash '/tmp/script_7787.sh' | |
2017/11/28 17:17:02 ui: amazon: sudo: unable to resolve host ip-192-168-0-159 | |
amazon: sudo: unable to resolve host ip-192-168-0-159 | |
2017/11/28 17:17:02 ui: amazon: ########## Checking SSHD Config ########## | |
amazon: ########## Checking SSHD Config ########## | |
..... Removed lots of other lines | |
2017/11/28 17:22:40 ui: amazon: TASK [bb.perlbrew : perlbrew patch perl] *************************************** | |
amazon: TASK [bb.perlbrew : perlbrew patch perl] *************************************** | |
2017/11/28 17:22:40 ui: amazon: task path: /srv/ansible/roles/bb.perlbrew/tasks/main.yml:56 | |
amazon: task path: /srv/ansible/roles/bb.perlbrew/tasks/main.yml:56 | |
2017/11/28 17:22:40 ui: amazon: Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py | |
amazon: Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> ESTABLISH LOCAL CONNECTION FOR USER: root | |
amazon: <bbstage-aws-amicreate> ESTABLISH LOCAL CONNECTION FOR USER: root | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'echo ~ && sleep 0' | |
amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'echo ~ && sleep 0' | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/ansible-tmp-1511889761.33-211439661725107 `" && echo ansible-tmp-1511889761.33-211439661725107="` echo /tmp/ansible-tmp-1511889761.33-211439661725107 `" ) && sleep 0' | |
amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/ansible-tmp-1511889761.33-211439661725107 `" && echo ansible-tmp-1511889761.33-211439661725107="` echo /tmp/ansible-tmp-1511889761.33-211439661725107 `" ) && sleep 0' | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> PUT /tmp/tmp5b_GtQ TO /tmp/ansible-tmp-1511889761.33-211439661725107/command.py | |
amazon: <bbstage-aws-amicreate> PUT /tmp/tmp5b_GtQ TO /tmp/ansible-tmp-1511889761.33-211439661725107/command.py | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'setfacl -m u:broadbean:r-x /tmp/ansible-tmp-1511889761.33-211439661725107/ /tmp/ansible-tmp-1511889761.33-211439661725107/command.py && sleep 0' | |
amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'setfacl -m u:broadbean:r-x /tmp/ansible-tmp-1511889761.33-211439661725107/ /tmp/ansible-tmp-1511889761.33-211439661725107/command.py && sleep 0' | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'sudo -H -S -n -u broadbean /bin/sh -c '"'"'echo BECOME-SUCCESS-iygtppisohnqgjwmusjrpqszijkyejzy; /usr/bin/python /tmp/ansible-tmp-1511889761.33-211439661725107/command.py'"'"' && sleep 0' | |
amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'sudo -H -S -n -u broadbean /bin/sh -c '"'"'echo BECOME-SUCCESS-iygtppisohnqgjwmusjrpqszijkyejzy; /usr/bin/python /tmp/ansible-tmp-1511889761.33-211439661725107/command.py'"'"' && sleep 0' | |
2017/11/28 17:22:40 ui: amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'rm -f -r /tmp/ansible-tmp-1511889761.33-211439661725107/ > /dev/null 2>&1 && sleep 0' | |
amazon: <bbstage-aws-amicreate> EXEC /bin/sh -c 'rm -f -r /tmp/ansible-tmp-1511889761.33-211439661725107/ > /dev/null 2>&1 && sleep 0' | |
2017/11/28 17:22:40 ui: amazon: changed: [bbstage-aws-amicreate] => { | |
amazon: changed: [bbstage-aws-amicreate] => { | |
2017/11/28 17:22:40 ui: amazon: "changed": true, | |
amazon: "changed": true, | |
2017/11/28 17:22:40 ui: amazon: "cmd": [ | |
amazon: "cmd": [ | |
2017/11/28 17:22:40 ui: amazon: "/bin/bash", | |
amazon: "/bin/bash", | |
2017/11/28 17:22:40 ui: amazon: "-c", | |
amazon: "-c", | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 Remote command exited without exit status or exit signal. | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 [INFO] RPC endpoint: Communicator ended with: 2300218 | |
2017/11/28 17:27:40 [INFO] 1444098 bytes written for 'stdout' | |
2017/11/28 17:27:40 [INFO] 2756 bytes written for 'stderr' | |
2017/11/28 17:27:40 [INFO] RPC client: Communicator ended with: 2300218 | |
2017/11/28 17:27:40 [INFO] RPC endpoint: Communicator ended with: 2300218 | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 [INFO] 1444098 bytes written for 'stdout' | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 [INFO] 2756 bytes written for 'stderr' | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 [INFO] RPC client: Communicator ended with: 2300218 | |
2017/11/28 17:27:40 ui: amazon: "umask 022; /usr/bin/env SHELL=/bin/bash PERLBREW_ROOT=/home/broadbean/perl5/perlbrew /bin/perlbrew install-patch | |
amazon: "umask 022; /usr/bin/env SHELL=/bin/bash PERLBREW_ROOT=/home/broadbean/perl5/perlbrew /bin/perlbrew install-patch | |
2017/11/28 17:27:40 [INFO] (telemetry) ending shell | |
2017/11/28 17:27:40 [INFO] (telemetry) found error: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
2017/11/28 17:27:40 ui: ==> amazon: Terminating the source AWS instance... | |
==> amazon: Terminating the source AWS instance... | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 Waiting for state to become: terminated | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS) | |
2017/11/28 17:27:40 packer: 2017/11/28 17:27:40 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS) | |
2017/11/28 17:28:07 ui: ==> amazon: Cleaning up any extra volumes... | |
==> amazon: Cleaning up any extra volumes... | |
2017/11/28 17:28:07 ui: ==> amazon: No volumes to clean up, skipping | |
==> amazon: No volumes to clean up, skipping | |
2017/11/28 17:28:07 ui: ==> amazon: Deleting temporary security group... | |
==> amazon: Deleting temporary security group... | |
2017/11/28 17:28:07 ui: ==> amazon: Deleting temporary keypair... | |
==> amazon: Deleting temporary keypair... | |
2017/11/28 17:28:07 [INFO] (telemetry) ending amazon-ebs | |
2017/11/28 17:28:07 [INFO] (telemetry) found error: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
2017/11/28 17:28:07 ui error: Build 'amazon' errored: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
2017/11/28 17:28:07 Waiting on builds to complete... | |
2017/11/28 17:28:07 Builds completed. Waiting on interrupt barrier... | |
2017/11/28 17:28:07 machine readable: error-count []string{"1"} | |
2017/11/28 17:28:07 ui error: | |
==> Some builds didn't complete successfully and had errors: | |
2017/11/28 17:28:07 machine readable: amazon,error []string{"Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `\"expect_disconnect\": true` to the shell provisioner parameters."} | |
2017/11/28 17:28:07 ui error: --> amazon: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
2017/11/28 17:28:07 ui: | |
==> Builds finished but no artifacts were created. | |
Build 'amazon' errored: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
==> Some builds didn't complete successfully and had errors: | |
2017/11/28 17:28:07 [INFO] (telemetry) Finalizing. | |
--> amazon: Script disconnected unexpectedly. If you expected your script to disconnect, i.e. from a restart, you can try adding `"expect_disconnect": true` to the shell provisioner parameters. | |
==> Builds finished but no artifacts were created. | |
2017/11/28 17:28:08 waiting for all plugin processes to complete... | |
2017/11/28 17:28:08 /usr/local/bin/packer: plugin process exited | |
2017/11/28 17:28:08 /usr/local/bin/packer: plugin process exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment