Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openstack builder hangs when using use_blockstorage_volume if volume size is too small #20

Open
ghost opened this issue Apr 21, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 21, 2021

This issue was originally opened by @puetzk as hashicorp/packer#6957. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


From hashicorp/packer#6956 (comment)

If the value determined by GetVolumeSize is actually too low, perhaps an image with no value set for MinDiskGigabytes, in a format (e.g. qcow2) where the file is considerably smaller than the minimum volume that can unpack it, the volume is created but the status shown in cinder list becomes "error". WaitForVolume doesn't seem to recognize this case, and just keeps looping (and waiting) indefinitely), since volumes.Get is succeeding (the GUID does exist and has a status to read), and "error" != "available".

@puetzk
Copy link
Contributor

puetzk commented Apr 21, 2021

I believe this issue remains valid in that WaitForVolume seems unchanged, and will only exit for network errors

if ok && (errCode.Actual == 500 || errCode.Actual == 404) {

and successful completion

if status == "available" {

So it will continue to wait and re-check if the service is reporting status == "error", even though nothing is going to change. However, our company has shut down their openstack environment, so it is no longer important to me specifically, and I would not have an environment in which to test any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant