Skip to content

Instantly share code, notes, and snippets.

@clounie
Last active July 14, 2016 17:34
Show Gist options
  • Save clounie/dce56ad8107a33cf60b3c362e17210cf to your computer and use it in GitHub Desktop.
Save clounie/dce56ad8107a33cf60b3c362e17210cf to your computer and use it in GitHub Desktop.
Trying with user account + service account combo
$ PACKER_LOG=1 packer build template.json
2016/07/14 11:12:30 [INFO] Packer version: 0.10.1
2016/07/14 11:12:30 Packer Target OS/Arch: darwin amd64
2016/07/14 11:12:30 Built with Go Version: go1.6.2
2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 Using internal plugin for amazon-chroot
2016/07/14 11:12:30 Using internal plugin for amazon-instance
2016/07/14 11:12:30 Using internal plugin for openstack
2016/07/14 11:12:30 Using internal plugin for virtualbox-iso
2016/07/14 11:12:30 Using internal plugin for amazon-ebs
2016/07/14 11:12:30 Using internal plugin for docker
2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 Using internal plugin for googlecompute
2016/07/14 11:12:30 Using internal plugin for parallels-pvm
2016/07/14 11:12:30 Using internal plugin for qemu
2016/07/14 11:12:30 Using internal plugin for vmware-iso
2016/07/14 11:12:30 Using internal plugin for azure-arm
2016/07/14 11:12:30 Using internal plugin for digitalocean
2016/07/14 11:12:30 Using internal plugin for null
2016/07/14 11:12:30 Using internal plugin for parallels-iso
2016/07/14 11:12:30 Using internal plugin for virtualbox-ovf
2016/07/14 11:12:30 Using internal plugin for vmware-vmx
2016/07/14 11:12:30 Using internal plugin for chef-solo
2016/07/14 11:12:30 Using internal plugin for salt-masterless
2016/07/14 11:12:30 Using internal plugin for shell
2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 Using internal plugin for windows-restart
2016/07/14 11:12:30 Using internal plugin for puppet-server
2016/07/14 11:12:30 Using internal plugin for windows-shell
2016/07/14 11:12:30 Using internal plugin for ansible
2016/07/14 11:12:30 Using internal plugin for ansible-local
2016/07/14 11:12:30 Using internal plugin for chef-client
2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 Using internal plugin for powershell
2016/07/14 11:12:30 Using internal plugin for puppet-masterless
2016/07/14 11:12:30 Using internal plugin for docker-push
2016/07/14 11:12:30 Using internal plugin for docker-save
2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 Using internal plugin for vagrant-cloud
2016/07/14 11:12:30 Using internal plugin for atlas
2016/07/14 11:12:30 Using internal plugin for compress
2016/07/14 11:12:30 Using internal plugin for docker-import
2016/07/14 11:12:30 Using internal plugin for docker-tag
2016/07/14 11:12:30 Using internal plugin for vagrant
2016/07/14 11:12:30 Using internal plugin for vsphere
2016/07/14 11:12:30 Using internal plugin for amazon-import
2016/07/14 11:12:30 Using internal plugin for artifice
2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 Attempting to open config file: /Users/<user>/.packerconfig
2016/07/14 11:12:30 [WARN] Config file doesn't exist: /Users/<user>/.packerconfig
2016/07/14 11:12:30 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-instance:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance openstack:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack virtualbox-ovf:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-chroot:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot qemu:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu parallels-pvm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-ebs:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute vmware-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso azure-arm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm digitalocean:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean null:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null virtualbox-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso vmware-vmx:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx parallels-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso docker:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker] PostProcessors:map[docker-push:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-cloud:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud atlas:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas compress:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-tag:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere docker-save:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local amazon-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice] Provisioners:map[ansible:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo salt-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart powershell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server windows-shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell chef-client:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client]}
2016/07/14 11:12:30 Setting cache directory: /Users/<user>/dev/labs/packer-debug/packer_cache
2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 Loading builder: googlecompute
2016/07/14 11:12:30 Plugin could not be found. Checking same directory as executable.
2016/07/14 11:12:30 Current exe path: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 Creating plugin client for path: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 Starting plugin: /usr/local/Cellar/packer/0.10.1/bin/packer []string{"/usr/local/Cellar/packer/0.10.1/bin/packer", "plugin", "packer-builder-googlecompute"}
2016/07/14 11:12:30 Waiting for RPC address for: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] Packer version: 0.10.1
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Packer Target OS/Arch: darwin amd64
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Built with Go Version: go1.6.2
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for virtualbox-ovf
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for azure-arm
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for digitalocean
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for null
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for parallels-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for googlecompute
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for openstack
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for virtualbox-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-chroot
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-ebs
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for parallels-pvm
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-instance
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for qemu
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vmware-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vmware-vmx
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for ansible
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for powershell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for puppet-server
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for windows-restart
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for ansible-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for chef-client
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for chef-solo
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for puppet-masterless
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for salt-masterless
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for windows-shell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for compress
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vagrant
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vagrant-cloud
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vsphere
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-import
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for artifice
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for atlas
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-import
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-push
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-save
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-tag
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Attempting to open config file: /Users/<user>/.packerconfig
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [WARN] Config file doesn't exist: /Users/<user>/.packerconfig
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[digitalocean:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean null:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null parallels-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso vmware-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx virtualbox-ovf:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf docker:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker openstack:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-chroot:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file parallels-pvm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm googlecompute:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-instance:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm virtualbox-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso qemu:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu] PostProcessors:map[vsphere:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere amazon-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice atlas:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-push:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push compress:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud docker-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant] Provisioners:map[shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local salt-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file powershell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server chef-client:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell windows-shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible windows-restart:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart ansible-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local]}
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Setting cache directory: /Users/<user>/dev/labs/packer-debug/packer_cache
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 args: []string{"packer-builder-googlecompute"}
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin minimum port: 10000
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin maximum port: 25000
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin address: unix /var/folders/sr/xh6nv1850jn7q7d3k0rvw2m00000gn/T/packer-plugin954004200
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Waiting for connection...
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Serving a plugin connection...
2016/07/14 11:12:30 Loading provisioner: file
2016/07/14 11:12:30 Plugin could not be found. Checking same directory as executable.
2016/07/14 11:12:30 Current exe path: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 Creating plugin client for path: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 Starting plugin: /usr/local/Cellar/packer/0.10.1/bin/packer []string{"/usr/local/Cellar/packer/0.10.1/bin/packer", "plugin", "packer-provisioner-file"}
2016/07/14 11:12:30 Waiting for RPC address for: /usr/local/Cellar/packer/0.10.1/bin/packer
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] Packer version: 0.10.1
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Packer Target OS/Arch: darwin amd64
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Built with Go Version: go1.6.2
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for azure-arm
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for qemu
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-ebs
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for openstack
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for parallels-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for parallels-pvm
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for googlecompute
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for null
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vmware-vmx
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-chroot
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-instance
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for digitalocean
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for virtualbox-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for virtualbox-ovf
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vmware-iso
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for windows-restart
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for windows-shell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for ansible-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for chef-client
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for file
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for powershell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for salt-masterless
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for ansible
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for chef-solo
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for puppet-masterless
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for puppet-server
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-push
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for shell-local
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vagrant-cloud
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for amazon-import
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for atlas
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for compress
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-tag
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vagrant
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for vsphere
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for artifice
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-import
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Using internal plugin for docker-save
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Attempting to open config file: /Users/<user>/.packerconfig
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [WARN] Config file doesn't exist: /Users/<user>/.packerconfig
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[qemu:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu docker:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker parallels-pvm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm googlecompute:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute vmware-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso azure-arm:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm amazon-ebs:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-instance:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance virtualbox-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso openstack:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack null:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null amazon-chroot:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot digitalocean:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file parallels-iso:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso vmware-vmx:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx virtualbox-ovf:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf] PostProcessors:map[atlas:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas compress:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-save:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-push:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant-cloud:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud amazon-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-import:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-tag:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere artifice:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice] Provisioners:map[chef-client:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client salt-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless chef-solo:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-masterless:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless ansible:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible puppet-server:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible-local:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local file:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file powershell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell shell:/usr/local/Cellar/packer/0.10.1/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell]}
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Setting cache directory: /Users/<user>/dev/labs/packer-debug/packer_cache
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 args: []string{"packer-provisioner-file"}
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin minimum port: 10000
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin maximum port: 25000
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Detected home directory from env var: /Users/<user>
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Plugin address: unix /var/folders/sr/xh6nv1850jn7q7d3k0rvw2m00000gn/T/packer-plugin562069620
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Waiting for connection...
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 Serving a plugin connection...
2016/07/14 11:12:30 ui: googlecompute output will be in this color.
2016/07/14 11:12:30 ui:
2016/07/14 11:12:30 Build debug mode: false
2016/07/14 11:12:30 Force build: false
2016/07/14 11:12:30 Preparing build: googlecompute
googlecompute output will be in this color.
2016/07/14 11:12:30 Waiting on builds to complete...
2016/07/14 11:12:30 Starting build run: googlecompute
2016/07/14 11:12:30 Running builder: googlecompute
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] Requesting Google token via AccountFile...
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] -- Email: <serice-account>@<my-gcp-project>.iam.gserviceaccount.com
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.full_control]
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] -- Private Key Length: 1704
2016/07/14 11:12:30 packer: 2016/07/14 11:12:30 [INFO] Instantiating GCE client...
2016/07/14 11:12:30 ui: ==> googlecompute: Checking image does not exist...
==> googlecompute: Checking image does not exist...
2016/07/14 11:12:31 ui: ==> googlecompute: Creating temporary SSH key for instance...
==> googlecompute: Creating temporary SSH key for instance...
2016/07/14 11:12:31 ui: ==> googlecompute: Creating instance...
==> googlecompute: Creating instance...
2016/07/14 11:12:31 ui: googlecompute: Loading zone: us-east1-d
googlecompute: Loading zone: us-east1-d
2016/07/14 11:12:31 ui: googlecompute: Loading image: debian-8-jessie-v20160418 in project <my-gcp-project>
googlecompute: Loading image: debian-8-jessie-v20160418 in project <my-gcp-project>
2016/07/14 11:12:31 ui: googlecompute: Loading machine type: n1-standard-1
googlecompute: Loading machine type: n1-standard-1
2016/07/14 11:12:32 ui: googlecompute: Loading network: default
googlecompute: Loading network: default
2016/07/14 11:12:32 ui: googlecompute: Requesting instance creation...
googlecompute: Requesting instance creation...
2016/07/14 11:12:33 ui: googlecompute: Waiting for creation operation to complete...
googlecompute: Waiting for creation operation to complete...
2016/07/14 11:12:49 ui: googlecompute: Instance has been created!
googlecompute: Instance has been created!
2016/07/14 11:12:49 ui: ==> googlecompute: Waiting for the instance to become running...
==> googlecompute: Waiting for the instance to become running...
2016/07/14 11:12:50 ui: googlecompute: IP: 104.196.59.62
googlecompute: IP: 104.196.59.62
2016/07/14 11:12:50 packer: 2016/07/14 11:12:50 [INFO] Waiting for SSH, up to timeout: 5m0s
2016/07/14 11:12:50 ui: ==> googlecompute: Waiting for SSH to become available...
==> googlecompute: Waiting for SSH to become available...
2016/07/14 11:13:05 packer: 2016/07/14 11:13:05 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 104.196.59.62:22: i/o timeout
2016/07/14 11:13:25 packer: 2016/07/14 11:13:25 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 104.196.59.62:22: i/o timeout
2016/07/14 11:13:30 packer: 2016/07/14 11:13:30 [INFO] Attempting SSH connection...
2016/07/14 11:13:30 packer: 2016/07/14 11:13:30 reconnecting to TCP connection for SSH
2016/07/14 11:13:30 packer: 2016/07/14 11:13:30 handshaking with SSH
2016/07/14 11:13:30 packer: 2016/07/14 11:13:30 handshake complete!
2016/07/14 11:13:30 packer: 2016/07/14 11:13:30 opening new ssh session
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 [INFO] agent forwarding enabled
2016/07/14 11:13:31 ui: ==> googlecompute: Connected to SSH!
==> googlecompute: Connected to SSH!
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 Running the provision hook
2016/07/14 11:13:31 ui: ==> googlecompute: Uploading ./myTestFile.log => /etc/myTestFile.log
==> googlecompute: Uploading ./myTestFile.log => /etc/myTestFile.log
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 [INFO] 10 bytes written for 'uploadData'
2016/07/14 11:13:31 [INFO] 10 bytes written for 'uploadData'
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 opening new ssh session
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 Starting remote scp process: scp -vt /etc
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 Started SCP session, beginning transfers...
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 Copying input data into temporary file so we can read the length
2016/07/14 11:13:31 packer: 2016/07/14 11:13:31 [DEBUG] scp: Uploading myTestFile.log: perms=C0644 size=10
2016/07/14 11:13:31 ui error: ==> googlecompute: Upload failed: scp: /etc/myTestFile.log: Permission denied
==> googlecompute: Upload failed: scp: /etc/myTestFile.log: Permission denied
2016/07/14 11:13:31 ui: ==> googlecompute: Deleting instance...
==> googlecompute: Deleting instance...
2016/07/14 11:13:54 ui: googlecompute: Instance has been deleted!
2016/07/14 11:13:54 ui: ==> googlecompute: Deleting disk...
googlecompute: Instance has been deleted!
==> googlecompute: Deleting disk...
2016/07/14 11:13:57 ui: googlecompute: Disk has been deleted!
googlecompute: Disk has been deleted!
2016/07/14 11:13:57 ui error: Build 'googlecompute' errored: scp: /etc/myTestFile.log: Permission denied
2016/07/14 11:13:57 Builds completed. Waiting on interrupt barrier...
2016/07/14 11:13:57 machine readable: error-count []string{"1"}
2016/07/14 11:13:57 ui error:
==> Some builds didn't complete successfully and had errors:
2016/07/14 11:13:57 machine readable: googlecompute,error []string{"scp: /etc/myTestFile.log: Permission denied"}
2016/07/14 11:13:57 ui error: --> googlecompute: scp: /etc/myTestFile.log: Permission denied
2016/07/14 11:13:57 ui:
==> Builds finished but no artifacts were created.
2016/07/14 11:13:57 waiting for all plugin processes to complete...
Build 'googlecompute' errored: scp: /etc/myTestFile.log: Permission denied
==> Some builds didn't complete successfully and had errors:
--> googlecompute: scp: /etc/myTestFile.log: Permission denied
==> Builds finished but no artifacts were created.
2016/07/14 11:13:57 /usr/local/Cellar/packer/0.10.1/bin/packer: plugin process exited
2016/07/14 11:13:57 /usr/local/Cellar/packer/0.10.1/bin/packer: plugin process exited
-> [1]
{
"provisioners": [
{
"type": "file",
"source": "./myTestFile.log",
"destination": "/etc/myTestFile.log",
"direction": "upload"
}
],
"builders": [
{
"type": "googlecompute",
"image_name": "debian-ssh-test-image",
"project_id": "my-gce-project",
"zone": "us-east1-d",
"account_file": "gce-service-account-creds.json",
"source_image": "debian-8-jessie-v20160418",
"metadata": {
"startup-script-url": "gs://gcua-beta/startup.sh",
"ssh-keys": "",
"sshKeys": ""
},
"ssh_username": "my-user-account (linked to service account w/project Editor permissions)"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment