Skip to content

Instantly share code, notes, and snippets.

@alexgottschalkmedal
Created April 27, 2018 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexgottschalkmedal/a9f2d983eb505cdbf804f0e7b0cacee0 to your computer and use it in GitHub Desktop.
Save alexgottschalkmedal/a9f2d983eb505cdbf804f0e7b0cacee0 to your computer and use it in GitHub Desktop.
packer debug log
$ PACKER_LOG=1 packer-1.2 build -var-file=./vars/prod_xenial_build.json debug.json
2018/04/27 13:05:56 [INFO] Packer version: 1.2.2
2018/04/27 13:05:56 Packer Target OS/Arch: darwin amd64
2018/04/27 13:05:56 Built with Go Version: go1.10
2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 Using internal plugin for azure-arm
2018/04/27 13:05:56 Using internal plugin for ncloud
2018/04/27 13:05:56 Using internal plugin for null
2018/04/27 13:05:56 Using internal plugin for virtualbox-ovf
2018/04/27 13:05:56 Using internal plugin for scaleway
2018/04/27 13:05:56 Using internal plugin for alicloud-ecs
2018/04/27 13:05:56 Using internal plugin for amazon-ebs
2018/04/27 13:05:56 Using internal plugin for amazon-ebssurrogate
2018/04/27 13:05:56 Using internal plugin for amazon-instance
2018/04/27 13:05:56 Using internal plugin for cloudstack
2018/04/27 13:05:56 Using internal plugin for digitalocean
2018/04/27 13:05:56 Using internal plugin for profitbricks
2018/04/27 13:05:56 Using internal plugin for file
2018/04/27 13:05:56 Using internal plugin for lxd
2018/04/27 13:05:56 Using internal plugin for triton
2018/04/27 13:05:56 Using internal plugin for amazon-ebsvolume
2018/04/27 13:05:56 Using internal plugin for hyperv-iso
2018/04/27 13:05:56 Using internal plugin for oracle-oci
2018/04/27 13:05:56 Using internal plugin for vmware-vmx
2018/04/27 13:05:56 Using internal plugin for amazon-chroot
2018/04/27 13:05:56 Using internal plugin for lxc
2018/04/27 13:05:56 Using internal plugin for openstack
2018/04/27 13:05:56 Using internal plugin for oracle-classic
2018/04/27 13:05:56 Using internal plugin for parallels-iso
2018/04/27 13:05:56 Using internal plugin for parallels-pvm
2018/04/27 13:05:56 Using internal plugin for qemu
2018/04/27 13:05:56 Using internal plugin for docker
2018/04/27 13:05:56 Using internal plugin for googlecompute
2018/04/27 13:05:56 Using internal plugin for hyperv-vmcx
2018/04/27 13:05:56 Using internal plugin for oneandone
2018/04/27 13:05:56 Using internal plugin for virtualbox-iso
2018/04/27 13:05:56 Using internal plugin for vmware-iso
2018/04/27 13:05:56 Using internal plugin for shell
2018/04/27 13:05:56 Using internal plugin for windows-shell
2018/04/27 13:05:56 Using internal plugin for chef-client
2018/04/27 13:05:56 Using internal plugin for chef-solo
2018/04/27 13:05:56 Using internal plugin for file
2018/04/27 13:05:56 Using internal plugin for puppet-server
2018/04/27 13:05:56 Using internal plugin for ansible-local
2018/04/27 13:05:56 Using internal plugin for converge
2018/04/27 13:05:56 Using internal plugin for windows-restart
2018/04/27 13:05:56 Using internal plugin for puppet-masterless
2018/04/27 13:05:56 Using internal plugin for salt-masterless
2018/04/27 13:05:56 Using internal plugin for ansible
2018/04/27 13:05:56 Using internal plugin for powershell
2018/04/27 13:05:56 Using internal plugin for shell-local
2018/04/27 13:05:56 Using internal plugin for alicloud-import
2018/04/27 13:05:56 Using internal plugin for googlecompute-export
2018/04/27 13:05:56 Using internal plugin for manifest
2018/04/27 13:05:56 Using internal plugin for compress
2018/04/27 13:05:56 Using internal plugin for docker-save
2018/04/27 13:05:56 Using internal plugin for docker-tag
2018/04/27 13:05:56 Using internal plugin for vagrant-cloud
2018/04/27 13:05:56 Using internal plugin for vsphere-template
2018/04/27 13:05:56 Using internal plugin for amazon-import
2018/04/27 13:05:56 Using internal plugin for artifice
2018/04/27 13:05:56 Using internal plugin for atlas
2018/04/27 13:05:56 Using internal plugin for docker-import
2018/04/27 13:05:56 Using internal plugin for docker-push
2018/04/27 13:05:56 Using internal plugin for checksum
2018/04/27 13:05:56 Using internal plugin for shell-local
2018/04/27 13:05:56 Using internal plugin for vagrant
2018/04/27 13:05:56 Using internal plugin for vsphere
2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 Attempting to open config file: /Users/alexg/.packerconfig
2018/04/27 13:05:56 [WARN] Config file doesn't exist: /Users/alexg/.packerconfig
2018/04/27 13:05:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-instance:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance file:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file oracle-classic:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic googlecompute:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute virtualbox-ovf:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf alicloud-ecs:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs profitbricks:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks azure-arm:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm lxc:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc oneandone:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone triton:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-ebsvolume:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-chroot:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot docker:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker hyperv-vmcx:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx virtualbox-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso null:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null amazon-ebssurrogate:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate cloudstack:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack oracle-oci:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci openstack:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-ebs:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs hyperv-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso parallels-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso scaleway:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway digitalocean:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean vmware-iso:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso ncloud:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud lxd:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd vmware-vmx:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx parallels-pvm:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm qemu:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu] PostProcessors:map[compress:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress googlecompute-export:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export manifest:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest artifice:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice atlas:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas shell-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local alicloud-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import docker-save:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-push:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-cloud:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere-template:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template amazon-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-import:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import checksum:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vagrant:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere] Provisioners:map[windows-shell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell puppet-server:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server powershell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible shell:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart salt-masterless:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless puppet-masterless:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell-local:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-client:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo file:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file converge:/usr/local/bin/packer-1.2-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge]}
2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 Setting cache directory: /Users/alexg/workspace/medal/packer/packer_cache
2018/04/27 13:05:56 Loading builder: amazon-ebs
2018/04/27 13:05:56 Plugin could not be found. Checking same directory as executable.
2018/04/27 13:05:56 Current exe path: /usr/local/bin/packer-1.2
2018/04/27 13:05:56 Creating plugin client for path: /usr/local/bin/packer-1.2
2018/04/27 13:05:56 Starting plugin: /usr/local/bin/packer-1.2 []string{"/usr/local/bin/packer-1.2", "plugin", "packer-builder-amazon-ebs"}
2018/04/27 13:05:56 Waiting for RPC address for: /usr/local/bin/packer-1.2
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] Packer version: 1.2.2
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Packer Target OS/Arch: darwin amd64
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Built with Go Version: go1.10
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Attempting to open config file: /Users/alexg/.packerconfig
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [WARN] Config file doesn't exist: /Users/alexg/.packerconfig
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Setting cache directory: /Users/alexg/workspace/medal/packer/packer_cache
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 args: []string{"packer-builder-amazon-ebs"}
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Detected home directory from env var: /Users/alexg
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin minimum port: 10000
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin maximum port: 25000
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Plugin address: unix /var/folders/b9/fmsc1c555w92_cds53fwcsn40000gn/T/packer-plugin554575620
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Waiting for connection...
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Serving a plugin connection...
2018/04/27 13:05:56 ui: amazon-ebs output will be in this color.
2018/04/27 13:05:56 ui:
2018/04/27 13:05:56 Build debug mode: false
2018/04/27 13:05:56 Force build: false
2018/04/27 13:05:56 On error:
2018/04/27 13:05:56 Preparing build: amazon-ebs
amazon-ebs output will be in this color.
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[env:prod encrypted_ami:true kms_key_id:4617665e-aaca-4516-b9b6-83434811c391 ami_description:Medal Ubuntu Linux Production AMI ami_name_prefix:medal-prod subnet_id:subnet-8ce585c4 ami_os_string:xenial-16.04]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName:prod RawRegion:us-west-2 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} AMIConfig:{AMIName:medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556 AMIDescription:{{user `ami_description`}} AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId: AMIRegionKMSKeyIDs:map[] SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[{DeleteOnTermination:false DeviceName:/dev/sda1 Encrypted:true IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType: VolumeSize:8 KmsKeyId:4617665e-aaca-4516-b9b6-83434811c391}]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi: SourceAmiFilter:{Filters:map[0xc42051a9a0:0xc42051a9c0 0xc42051a920:0xc42051a940 0xc42051a960:0xc42051a980] Owners:[0xc42051aa40] MostRecent:true} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId:subnet-8ce585c4 TemporaryKeyPairName:packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1 UserData: UserDataFile: WindowsPasswordTimeout:20m0s VpcId: InstanceInitiatedShutdownBehavior:terminate Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ubuntu SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: SSHKeepAliveInterval:5s SSHReadWriteTimeout:0s WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHInterface:} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x1842090] UserVariables:map[ami_description:Medal Ubuntu Linux Production AMI ami_name_prefix:medal-prod subnet_id:subnet-8ce585c4 ami_os_string:xenial-16.04 env:prod encrypted_ami:true kms_key_id:4617665e-aaca-4516-b9b6-83434811c391] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/alexg/workspace/medal/packer/debug.json}}
2018/04/27 13:05:56 Waiting on builds to complete...
2018/04/27 13:05:56 Starting build run: amazon-ebs
2018/04/27 13:05:56 Running builder: amazon-ebs
2018/04/27 13:05:56 [INFO] (telemetry) Starting builder amazon-ebs
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 Found region us-west-2
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] AWS Auth provider used: "SharedConfigCredentials: /Users/alexg/.aws/credentials"
2018/04/27 13:05:56 packer-1.2: 2018/04/27 13:05:56 [INFO] Finding AZ and VpcId for the given subnet 'subnet-8ce585c4'
2018/04/27 13:05:57 packer-1.2: 2018/04/27 13:05:57 [INFO] AvailabilityZone found: 'us-west-2a'
2018/04/27 13:05:57 packer-1.2: 2018/04/27 13:05:57 [INFO] VpcId found: 'vpc-4e695128'
2018/04/27 13:05:57 ui: ==> amazon-ebs: Prevalidating AMI Name: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
==> amazon-ebs: Prevalidating AMI Name: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
2018/04/27 13:05:58 packer-1.2: 2018/04/27 13:05:58 Using AMI Filters {
2018/04/27 13:05:58 packer-1.2: Filters: [{
2018/04/27 13:05:58 packer-1.2: Name: "root-device-type",
2018/04/27 13:05:58 packer-1.2: Values: ["ebs"]
2018/04/27 13:05:58 packer-1.2: },{
2018/04/27 13:05:58 packer-1.2: Name: "virtualization-type",
2018/04/27 13:05:58 packer-1.2: Values: ["hvm"]
2018/04/27 13:05:58 packer-1.2: },{
2018/04/27 13:05:58 packer-1.2: Name: "name",
2018/04/27 13:05:58 packer-1.2: Values: ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
2018/04/27 13:05:58 packer-1.2: }],
2018/04/27 13:05:58 packer-1.2: Owners: ["099720109477"]
2018/04/27 13:05:58 packer-1.2: }
2018/04/27 13:06:01 ui: amazon-ebs: Found Image ID: ami-ca89eeb2
amazon-ebs: Found Image ID: ami-ca89eeb2
2018/04/27 13:06:01 ui: ==> amazon-ebs: Creating temporary keypair: packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1
==> amazon-ebs: Creating temporary keypair: packer_5ae382a4-2dd5-c734-0077-34bb68ba05d1
2018/04/27 13:06:01 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5ae382a9-3aa3-ff4d-079e-f5452e543b74
==> amazon-ebs: Creating temporary security group for this instance: packer_5ae382a9-3aa3-ff4d-079e-f5452e543b74
2018/04/27 13:06:01 ui: ==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
==> amazon-ebs: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group...
2018/04/27 13:06:01 packer-1.2: 2018/04/27 13:06:01 [DEBUG] Waiting for temporary security group: sg-9cf5a0e2
2018/04/27 13:06:01 packer-1.2: 2018/04/27 13:06:01 [DEBUG] Found security group sg-9cf5a0e2
2018/04/27 13:06:01 ui: ==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Launching a source AWS instance...
2018/04/27 13:06:01 ui: ==> amazon-ebs: Adding tags to source instance
==> amazon-ebs: Adding tags to source instance
2018/04/27 13:06:01 ui: amazon-ebs: Adding tag: "Name": "Packer Builder"
amazon-ebs: Adding tag: "Name": "Packer Builder"
2018/04/27 13:06:02 ui: amazon-ebs: Instance ID: i-092638fef83e64b85
amazon-ebs: Instance ID: i-092638fef83e64b85
2018/04/27 13:06:02 ui: ==> amazon-ebs: Waiting for instance (i-092638fef83e64b85) to become ready...
==> amazon-ebs: Waiting for instance (i-092638fef83e64b85) to become ready...
2018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [INFO] Not using winrm communicator, skipping get password...
2018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [INFO] Waiting for SSH, up to timeout: 5m0s
2018/04/27 13:06:33 ui: ==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Waiting for SSH to become available...
2018/04/27 13:06:33 packer-1.2: 2018/04/27 13:06:33 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 10.2.14.112:22: connect: connection refused
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [INFO] Attempting SSH connection...
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] reconnecting to TCP connection for SSH
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] handshaking with SSH
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] handshake complete!
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [DEBUG] Opening new ssh session
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 [INFO] agent forwarding enabled
2018/04/27 13:06:38 ui: ==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Connected to SSH!
2018/04/27 13:06:38 packer-1.2: 2018/04/27 13:06:38 Running the provision hook
2018/04/27 13:06:38 ui: ==> amazon-ebs: Stopping the source instance...
==> amazon-ebs: Stopping the source instance...
2018/04/27 13:06:38 ui: amazon-ebs: Stopping instance, attempt 1
amazon-ebs: Stopping instance, attempt 1
2018/04/27 13:06:39 ui: ==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Creating the AMI: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
2018/04/27 13:07:25 ui: ==> amazon-ebs: Creating the AMI: medal-prod_ubuntu-xenial-16.04-amd64-server_1524859556
2018/04/27 13:07:25 ui error: ==> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
==> amazon-ebs: status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
==> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
2018/04/27 13:07:25 ui: ==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
==> amazon-ebs: Terminating the source AWS instance...
2018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Waiting for state to become: terminated
2018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/04/27 13:07:25 packer-1.2: 2018/04/27 13:07:25 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2018/04/27 13:07:32 ui: ==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
2018/04/27 13:07:32 ui: ==> amazon-ebs: No volumes to clean up, skipping
2018/04/27 13:07:32 ui: ==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary security group...
2018/04/27 13:07:32 ui: ==> amazon-ebs: Deleting temporary keypair...
==> amazon-ebs: Deleting temporary keypair...
2018/04/27 13:07:32 [INFO] (telemetry) ending amazon-ebs
2018/04/27 13:07:32 ui error: Build 'amazon-ebs' errored: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
2018/04/27 13:07:32 Builds completed. Waiting on interrupt barrier...
2018/04/27 13:07:32 machine readable: error-count []string{"1"}
2018/04/27 13:07:32 ui error:
==> Some builds didn't complete successfully and had errors:
2018/04/27 13:07:32 machine readable: amazon-ebs,error []string{"Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized\n\tstatus code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999"}
2018/04/27 13:07:32 ui error: --> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
2018/04/27 13:07:32 ui:
==> Builds finished but no artifacts were created.
2018/04/27 13:07:32 [INFO] (telemetry) Finalizing.
Build 'amazon-ebs' errored: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error creating AMI: UnknownParameter: The parameter KmsKeyId is not recognized
status code: 400, request id: c362f898-1c7a-44d0-9f82-c9b0ac155999
==> Builds finished but no artifacts were created.
2018/04/27 13:07:33 waiting for all plugin processes to complete...
2018/04/27 13:07:33 /usr/local/bin/packer-1.2: plugin process exited
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-west-2",
"instance_type": "t2.micro",
"subnet_id": "{{user `subnet_id`}}",
"ssh_username": "ubuntu",
"ami_description": "{{user `ami_description`}}",
"ami_name": "{{user `ami_name_prefix`}}_ubuntu-{{user `ami_os_string`}}-amd64-server_{{timestamp}}",
"profile": "{{user `env`}}",
"shutdown_behavior": "terminate",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/hvm-ssd/ubuntu-{{user `ami_os_string`}}-amd64-server-*",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"ami_block_device_mappings": [{
"device_name": "/dev/sda1",
"volume_size": 8,
"encrypted": true,
"kms_key_id": "{{user `kms_key_id`}}"
}]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment