Skip to content

Instantly share code, notes, and snippets.

@JimPruitt
Last active May 15, 2019 15:18
Show Gist options
  • Save JimPruitt/45661198b1229935242c4f380090a412 to your computer and use it in GitHub Desktop.
Save JimPruitt/45661198b1229935242c4f380090a412 to your computer and use it in GitHub Desktop.
OpenStack Builder: using WinRM connector produces error "An invalid 'name' value was provided."
{
"variables": {
"vm-name": "{{env `PACKER_VM_NAME`}}",
"flavor": "{{env `PACKER_FLAVOR`}}",
"source-image-name": "{{env `PACKER_SOURCE_IMAGE`}}",
"identity-endpoint": "{{env `OS_AUTH_URL`}}",
"output-dir": "./artifacts",
"security-groups": "qa-winrm, default",
"winrm-username": "{{env `PACKER_WINRM_USERNAME`}}",
"winrm-password": "{{env `PACKER_WINRM_PASSWORD`}}"
},
"builders": [
{
"type": "openstack",
"communicator":"winrm",
"winrm_username": "{{user `winrm-username`}}",
"winrm_password": "{{user `winrm-password`}}",
"winrm_port":5985,
"winrm_timeout" : "1h",
"flavor": "{{user `flavor`}}",
"image_name": "windows-server-2016.patched",
"source_image_name": "windows-server-2016.base",
"availability_zone": "nova",
"domain_name": "Default",
"endpoint_type": "public",
"image_members": "",
"image_visibility": "public",
"instance_name": "windows-server-2016.patched-build",
"security_groups": "{{user `security-groups`}}",
"region": "regionOne",
"insecure": true
}
],
"provisioners": []
}
> packer build kvm-windows-server-2016.patched.json
2019/05/15 10:16:00 [INFO] Packer version: 1.4.0
2019/05/15 10:16:00 Packer Target OS/Arch: windows amd64
2019/05/15 10:16:00 Built with Go Version: go1.12
2019/05/15 10:16:00 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:16:00 Using internal plugin for qemu
2019/05/15 10:16:00 Using internal plugin for virtualbox-iso
2019/05/15 10:16:00 Using internal plugin for vmware-vmx
2019/05/15 10:16:00 Using internal plugin for amazon-instance
2019/05/15 10:16:00 Using internal plugin for digitalocean
2019/05/15 10:16:00 Using internal plugin for file
2019/05/15 10:16:00 Using internal plugin for lxd
2019/05/15 10:16:00 Using internal plugin for oneandone
2019/05/15 10:16:00 Using internal plugin for amazon-ebs
2019/05/15 10:16:00 Using internal plugin for amazon-ebsvolume
2019/05/15 10:16:00 Using internal plugin for oracle-oci
2019/05/15 10:16:00 Using internal plugin for scaleway
2019/05/15 10:16:00 Using internal plugin for parallels-iso
2019/05/15 10:16:00 Using internal plugin for cloudstack
2019/05/15 10:16:00 Using internal plugin for hyperv-vmcx
2019/05/15 10:16:00 Using internal plugin for profitbricks
2019/05/15 10:16:00 Using internal plugin for triton
2019/05/15 10:16:00 Using internal plugin for openstack
2019/05/15 10:16:00 Using internal plugin for vagrant
2019/05/15 10:16:00 Using internal plugin for azure-arm
2019/05/15 10:16:00 Using internal plugin for googlecompute
2019/05/15 10:16:00 Using internal plugin for hyperone
2019/05/15 10:16:00 Using internal plugin for ncloud
2019/05/15 10:16:00 Using internal plugin for null
2019/05/15 10:16:00 Using internal plugin for oracle-classic
2019/05/15 10:16:00 Using internal plugin for amazon-ebssurrogate
2019/05/15 10:16:00 Using internal plugin for docker
2019/05/15 10:16:00 Using internal plugin for hcloud
2019/05/15 10:16:00 Using internal plugin for hyperv-iso
2019/05/15 10:16:00 Using internal plugin for lxc
2019/05/15 10:16:00 Using internal plugin for alicloud-ecs
2019/05/15 10:16:00 Using internal plugin for vmware-iso
2019/05/15 10:16:00 Using internal plugin for amazon-chroot
2019/05/15 10:16:00 Using internal plugin for parallels-pvm
2019/05/15 10:16:00 Using internal plugin for tencentcloud-cvm
2019/05/15 10:16:00 Using internal plugin for virtualbox-ovf
2019/05/15 10:16:00 Using internal plugin for converge
2019/05/15 10:16:00 Using internal plugin for file
2019/05/15 10:16:00 Using internal plugin for salt-masterless
2019/05/15 10:16:00 Using internal plugin for windows-restart
2019/05/15 10:16:00 Using internal plugin for windows-shell
2019/05/15 10:16:00 Using internal plugin for breakpoint
2019/05/15 10:16:00 Using internal plugin for chef-client
2019/05/15 10:16:00 Using internal plugin for inspec
2019/05/15 10:16:00 Using internal plugin for powershell
2019/05/15 10:16:00 Using internal plugin for puppet-server
2019/05/15 10:16:00 Using internal plugin for shell
2019/05/15 10:16:00 Using internal plugin for chef-solo
2019/05/15 10:16:00 Using internal plugin for puppet-masterless
2019/05/15 10:16:00 Using internal plugin for shell-local
2019/05/15 10:16:00 Using internal plugin for ansible
2019/05/15 10:16:00 Using internal plugin for ansible-local
2019/05/15 10:16:00 Using internal plugin for sleep
2019/05/15 10:16:00 Using internal plugin for checksum
2019/05/15 10:16:00 Using internal plugin for manifest
2019/05/15 10:16:00 Using internal plugin for vagrant
2019/05/15 10:16:00 Using internal plugin for vsphere
2019/05/15 10:16:00 Using internal plugin for vagrant-cloud
2019/05/15 10:16:00 Using internal plugin for vsphere-template
2019/05/15 10:16:00 Using internal plugin for alicloud-import
2019/05/15 10:16:00 Using internal plugin for compress
2019/05/15 10:16:00 Using internal plugin for docker-import
2019/05/15 10:16:00 Using internal plugin for docker-push
2019/05/15 10:16:00 Using internal plugin for shell-local
2019/05/15 10:16:00 Using internal plugin for digitalocean-import
2019/05/15 10:16:00 Using internal plugin for docker-save
2019/05/15 10:16:00 Using internal plugin for googlecompute-export
2019/05/15 10:16:00 Using internal plugin for amazon-import
2019/05/15 10:16:00 Using internal plugin for artifice
2019/05/15 10:16:00 Using internal plugin for docker-tag
2019/05/15 10:16:00 Using internal plugin for googlecompute-import
2019/05/15 10:16:00 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:16:00 Attempting to open config file: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:16:00 [WARN] Config file doesn't exist: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:16:00 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx lxc:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks qemu:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx] PostProcessors:map[alicloud-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/05/15 10:16:00 Setting cache directory: C:\tmp
2019/05/15 10:16:00 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:16:00 Loading builder: openstack
2019/05/15 10:16:00 Plugin could not be found. Checking same directory as executable.
2019/05/15 10:16:00 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2019/05/15 10:16:00 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2019/05/15 10:16:00 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "packer-builder-openstack"}
2019/05/15 10:16:00 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 [INFO] Packer version: 1.4.0
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Packer Target OS/Arch: windows amd64
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Built with Go Version: go1.12
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Attempting to open config file: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 [WARN] Config file doesn't exist: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Setting cache directory: C:\tmp
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 args: []string{"packer-builder-openstack"}
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Plugin minimum port: 10000
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Plugin maximum port: 25000
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Plugin address: tcp 127.0.0.1:10000
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Waiting for connection...
2019/05/15 10:16:00 packer.exe: 2019/05/15 10:16:00 Serving a plugin connection...
2019/05/15 10:16:00 Build debug mode: false
openstack output will be in this color.
2019/05/15 10:16:00 Force build: false
2019/05/15 10:16:00 On error:
2019/05/15 10:16:00 Preparing build: openstack
2019/05/15 10:16:01 Waiting on builds to complete...
2019/05/15 10:16:01 Starting build run: openstack
2019/05/15 10:16:01 Running builder: openstack
==> openstack: Loading flavor: cloudbolt
2019/05/15 10:16:01 packer.exe: 2019/05/15 10:16:01 [INFO] Loading flavor by ID: cloudbolt
2019/05/15 10:16:01 packer.exe: 2019/05/15 10:16:01 [ERROR] Failed to find flavor by ID: Resource not found
2019/05/15 10:16:01 packer.exe: 2019/05/15 10:16:01 [INFO] Loading flavor by name: cloudbolt
openstack: Verified flavor. ID: 3167d8a1-e85d-4d9a-9bb3-5c5c81198d12
==> openstack: Creating temporary keypair: packer_5cdc1f21-5524-ad7b-3fd8-c5db657594f9 ...
==> openstack: Created temporary keypair: packer_5cdc1f21-5524-ad7b-3fd8-c5db657594f9
2019/05/15 10:16:01 packer.exe: 2019/05/15 10:16:01 Using Image Filters { 0 windows-server-2016.base 0 0 [] <nil> <nil> }
openstack: Found Image ID: 01370047-0fec-4560-ae9c-6b475d247e80
==> openstack: Launching server...
==> openstack: Launching server...
2019/05/15 10:16:02 ui error: ==> openstack: Error launching source server: Bad request with: [POST https://***.****.***.***:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
==> openstack: Error launching source server: Bad request with: [POST https://***.****.***.**:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
==> openstack: Terminating the source server: ...
2019/05/15 10:16:02 ui error: ==> openstack: Error terminating server, may still be around: Resource not found
==> openstack: Error terminating server, may still be around: Resource not found
==> openstack: Deleting temporary keypair: packer_5cdc1f21-5524-ad7b-3fd8-c5db657594f9 ...
2019/05/15 10:16:02 ui error: Build 'openstack' errored: Error launching source server: Bad request with: [POST https://***.****.***.**:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
2019/05/15 10:16:02 Builds completed. Waiting on interrupt barrier...
Build 'openstack' errored: Error launching source server: Bad request with: [POST https://***.****.***.**:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
2019/05/15 10:16:02 machine readable: error-count []string{"1"}
2019/05/15 10:16:02 ui error:
==> Some builds didn't complete successfully and had errors:
==> Some builds didn't complete successfully and had errors:
2019/05/15 10:16:02 machine readable: openstack,error []string{"Error launching source server: Bad request with: [POST https://***.****.***.***:*****/v2.1/servers], error message: {\"badRequest\": {\"message\": \"An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.\", \"code\": 400}}"}
2019/05/15 10:16:02 ui error: --> openstack: Error launching source server: Bad request with: [POST https://***.****.***.***:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
--> openstack: Error launching source server: Bad request with: [POST https://***.****.***.***:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}
==> Builds finished but no artifacts were created.
2019/05/15 10:16:02 waiting for all plugin processes to complete...
==> Builds finished but no artifacts were created.
2019/05/15 10:16:02 C:\ProgramData\chocolatey\lib\packer\tools\packer.exe: plugin process exited
PS C:\Users\defaultuser\repos\machine-image-builds\windows-server-2016.patched> packer version
2019/05/15 10:23:42 [INFO] Packer version: 1.4.0
2019/05/15 10:23:42 Packer Target OS/Arch: windows amd64
2019/05/15 10:23:42 Built with Go Version: go1.12
2019/05/15 10:23:42 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:23:42 Using internal plugin for amazon-ebssurrogate
2019/05/15 10:23:42 Using internal plugin for oracle-classic
2019/05/15 10:23:42 Using internal plugin for qemu
2019/05/15 10:23:42 Using internal plugin for triton
2019/05/15 10:23:42 Using internal plugin for docker
2019/05/15 10:23:42 Using internal plugin for virtualbox-ovf
2019/05/15 10:23:42 Using internal plugin for vmware-vmx
2019/05/15 10:23:42 Using internal plugin for parallels-iso
2019/05/15 10:23:42 Using internal plugin for parallels-pvm
2019/05/15 10:23:42 Using internal plugin for profitbricks
2019/05/15 10:23:42 Using internal plugin for file
2019/05/15 10:23:42 Using internal plugin for hcloud
Packer v1.4.0
2019/05/15 10:23:42 Using internal plugin for hyperv-vmcx
2019/05/15 10:23:42 Using internal plugin for null
2019/05/15 10:23:42 Using internal plugin for openstack
2019/05/15 10:23:42 Using internal plugin for vmware-iso
2019/05/15 10:23:42 Using internal plugin for virtualbox-iso
2019/05/15 10:23:42 Using internal plugin for amazon-ebs
2019/05/15 10:23:42 Using internal plugin for cloudstack
2019/05/15 10:23:42 Using internal plugin for googlecompute
2019/05/15 10:23:42 Using internal plugin for oneandone
2019/05/15 10:23:42 Using internal plugin for oracle-oci
2019/05/15 10:23:42 Using internal plugin for alicloud-ecs
2019/05/15 10:23:42 Using internal plugin for amazon-chroot
2019/05/15 10:23:42 Using internal plugin for amazon-ebsvolume
2019/05/15 10:23:42 Using internal plugin for amazon-instance
2019/05/15 10:23:42 Using internal plugin for tencentcloud-cvm
2019/05/15 10:23:42 Using internal plugin for azure-arm
2019/05/15 10:23:42 Using internal plugin for digitalocean
2019/05/15 10:23:42 Using internal plugin for lxc
2019/05/15 10:23:42 Using internal plugin for scaleway
2019/05/15 10:23:42 Using internal plugin for vagrant
2019/05/15 10:23:42 Using internal plugin for hyperv-iso
2019/05/15 10:23:42 Using internal plugin for lxd
2019/05/15 10:23:42 Using internal plugin for ncloud
2019/05/15 10:23:42 Using internal plugin for hyperone
2019/05/15 10:23:42 Using internal plugin for breakpoint
2019/05/15 10:23:42 Using internal plugin for powershell
2019/05/15 10:23:42 Using internal plugin for puppet-masterless
2019/05/15 10:23:42 Using internal plugin for windows-shell
2019/05/15 10:23:42 Using internal plugin for converge
2019/05/15 10:23:42 Using internal plugin for shell-local
2019/05/15 10:23:42 Using internal plugin for inspec
2019/05/15 10:23:42 Using internal plugin for windows-restart
2019/05/15 10:23:42 Using internal plugin for ansible-local
2019/05/15 10:23:42 Using internal plugin for chef-client
2019/05/15 10:23:42 Using internal plugin for chef-solo
2019/05/15 10:23:42 Using internal plugin for file
2019/05/15 10:23:42 Using internal plugin for sleep
2019/05/15 10:23:42 Using internal plugin for ansible
2019/05/15 10:23:42 Using internal plugin for puppet-server
2019/05/15 10:23:42 Using internal plugin for salt-masterless
2019/05/15 10:23:42 Using internal plugin for shell
2019/05/15 10:23:42 Using internal plugin for googlecompute-import
2019/05/15 10:23:42 Using internal plugin for manifest
2019/05/15 10:23:42 Using internal plugin for vagrant-cloud
2019/05/15 10:23:42 Using internal plugin for alicloud-import
2019/05/15 10:23:42 Using internal plugin for amazon-import
2019/05/15 10:23:42 Using internal plugin for docker-import
2019/05/15 10:23:42 Using internal plugin for docker-push
2019/05/15 10:23:42 Using internal plugin for docker-tag
2019/05/15 10:23:42 Using internal plugin for docker-save
2019/05/15 10:23:42 Using internal plugin for shell-local
2019/05/15 10:23:42 Using internal plugin for vsphere-template
2019/05/15 10:23:42 Using internal plugin for artifice
2019/05/15 10:23:42 Using internal plugin for checksum
2019/05/15 10:23:42 Using internal plugin for compress
2019/05/15 10:23:42 Using internal plugin for vsphere
2019/05/15 10:23:42 Using internal plugin for digitalocean-import
2019/05/15 10:23:42 Using internal plugin for googlecompute-export
2019/05/15 10:23:42 Using internal plugin for vagrant
2019/05/15 10:23:42 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:23:42 Attempting to open config file: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:23:42 [WARN] Config file doesn't exist: C:\Users\defaultuser\AppData\Roaming\packer.config
2019/05/15 10:23:42 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx lxc:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks qemu:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx] PostProcessors:map[alicloud-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/05/15 10:23:42 Detected home directory from env var: C:\Users\defaultuser\AppData\Roaming
2019/05/15 10:23:42 Setting cache directory: C:\tmp
2019/05/15 10:23:42 machine readable: version []string{"1.4.0"}
2019/05/15 10:23:42 machine readable: version-prelease []string{""}
2019/05/15 10:23:42 machine readable: version-commit []string{"b8555d468"}
2019/05/15 10:23:42 waiting for all plugin processes to complete...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment