Documentation of reuse_ips and behaviour mismatch
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- cloud, documentation
Direzione di ricerca
Leggi la descrizione di reuse_ips in docs-partials/builder/openstack/RunConfig-not-required.mdx e confrontala con il comportamento in builder/openstack/step_allocate_ip.go, in particolare con il codice collegato vicino alla riga 74. Chiarisci se l’opzione riutilizza solo gli IP flottanti disponibili o ne crea uno quando non ce ne sono, quindi verifica che la documentazione corrisponda al comportamento osservato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Overview
Documentation implies that reuse_ips will trial using any existing floating IPs then create a new one if it cannot find any. I find and code implies to me from a quick look that it will only try reuse_ips and hence if there is not a IP to reuse then will fail.
Reproduction Steps
GitLab-ci runner
build-image:
stage: build
image: hashicorp/packer
before_script:
- mkdir -p ./openstack
- mkdir -p /etc/openstack
- echo "$CLOUDS_YAML" > ./openstack/clouds.yaml
- cp openstack/clouds.yaml /etc/openstack
script:
- packer init ubuntu.pkr.hcl
- packer build -var ubuntu_version=noble ubuntu.pkr.hcl`
Plugin and Packer version
From packer version
Simplified Packer Buildfile
packer {
required_plugins {
openstack = {
version = "~> 1"
source = "github.com/hashicorp/openstack"
}
}
}
source "openstack" "ubuntu" {
flavor = "general.v2.small"
image_name = "packer-test-ubuntu-${var.ubuntu_version}"
external_source_image_url = "https://cloud-images.ubuntu.com/${var.ubuntu_version}/current/${var.ubuntu_version}-server-cloudimg-amd64.img"
ssh_username = "ubuntu"
cloud = "openstack"
networks = ["<removed>"]
floating_ip_network = "external"
reuse_ips = true
insecure = "true"
image_disk_format = "raw"
use_blockstorage_volume = true
volume_size = 10
network_discovery_cidrs = ["<removed>"]
username = "ubuntu"
}
Operating system and Environment details
hashicorp/packer docker image, AMD64
Log Fragments related
Packer init versions
$ packer init ubuntu.pkr.hcl
Installed plugin github.com/hashicorp/openstack v1.1.4 in "/root/.config/packer/plugins/github.com/hashicorp/openstack/packer-plugin-openstack_v1.1.4_x5.0_linux_amd64"
Build failure output
==> openstack.ubuntu: Launching server...
==> openstack.ubuntu: Server ID: 3d10800f-b8a6-49b8-b103-7014cb708c55
==> openstack.ubuntu: Waiting for server to become ready...
==> openstack.ubuntu: Searching for unassociated floating IP
==> openstack.ubuntu: Error searching for floating IP: no free floating IPs found
==> openstack.ubuntu: Terminating the source server: 3d10800f-b8a6-49b8-b103-7014cb708c55 ...
==> openstack.ubuntu: Waiting for volume 2be9f422-8822-460d-b56a-d27327df072d to become available...
==> openstack.ubuntu: Deleting volume: 2be9f422-8822-460d-b56a-d27327df072d ...
==> openstack.ubuntu: Deleting temporary external source image: packer_6aeb58c1-a60a-345c-f49c-0f087813cf4b ...
==> openstack.ubuntu: Deleting temporary keypair: packer_6aeb58c1-74e9-b8e2-4f69-9bad19abed95 ...
Build 'openstack.ubuntu' errored after 1 minute 45 seconds: Error searching for floating IP: no free floating IPs found
==> Wait completed after 1 minute 45 seconds
==> Some builds didn't complete successfully and had errors:
--> openstack.ubuntu: Error searching for floating IP: no free floating IPs found
==> Builds finished but no artifacts were created.
- Lingua principale
- Go
- Stelle
- 29
- Fork
- 27
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hashicorp/packer-plugin-openstack
-
Error initializing block storage client with Openstack 2026.1Forse già presa @elelaysh l’ha presa 72 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
hashicorp/packer-plugin-openstack#162 · 1 commento ·
-
Feature Request: Add keep_volume option to preserve boot volume artifacts in OpenStack builderApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
hashicorp/packer-plugin-openstack#151 · 1 commento · 1 reazione ·
-
Packer 1.12.0-alpha1 testingAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
hashicorp/packer-plugin-openstack#130 · 1 commento ·
-
enhancement good first issue
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
hashicorp/packer-plugin-openstack#116 · 2 commenti ·
Tutte le issue di hashicorp/packer-plugin-openstack
Issue simili
-
csp-probe needs efqdn to probe CSP domainsForse già presa @unknownhackerworld l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
projectdiscovery/httpx#2725 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
category:helper tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
LanternOps/breeze#11285 ·
I maintainer di solito rispondono entro 1 giorno
-
Query cache: a failed cache page read leaves the set request's read lock held, so the scan hangsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
turbot/steampipe-plugin-sdk#986 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100