Documentation of reuse_ips and behaviour mismatch
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cloud, documentation
Hướng nghiên cứu
Đọc phần mô tả reuse_ips trong docs-partials/builder/openstack/RunConfig-not-required.mdx và so sánh với hành vi trong builder/openstack/step_allocate_ip.go, đặc biệt là đoạn mã được liên kết gần dòng 74. Làm rõ liệu tùy chọn này chỉ tái sử dụng các IP nổi hiện có hay tạo một IP khi không có IP nào khả dụng, sau đó xác minh tài liệu có khớp với hành vi quan sát được hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 29
- Fork
- 27
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hashicorp/packer-plugin-openstack
-
Error initializing block storage client with Openstack 2026.1Có thể đã có người làm @elelaysh đã nhận 72 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
hashicorp/packer-plugin-openstack#162 · 1 bình luận ·
-
Feature Request: Add keep_volume option to preserve boot volume artifacts in OpenStack builderĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
hashicorp/packer-plugin-openstack#151 · 1 bình luận · 1 reaction ·
-
Packer 1.12.0-alpha1 testingĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
hashicorp/packer-plugin-openstack#130 · 1 bình luận ·
-
enhancement good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hashicorp/packer-plugin-openstack#116 · 2 bình luận ·
Tất cả issue của hashicorp/packer-plugin-openstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/TypeScript#65370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug tech debt testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aws/amazon-vpc-cni-k8s#3976 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
txn2/mcp-data-platform#2522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-telemetry/opentelemetry-go-contrib#10234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
discovery/backoff: default FindPeers limit yields no fresh peersCó thể đã có người làm @zakazaka95 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100