Hi, I'm trying to get Packer to build a CentOS image in Rackspace and I'm 
having some problems that I haven't seen described elsewhere.
Hopefully someone here will know what is going wrong or can give me a 
pointer on how I might be able to further debug this.

For what it's worth we are using RackConnect v2, I'm not sure if that 
changes anything beyond the `ssh_interface` and `rackconnect_wait` 
variables.

I took the values for:
identity_endpoint
tenant_id
region
username
password
directly from my `~/.supernova` file.

Just to validate that my supernova config works:
```
supernova qa image-list
[SUPERNOVA] Running nova against qa... 
+--------------------------------------+--------------------------------------------------------------+--------+--------+
| ID                                   | Name                               
                          | Status | Server |
+--------------------------------------+--------------------------------------------------------------+--------+--------+
| 9a479ce0-6524-46c5-9d35-109f8fec13d0 | CentOS 6 (PVHVM)                   
                          | ACTIVE |        |
| dd844d58-8eac-4fa8-a44d-cd56105b12dd | CentOS 7 (PVHVM)                   
                          | ACTIVE |        |
| 398c5f65-23e2-44da-97d8-d28ff5ec583b | CentOS 7 (PVHVM) (Orchestration)   
                          | ACTIVE |        |
| 73a9359a-990e-4a32-b50f-286935e0c986 | Debian 7 (Wheezy) (PVHVM)         
                           | ACTIVE |        |
```

I used the following minimal Packer config file:
```json
{
  "_comment": "This Packer file is intended to generate a CentOS 7.4 image 
with Docker on Rackspace",
  "_comment": "Build with `PACKER_LOG=1 packer build --only=openstack 
rackspace.json` for Rackspace images",

  "builders": [
  {
    "type": "openstack",
    "openstack_provider": "rackspace",
    "identity_endpoint": "https://identity.api.rackspacecloud.com/v2.0/";,
    "tenant_id": "1234567",
    "region": "ORD",
    "username": "abcdefg",
    "password": "##############################",
    "flavor": "general1-1",
    "ssh_username": "automation",
    "ssh_password": null,
    "ssh_private_key_file": "./ssh/automation.private",
    "ssh_port": 22,
    "ssh_interface": "private",
    "source_image": "398c5f65-23e2-44da-97d8-d28ff5ec583b",
    "image_name": "centos74-base",
    "rackconnect_wait": "true"
  }
]
}
```
which when run gave me the following output:

```
PACKER_LOG=1 packer build --only=openstack rackspace.json

2018/01/15 10:09:42 [INFO] Packer version: 1.1.3
2018/01/15 10:09:42 Packer Target OS/Arch: linux amd64
2018/01/15 10:09:42 Built with Go Version: go1.9
2018/01/15 10:09:42 Detected home directory from env var: /home/pslattery
2018/01/15 10:09:42 Using internal plugin for amazon-chroot
2018/01/15 10:09:42 Using internal plugin for lxc
2018/01/15 10:09:42 Using internal plugin for parallels-iso
2018/01/15 10:09:42 Using internal plugin for vmware-iso
2018/01/15 10:09:42 Using internal plugin for amazon-ebssurrogate
2018/01/15 10:09:42 Using internal plugin for cloudstack
2018/01/15 10:09:42 Using internal plugin for hyperv-vmcx
2018/01/15 10:09:42 Using internal plugin for triton
2018/01/15 10:09:42 Using internal plugin for amazon-instance
2018/01/15 10:09:42 Using internal plugin for file
2018/01/15 10:09:42 Using internal plugin for virtualbox-ovf
2018/01/15 10:09:42 Using internal plugin for hyperv-iso
2018/01/15 10:09:42 Using internal plugin for null
2018/01/15 10:09:42 Using internal plugin for profitbricks
2018/01/15 10:09:42 Using internal plugin for amazon-ebs
2018/01/15 10:09:42 Using internal plugin for lxd
2018/01/15 10:09:42 Using internal plugin for digitalocean
2018/01/15 10:09:42 Using internal plugin for oneandone
2018/01/15 10:09:42 Using internal plugin for oracle-oci
2018/01/15 10:09:42 Using internal plugin for azure-arm
2018/01/15 10:09:42 Using internal plugin for openstack
2018/01/15 10:09:42 Using internal plugin for virtualbox-iso
2018/01/15 10:09:42 Using internal plugin for vmware-vmx
2018/01/15 10:09:42 Using internal plugin for alicloud-ecs
2018/01/15 10:09:42 Using internal plugin for amazon-ebsvolume
2018/01/15 10:09:42 Using internal plugin for docker
2018/01/15 10:09:42 Using internal plugin for googlecompute
2018/01/15 10:09:42 Using internal plugin for parallels-pvm
2018/01/15 10:09:42 Using internal plugin for qemu
2018/01/15 10:09:42 Using internal plugin for chef-client
2018/01/15 10:09:42 Using internal plugin for chef-solo
2018/01/15 10:09:42 Using internal plugin for converge
2018/01/15 10:09:42 Using internal plugin for windows-shell
2018/01/15 10:09:42 Using internal plugin for puppet-server
2018/01/15 10:09:42 Using internal plugin for ansible-local
2018/01/15 10:09:42 Using internal plugin for powershell
2018/01/15 10:09:42 Using internal plugin for puppet-masterless
2018/01/15 10:09:42 Using internal plugin for salt-masterless
2018/01/15 10:09:42 Using internal plugin for shell
2018/01/15 10:09:42 Using internal plugin for windows-restart
2018/01/15 10:09:42 Using internal plugin for ansible
2018/01/15 10:09:42 Using internal plugin for file
2018/01/15 10:09:42 Using internal plugin for shell-local
2018/01/15 10:09:42 Using internal plugin for amazon-import
2018/01/15 10:09:42 Using internal plugin for atlas
2018/01/15 10:09:42 Using internal plugin for compress
2018/01/15 10:09:42 Using internal plugin for shell-local
2018/01/15 10:09:42 Using internal plugin for vagrant-cloud
2018/01/15 10:09:42 Using internal plugin for docker-tag
2018/01/15 10:09:42 Using internal plugin for vagrant
2018/01/15 10:09:42 Using internal plugin for vsphere-template
2018/01/15 10:09:42 Using internal plugin for alicloud-import
2018/01/15 10:09:42 Using internal plugin for docker-push
2018/01/15 10:09:42 Using internal plugin for googlecompute-export
2018/01/15 10:09:42 Using internal plugin for manifest
2018/01/15 10:09:42 Using internal plugin for vsphere
2018/01/15 10:09:42 Using internal plugin for artifice
2018/01/15 10:09:42 Using internal plugin for checksum
2018/01/15 10:09:42 Using internal plugin for docker-import
2018/01/15 10:09:42 Using internal plugin for docker-save
2018/01/15 10:09:42 Detected home directory from env var: /home/pslattery
2018/01/15 10:09:42 Attempting to open config file: 
/home/pslattery/.packerconfig
2018/01/15 10:09:42 [WARN] Config file doesn't exist: 
/home/pslattery/.packerconfig
2018/01/15 10:09:42 Packer config: &{DisableCheckpoint:false 
DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 
Builders:map[hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx
 
amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance
 
vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx
 
parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm
 
profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks
 
openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack
 
virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso
 
amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume
 
amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs
 
qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu 
parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso
 
oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone
 
amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot
 
vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso
 
cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack
 
null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null 
oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci
 
azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
 
lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc 
alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs
 
amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate
 
triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton
 
virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf
 
hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso
 
docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker
 
file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file 
lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd 
digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean
 
googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute]
 
PostProcessors:map[amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import
 
atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas
 
docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag
 
vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere
 
checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum
 
docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import
 
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
 
alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import
 
googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export
 
artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice
 
vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud
 
vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template
 
docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save
 
compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress
 
vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant
 
docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push
 
manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest]
 
Provisioners:map[puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server
 
puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless
 
ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
 
file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file
 
chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo
 
ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local
 
shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell
 
windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart
 
chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client
 
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local
 
converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge
 
windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell
 
powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell
 
salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless]}
2018/01/15 10:09:42 Detected home directory from env var: /home/pslattery
2018/01/15 10:09:42 Setting cache directory: 
/home/pslattery/source/bitbucket/Automation/packer-templates/packer_cache
2018/01/15 10:09:42 Loading builder: openstack
2018/01/15 10:09:42 Plugin could not be found. Checking same directory as 
executable.
2018/01/15 10:09:42 Current exe path: /usr/local/bin/packer
2018/01/15 10:09:42 Creating plugin client for path: /usr/local/bin/packer
2018/01/15 10:09:42 Starting plugin: /usr/local/bin/packer 
[]string{"/usr/local/bin/packer", "plugin", "packer-builder-openstack"}
2018/01/15 10:09:42 Detected home directory from env var: /home/pslattery
2018/01/15 10:09:42 Waiting for RPC address for: /usr/local/bin/packer
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 [INFO] Packer version: 1.1.3
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Packer Target OS/Arch: 
linux amd64
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Built with Go Version: go1.9
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Detected home directory 
from env var: /home/pslattery
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Attempting to open config 
file: /home/pslattery/.packerconfig
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 [WARN] Config file doesn't 
exist: /home/pslattery/.packerconfig
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Packer config: 
&{DisableCheckpoint:false DisableCheckpointSignature:false 
PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] 
Provisioners:map[]}
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Detected home directory 
from env var: /home/pslattery
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Setting cache directory: 
/home/pslattery/source/bitbucket/Automation/packer-templates/packer_cache
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 args: 
[]string{"packer-builder-openstack"}
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Plugin minimum port: 10000
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Plugin maximum port: 25000
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Detected home directory 
from env var: /home/pslattery
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Plugin address: unix 
/tmp/packer-plugin409602167
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Waiting for connection...
2018/01/15 10:09:42 packer: 2018/01/15 10:09:42 Serving a plugin 
connection...
openstack output will be in this color.
2018/01/15 10:09:42 ui: openstack output will be in this color.
2018/01/15 10:09:42 ui: 

2018/01/15 10:09:42 Build debug mode: false
2018/01/15 10:09:42 Force build: false
2018/01/15 10:09:42 On error: 
2018/01/15 10:09:42 Preparing build: openstack
2018/01/15 10:09:42 Build 'openstack' prepare failure: 1 error(s) occurred:

* Invalid request due to incorrect syntax or missing required parameters.
2018/01/15 10:09:42 ui error: 1 error(s) occurred:

* Invalid request due to incorrect syntax or missing required parameters.
2018/01/15 10:09:42 [INFO] (telemetry) Finalizing.
1 error(s) occurred:

* Invalid request due to incorrect syntax or missing required parameters.
2018/01/15 10:09:42 waiting for all plugin processes to complete...
2018/01/15 10:09:42 /usr/local/bin/packer: plugin process exited
```

Thanks

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/d8807355-0d32-484c-b96d-7390bac192b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to