hashicorp / hashicorp/packer-plugin-openstack

[openstack] choke on volumes which end up in error state

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
bug builder/openstack community-supported plugin
Dominant language
Go
Stars
29
Forks
26
PR merge metrics
No merged PRs in 30d

Description

_This issue was originally opened by @dave2 as hashicorp/packer#8737. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._


### Overview of the Issue

Packer chokes waiting on a volume to become ready if the volume instead transitions to 'error' state. This should be caught and immediately passed back to the user, along with abandoning any build in progress.

Probably needs to be tested for as explicit state somewhere around here:
https://github.com/hashicorp/packer/blob/master/builder/openstack/volume.go#L35

#### Reproduction Steps

Specify a block device smaller than the launch image allows. Seems to always force error state, should choke on that.

### Packer version

1.5.1

### Simplified Packer Buildfile

Any valid openstack build file will do this, since it's a backend issue with OpenStack and errors.

### Operating system and Environment details

Ubuntu 18.04 64-bit. The OpenStack deployment used is a private cloud implementation.

### Log Fragments and crash.log files

==> openstack: Creating volume...
==> openstack: Waiting for volume packer_5e45dff6-e5e1-06f4-bda8-60b973283d77 (volume id: 6730cb8e-ad13-401e-a52d-535aad2ade66) to become available...
2020/02/13 23:47:04 packer-builder-openstack plugin: Waiting for volume creation status: creating
2020/02/13 23:47:07 packer-builder-openstack plugin: Waiting for volume creation status: creating
2020/02/13 23:47:09 packer-builder-openstack plugin: Waiting for volume creation status: error
2020/02/13 23:47:11 packer-builder-openstack plugin: Waiting for volume creation status: error
[.. endlessly reports error ..]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.