hashicorp / hashicorp/packer-plugin-openstack

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

Aperta
#13 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug builder/openstack community-supported plugin
Lingua principale
Go
Stelle
29
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

_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 ..]

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia in builder/openstack/volume.go intorno alla riga 35, dove viene interrogato lo stato di creazione del volume, e riproduci il problema con un dispositivo a blocchi più piccolo dell’immagine di avvio. Il lavoro è completo quando un volume OpenStack che entra nello stato di errore viene segnalato immediatamente invece di essere interrogato indefinitamente e qualsiasi build in corso viene abbandonata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
cloud
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.