Having problems creating an image with Packer in Rackspace

1,047 views
Skip to first unread message

Patrick Slattery

unread,
Jan 15, 2018, 10:18:42 AM1/15/18
to Packer
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

Patrick Slattery

unread,
Jan 15, 2018, 1:52:52 PM1/15/18
to Packer
I was able to resolve my issues by the following steps:

1) I used a HTTP proxy (Fiddler on Windows) to determine exactly what errors were being returned by the Rackspace API, this lead me to believe that the password value for the Rackspace user was being requested and not the API key (as Nova uses)

query:
```
User-Agent: gophercloud/2.0.0
Connection: close
Content-Length: 122
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip
Connection: close

{"auth":{"passwordCredentials":{"password":"#######################","username":"#######"},"tenantId":"######"}}
```

response:
```
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Mon, 15 Jan 2018 16:08:24 GMT
Content-Type: application/json
Content-Length: 106
Connection: close
Content-Encoding: gzip
Vary: Accept, Accept-Encoding, X-Auth-Token
X-NewRelic-App-Data: ###############################################################################
X-Trans-Id: ###########################
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Content-Security-Policy: default-src 'self'

unauthorized
  code=401
  message=Unable to authenticate user with credentials provided.
```

2) I changed the "password" field to use the actual password and not the API key (as Nova uses)

3) I added the line:
"communicator": "ssh",

4) I removed the lines:
"ssh_password": null,
"ssh_private_key_file": "./ssh/automation.private",

The result was a saved image!
```
==> openstack: Loading flavor: general1-1
2018/01/15 13:32:37 packer: 2018/01/15 13:32:37 [INFO] Loading flavor by ID: general1-1
2018/01/15 13:32:37 ui:     openstack: Verified flavor. ID: general1-1
    openstack: Verified flavor. ID: general1-1
2018/01/15 13:32:37 ui: ==> openstack: Creating temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715 ...
==> openstack: Creating temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715 ...
2018/01/15 13:32:40 ui: ==> openstack: Created temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715
==> openstack: Created temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715
2018/01/15 13:32:40 packer: 2018/01/15 13:32:40 Couldn't parse SSH key, trying work around for [GH-2526].
2018/01/15 13:32:40 packer: 2018/01/15 13:32:40 Executing: /usr/bin/openssl [rsa -in /tmp/packer-ber-privatekey-301075774 -out /tmp/packer-der-privatekey-792589701]
==> openstack: Successfully converted BER encoded SSH key to DER encoding.
2018/01/15 13:32:40 ui: ==> openstack: Successfully converted BER encoded SSH key to DER encoding.
2018/01/15 13:32:40 ui: ==> openstack: Launching server...
==> openstack: Launching server...
2018/01/15 13:32:41 ui:     openstack: Server ID: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765
2018/01/15 13:32:41 packer: 2018/01/15 13:32:41 server id: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765
2018/01/15 13:32:41 ui: ==> openstack: Waiting for server to become ready...
    openstack: Server ID: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765
==> openstack: Waiting for server to become ready...
2018/01/15 13:32:41 packer: 2018/01/15 13:32:41 Waiting for state to become: [ACTIVE]
2018/01/15 13:32:41 packer: 2018/01/15 13:32:41 Waiting for state to become: [ACTIVE] currently BUILD (0%)
2018/01/15 13:32:43 packer: 2018/01/15 13:32:43 Waiting for state to become: [ACTIVE] currently BUILD (10%)
<snip>
2018/01/15 13:33:15 packer: 2018/01/15 13:33:15 Waiting for state to become: [ACTIVE] currently BUILD (90%)
2018/01/15 13:33:17 packer: 2018/01/15 13:33:17 Waiting for state to become: [ACTIVE] currently BUILD (90%)
2018/01/15 13:33:20 packer: 2018/01/15 13:33:20 [INFO] Not using winrm communicator, skipping get password...
==> openstack: Waiting for server (cbcfc850-6cb7-4c61-a31e-e7eb5bab1765) to become RackConnect ready...
2018/01/15 13:33:20 ui: ==> openstack: Waiting for server (cbcfc850-6cb7-4c61-a31e-e7eb5bab1765) to become RackConnect ready...
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 [INFO] Waiting for SSH, up to timeout: 5m0s
2018/01/15 13:34:16 ui: ==> openstack: Waiting for SSH to become available...
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 [DEBUG] Detected address: 10.210.98.5
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 [DEBUG] Using IP address 10.210.98.5 from specified interface private to connect
==> openstack: Waiting for SSH to become available...
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 [INFO] Attempting SSH connection...
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 reconnecting to TCP connection for SSH
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 handshaking with SSH
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 handshake complete!
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 opening new ssh session
==> openstack: Connected to SSH!
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 [INFO] agent forwarding enabled
2018/01/15 13:34:16 ui: ==> openstack: Connected to SSH!
2018/01/15 13:34:16 packer: 2018/01/15 13:34:16 Running the provision hook
==> openstack: Stopping server: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
2018/01/15 13:34:16 ui: ==> openstack: Stopping server: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
    openstack: Waiting for server to stop: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
2018/01/15 13:34:17 ui:     openstack: Waiting for server to stop: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
2018/01/15 13:34:17 packer: 2018/01/15 13:34:17 Waiting for state to become: [SHUTOFF STOPPED]
2018/01/15 13:34:17 packer: 2018/01/15 13:34:17 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%)
2018/01/15 13:34:21 packer: 2018/01/15 13:34:21 Waiting for state to become: [SHUTOFF STOPPED] currently ACTIVE (0%)
==> openstack: Creating the image: centos74-base
2018/01/15 13:34:24 ui: ==> openstack: Creating the image: centos74-base
    openstack: Image: e94db836-ef32-4480-a5ac-53cee130c001
2018/01/15 13:34:24 ui:     openstack: Image: e94db836-ef32-4480-a5ac-53cee130c001
==> openstack: Waiting for image centos74-base (image id: e94db836-ef32-4480-a5ac-53cee130c001) to become ready...
2018/01/15 13:34:24 ui: ==> openstack: Waiting for image centos74-base (image id: e94db836-ef32-4480-a5ac-53cee130c001) to become ready...
2018/01/15 13:34:25 packer: 2018/01/15 13:34:25 Waiting for image creation status: SAVING (25%)
<snip>
2018/01/15 13:36:08 packer: 2018/01/15 13:36:08 Waiting for image creation status: SAVING (50%)
2018/01/15 13:36:11 ui: ==> openstack: Terminating the source server: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
==> openstack: Terminating the source server: cbcfc850-6cb7-4c61-a31e-e7eb5bab1765 ...
2018/01/15 13:36:12 packer: 2018/01/15 13:36:12 Waiting for state to become: [DELETED]
2018/01/15 13:36:12 packer: 2018/01/15 13:36:12 Waiting for state to become: [DELETED] currently SHUTOFF (0%)
2018/01/15 13:36:14 packer: 2018/01/15 13:36:14 Waiting for state to become: [DELETED] currently SHUTOFF (0%)
==> openstack: Deleting temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715 ...
2018/01/15 13:36:16 ui: ==> openstack: Deleting temporary keypair: packer_5a5cf3c4-db97-bbdc-26ae-06bc7f9b0715 ...
2018/01/15 13:36:16 packer: 2018/01/15 13:36:16 [INFO] 404 on ServerStateRefresh, returning DELETED
2018/01/15 13:36:16 [INFO] (telemetry) ending openstack
2018/01/15 13:36:16 ui: Build 'openstack' finished.
2018/01/15 13:36:16 Builds completed. Waiting on interrupt barrier...
2018/01/15 13:36:16 ui: 
==> Builds finished. The artifacts of successful builds are:
2018/01/15 13:36:16 machine readable: openstack,artifact-count []string{"1"}
Build 'openstack' finished.

==> Builds finished. The artifacts of successful builds are:
2018/01/15 13:36:16 machine readable: openstack,artifact []string{"0", "builder-id", "mitchellh.openstack"}
2018/01/15 13:36:16 machine readable: openstack,artifact []string{"0", "id", "e94db836-ef32-4480-a5ac-53cee130c001"}
2018/01/15 13:36:16 machine readable: openstack,artifact []string{"0", "string", "An image was created: e94db836-ef32-4480-a5ac-53cee130c001"}
2018/01/15 13:36:16 machine readable: openstack,artifact []string{"0", "files-count", "0"}
2018/01/15 13:36:16 machine readable: openstack,artifact []string{"0", "end"}
2018/01/15 13:36:16 ui: --> openstack: An image was created: e94db836-ef32-4480-a5ac-53cee130c001
2018/01/15 13:36:16 [INFO] (telemetry) Finalizing.
--> openstack: An image was created: e94db836-ef32-4480-a5ac-53cee130c001
2018/01/15 13:36:17 waiting for all plugin processes to complete...
2018/01/15 13:36:17 /usr/local/bin/packer: plugin process exited
```

Hopefully this helps someone :-)

Rickard von Essen

unread,
Jan 15, 2018, 1:59:35 PM1/15/18
to packe...@googlegroups.com
Thanks for sharing the solution! 

--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/51d10f7a-1a1b-4987-9cc7-e2a8ac96a2e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages