hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.12k stars 3.33k forks source link

Upgrade packer 1.3.3 -> 1.3.4 breaks azure build #7279

Closed geertn closed 5 years ago

geertn commented 5 years ago

Upgrading packer to 1.3.4 breaks building an image in Azure. Packer 1.3.3 works.

Packer 1.3.4

(azure) geertn@isadjh:~/work-fl/packer$ packer-1.3.4 build az-baseline-centos_cap.json
azure-arm output will be in this color.

==> azure-arm: Running builder ...
==> azure-arm: Getting tokens using client bearer JWT
Build 'azure-arm' errored: parameter 'id' cannot be empty

==> Some builds didn't complete successfully and had errors:
--> azure-arm: parameter 'id' cannot be empty

==> Builds finished but no artifacts were created.

JSON

{
  "variables": {
    "vm_size": "Standard_DS2_v2",
    "subscription_id": "xxxxxxxxxxxxxxxxx",
    "build_resource_group_name": "vsxxx_packer_build",
    "managed_image_resource_group_name": "vsxxx_packer_images"
  },
  "builders": [{
    "type": "azure-arm",
    "subscription_id": "{{user `subscription_id`}}",

    "build_resource_group_name": "{{user `build_resource_group_name`}}",
    "managed_image_resource_group_name": "{{user `managed_image_resource_group_name`}}",
    "managed_image_name": "packer-centos-baseline",

    "os_type": "Linux",
    "image_publisher": "OpenLogic",
    "image_offer": "CentOS",
    "image_sku": "7.5",
    "image_version": "latest",
    "ssh_pty": "true",

    "azure_tags": {
      "task": "Image deployment"
    },

    "vm_size": "{{user `vm_size`}}"
  }],
  "provisioners": [
    {
      "type": "shell",
      "execute_command": "{{.Vars}} sudo -S -E bash '{{.Path}}'",
      "script": "scripts/ansible.sh",
      "expect_disconnect": "true"
    },
    {
      "type": "ansible-local",
      "playbook_dir": "../ansible",
      "playbook_file": "../ansible/idp-baseline.yml",
      "inventory_groups": "tag_ansible_hosts",
      "extra_arguments": [ "--extra-vars \"packer=yes\""]
    },
    {
      "type": "shell",
      "execute_command": "{{.Vars}} sudo -S -E bash '{{.Path}}'",
      "script": "scripts/ansible_cleanup.sh"
    },
    {
      "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
      "inline": [
        "/usr/sbin/waagent -force -deprovision && export HISTSIZE=0 && sync"
      ],
      "inline_shebang": "/bin/sh -x",
      "type": "shell",
      "skip_clean": true
    }
  ]
}

Debug output:

(azure) geertn@isadjh:~/work-fl/packer$ PACKER_LOG=1 packer-1.3.4 build az-baseline-centos_cap.json
2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 Using internal plugin for digitalocean
2019/02/05 13:28:05 Using internal plugin for hyperv-iso
2019/02/05 13:28:05 Using internal plugin for null
2019/02/05 13:28:05 Using internal plugin for oneandone
2019/02/05 13:28:05 Using internal plugin for openstack
2019/02/05 13:28:05 Using internal plugin for scaleway
2019/02/05 13:28:05 Using internal plugin for amazon-ebs
2019/02/05 13:28:05 Using internal plugin for oracle-classic
2019/02/05 13:28:05 Using internal plugin for qemu
2019/02/05 13:28:05 Using internal plugin for vmware-iso
2019/02/05 13:28:05 Using internal plugin for amazon-ebsvolume
2019/02/05 13:28:05 Using internal plugin for amazon-instance
2019/02/05 13:28:05 Using internal plugin for azure-arm
2019/02/05 13:28:05 Using internal plugin for docker
2019/02/05 13:28:05 Using internal plugin for file
2019/02/05 13:28:05 Using internal plugin for vmware-vmx
2019/02/05 13:28:05 Using internal plugin for lxd
2019/02/05 13:28:05 Using internal plugin for amazon-ebssurrogate
2019/02/05 13:28:05 Using internal plugin for cloudstack
2019/02/05 13:28:05 Using internal plugin for googlecompute
2019/02/05 13:28:05 Using internal plugin for lxc
2019/02/05 13:28:05 Using internal plugin for ncloud
2019/02/05 13:28:05 Using internal plugin for oracle-oci
2019/02/05 13:28:05 Using internal plugin for virtualbox-iso
2019/02/05 13:28:05 Using internal plugin for amazon-chroot
2019/02/05 13:28:05 Using internal plugin for hcloud
2019/02/05 13:28:05 Using internal plugin for hyperv-vmcx
2019/02/05 13:28:05 Using internal plugin for parallels-pvm
2019/02/05 13:28:05 Using internal plugin for profitbricks
2019/02/05 13:28:05 Using internal plugin for tencentcloud-cvm
2019/02/05 13:28:05 Using internal plugin for triton
2019/02/05 13:28:05 Using internal plugin for virtualbox-ovf
2019/02/05 13:28:05 Using internal plugin for alicloud-ecs
2019/02/05 13:28:05 Using internal plugin for parallels-iso
2019/02/05 13:28:05 Using internal plugin for puppet-server
2019/02/05 13:28:05 Using internal plugin for shell
2019/02/05 13:28:05 Using internal plugin for shell-local
2019/02/05 13:28:05 Using internal plugin for windows-shell
2019/02/05 13:28:05 Using internal plugin for ansible
2019/02/05 13:28:05 Using internal plugin for ansible-local
2019/02/05 13:28:05 Using internal plugin for chef-client
2019/02/05 13:28:05 Using internal plugin for puppet-masterless
2019/02/05 13:28:05 Using internal plugin for file
2019/02/05 13:28:05 Using internal plugin for powershell
2019/02/05 13:28:05 Using internal plugin for windows-restart
2019/02/05 13:28:05 Using internal plugin for chef-solo
2019/02/05 13:28:05 Using internal plugin for converge
2019/02/05 13:28:05 Using internal plugin for breakpoint
2019/02/05 13:28:05 Using internal plugin for salt-masterless
2019/02/05 13:28:05 Using internal plugin for docker-import
2019/02/05 13:28:05 Using internal plugin for docker-push
2019/02/05 13:28:05 Using internal plugin for docker-save
2019/02/05 13:28:05 Using internal plugin for docker-tag
2019/02/05 13:28:05 Using internal plugin for googlecompute-import
2019/02/05 13:28:05 Using internal plugin for vsphere-template
2019/02/05 13:28:05 Using internal plugin for googlecompute-export
2019/02/05 13:28:05 Using internal plugin for vagrant-cloud
2019/02/05 13:28:05 Using internal plugin for vsphere
2019/02/05 13:28:05 Using internal plugin for amazon-import
2019/02/05 13:28:05 Using internal plugin for checksum
2019/02/05 13:28:05 Using internal plugin for shell-local
2019/02/05 13:28:05 Using internal plugin for alicloud-import
2019/02/05 13:28:05 Using internal plugin for artifice
2019/02/05 13:28:05 Using internal plugin for compress
2019/02/05 13:28:05 Using internal plugin for manifest
2019/02/05 13:28:05 Using internal plugin for vagrant
2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[vmware-vmx:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx ncloud:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud parallels-iso:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso null:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null qemu:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu file:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file lxd:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd hyperv-iso:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso amazon-ebs:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs lxc:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc profitbricks:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks cloudstack:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean oneandone:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone virtualbox-iso:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso tencentcloud-cvm:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm virtualbox-ovf:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf azure-arm:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm amazon-ebssurrogate:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate googlecompute:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hyperv-vmcx:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-chroot:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot parallels-pvm:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm alicloud-ecs:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs scaleway:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway amazon-instance:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance docker:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker oracle-oci:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci hcloud:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud triton:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton openstack:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic vmware-iso:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-ebsvolume:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume] PostProcessors:map[googlecompute-export:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export alicloud-import:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import artifice:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice compress:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-tag:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-save:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save googlecompute-import:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import amazon-import:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import manifest:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest vagrant:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-import:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vagrant-cloud:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud checksum:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-push:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vsphere:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere shell-local:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vsphere-template:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[shell:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell windows-shell:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible-local:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local chef-client:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client salt-masterless:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless ansible:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible file:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file powershell:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell windows-restart:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-solo:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server puppet-masterless:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell-local:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local converge:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge breakpoint:/home/geertn/bin/packer-1.3.4-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint]}
2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 Loading builder: azure-arm
2019/02/05 13:28:05 Plugin could not be found. Checking same directory as executable.
2019/02/05 13:28:05 Current exe path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Creating plugin client for path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Starting plugin: /home/geertn/bin/packer-1.3.4 []string{"/home/geertn/bin/packer-1.3.4", "plugin", "packer-builder-azure-arm"}
2019/02/05 13:28:05 Waiting for RPC address for: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 args: []string{"packer-builder-azure-arm"}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin minimum port: 10000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin maximum port: 25000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin address: unix /tmp/packer-plugin849593696
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Waiting for connection...
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Serving a plugin connection...
2019/02/05 13:28:05 Loading provisioner: shell
2019/02/05 13:28:05 Plugin could not be found. Checking same directory as executable.
2019/02/05 13:28:05 Current exe path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Creating plugin client for path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Starting plugin: /home/geertn/bin/packer-1.3.4 []string{"/home/geertn/bin/packer-1.3.4", "plugin", "packer-provisioner-shell"}
2019/02/05 13:28:05 Waiting for RPC address for: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 args: []string{"packer-provisioner-shell"}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin minimum port: 10000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin maximum port: 25000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin address: unix /tmp/packer-plugin739627202
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Waiting for connection...
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Serving a plugin connection...
2019/02/05 13:28:05 Loading provisioner: ansible-local
2019/02/05 13:28:05 Plugin could not be found. Checking same directory as executable.
2019/02/05 13:28:05 Current exe path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Creating plugin client for path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Starting plugin: /home/geertn/bin/packer-1.3.4 []string{"/home/geertn/bin/packer-1.3.4", "plugin", "packer-provisioner-ansible-local"}
2019/02/05 13:28:05 Waiting for RPC address for: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 args: []string{"packer-provisioner-ansible-local"}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin minimum port: 10000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin maximum port: 25000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin address: unix /tmp/packer-plugin546367099
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Waiting for connection...
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Serving a plugin connection...
2019/02/05 13:28:05 Loading provisioner: shell
2019/02/05 13:28:05 Plugin could not be found. Checking same directory as executable.
2019/02/05 13:28:05 Current exe path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Creating plugin client for path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Starting plugin: /home/geertn/bin/packer-1.3.4 []string{"/home/geertn/bin/packer-1.3.4", "plugin", "packer-provisioner-shell"}
2019/02/05 13:28:05 Waiting for RPC address for: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 args: []string{"packer-provisioner-shell"}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin minimum port: 10000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin maximum port: 25000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin address: unix /tmp/packer-plugin489490095
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Waiting for connection...
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Serving a plugin connection...
2019/02/05 13:28:05 Loading provisioner: shell
2019/02/05 13:28:05 Plugin could not be found. Checking same directory as executable.
2019/02/05 13:28:05 Current exe path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Creating plugin client for path: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 Starting plugin: /home/geertn/bin/packer-1.3.4 []string{"/home/geertn/bin/packer-1.3.4", "plugin", "packer-provisioner-shell"}
2019/02/05 13:28:05 Waiting for RPC address for: /home/geertn/bin/packer-1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [INFO] Packer version: 1.3.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer Target OS/Arch: linux amd64
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Built with Go Version: go1.11.4
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Attempting to open config file: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 [WARN] Config file doesn't exist: /home/geertn/.packerconfig
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Setting cache directory: /home/geertn/work-fl/packer/packer_cache
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Detected home directory from env var: /home/geertn
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 args: []string{"packer-provisioner-shell"}
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin minimum port: 10000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin maximum port: 25000
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Plugin address: unix /tmp/packer-plugin431034270
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Waiting for connection...
2019/02/05 13:28:05 packer-1.3.4: 2019/02/05 13:28:05 Serving a plugin connection...
2019/02/05 13:28:05 Build debug mode: false
2019/02/05 13:28:05 Force build: false
2019/02/05 13:28:05 On error: 
2019/02/05 13:28:05 Preparing build: azure-arm
azure-arm output will be in this color.

2019/02/05 13:28:06 Waiting on builds to complete...
2019/02/05 13:28:06 Starting build run: azure-arm
2019/02/05 13:28:06 Running builder: azure-arm
2019/02/05 13:28:06 [INFO] (telemetry) Starting builder azure-arm
==> azure-arm: Running builder ...
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 :: Configuration
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 CaptureNamePrefix=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 CaptureContainerName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ImagePublisher=OpenLogic
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ImageOffer=CentOS
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ImageSku=7.5
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ImageVersion=latest
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ImageUrl=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 CustomManagedImageResourceGroupName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 CustomManagedImageName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 Location=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 VMSize=Standard_DS2_v2
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ManagedImageResourceGroupName=vsxxx_packer_images
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ManagedImageName=packer-centos-baseline
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ManagedImageStorageAccountType=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ManagedImageOSDiskSnapshotName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ManagedImageDataDiskSnapshotPrefix=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 ResourceGroupName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 StorageAccount=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 TempComputeName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 TempResourceGroupName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 BuildResourceGroupName=vsxxx_packer_build
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 VirtualNetworkName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 VirtualNetworkSubnetName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 VirtualNetworkResourceGroupName=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 CustomDataFile=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 OSType=Linux
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 DiskCachingType=
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 UserName=packer
2019/02/05 13:28:06 packer-1.3.4: 2019/02/05 13:28:06 Password=********************************
==> azure-arm: Getting tokens using client bearer JWT
2019/02/05 13:28:06 [INFO] (telemetry) ending azure-arm
2019/02/05 13:28:06 ui error: Build 'azure-arm' errored: parameter 'id' cannot be empty
2019/02/05 13:28:06 Builds completed. Waiting on interrupt barrier...
2019/02/05 13:28:06 machine readable: error-count []string{"1"}
2019/02/05 13:28:06 ui error: 
==> Some builds didn't complete successfully and had errors:
2019/02/05 13:28:06 machine readable: azure-arm,error []string{"parameter 'id' cannot be empty"}
2019/02/05 13:28:06 ui error: --> azure-arm: parameter 'id' cannot be empty
==> Builds finished but no artifacts were created.
Build 'azure-arm' errored: parameter 'id' cannot be empty
2019/02/05 13:28:06 [INFO] (telemetry) Finalizing.

==> Some builds didn't complete successfully and had errors:
--> azure-arm: parameter 'id' cannot be empty

==> Builds finished but no artifacts were created.
2019/02/05 13:28:07 waiting for all plugin processes to complete...
2019/02/05 13:28:07 /home/geertn/bin/packer-1.3.4: plugin process exited
2019/02/05 13:28:07 /home/geertn/bin/packer-1.3.4: plugin process exited
2019/02/05 13:28:07 /home/geertn/bin/packer-1.3.4: plugin process exited
2019/02/05 13:28:07 /home/geertn/bin/packer-1.3.4: plugin process exited
2019/02/05 13:28:07 /home/geertn/bin/packer-1.3.4: plugin process exited
(azure) geertn@isadjh:~/work-fl/packer$ 
boumenot commented 5 years ago

/cc @paulmey

This looks like a dupe of #7267.

paulmey commented 5 years ago

It's a dupe indeed. Dropped a build with the fix here.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.