[OpenStack] floating_ip is actually floating_ip_id
还没有人认领这个 Issue。
评估
调研方向
从 issue 中链接的 OpenStack builder 文档部分以及使用 floating_ip 的简化 buildfile 开始。使用一个地址和一个 ID 重现不匹配,然后根据报告的错误追踪 builder 对 floating-IP 的查找过程。文档中的输入与 builder 接受的值一致,并且已覆盖报告的案例,即表示完成。
由索引模型根据 Issue 内容生成。
描述
This issue was originally opened by @gkoudjou as hashicorp/packer#8300. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Overview of the Issue
According to the documentation, with the Openstack builders, we can defined a specific floating IP address.
https://www.packer.io/docs/builders/openstack.html#floating_ip
While testing, it appears that packer expects an ID.
Reproduction Steps
Here is some json file :
"builders": [
{
"type": "openstack",
"username": "{{user `username`}}",
"password": "{{user `password`}}",
"identity_endpoint": "XXXXXXXXX",
"region": "regionOne",
"image_name": "{{user `image_name`}}",
"instance_name": "packer-test",
"ssh_timeout": "5m",
"floating_ip_network": "external",
"floating_ip": "10.121.240.228",
]
}
],
And here is the result :
openstack output will be in this color.
==> openstack: Loading flavor: Tiny_Linux
openstack: Verified flavor. ID: 1
==> openstack: Not using temporary keypair
openstack: Found Image ID: d91327b6-ef25-4632-b866-8773927c6a83
==> openstack: Launching server...
==> openstack: Launching server...
openstack: Server ID: 805257ad-79fa-4e38-904c-ef1951e158bd
==> openstack: Waiting for server to become ready...
==> openstack: Error using provided floating IP '10.121.240.228': Resource not found
==> openstack: Terminating the source server: 805257ad-79fa-4e38-904c-ef1951e158bd ...
Build 'openstack' errored: Error using provided floating IP '10.121.240.228': Resource not found
==> Some builds didn't complete successfully and had errors:
--> openstack: Error using provided floating IP '10.121.240.228': Resource not found
But if a use the ID used by requesting openstack, it's working.
openstack output will be in this color.
==> openstack: Loading flavor: Tiny_Linux
openstack: Verified flavor. ID: 1
==> openstack: Not using temporary keypair
openstack: Found Image ID: d91327b6-ef25-4632-b866-8773927c6a83
==> openstack: Launching server...
==> openstack: Launching server...
openstack: Server ID: 324e2b3c-5f83-4829-ad6f-ce706f87f79a
==> openstack: Waiting for server to become ready...
openstack: Selected floating IP: '1d869a1f-9378-4069-a087-7050d337d8a3' (10.121.240.228)
==> openstack: Associating floating IP '1d869a1f-9378-4069-a087-7050d337d8a3' (10.121.240.228) with instance port...
openstack: Added floating IP '1d869a1f-9378-4069-a087-7050d337d8a3' (10.121.240.228) to instance!
Packer version
1.5.0 (yesterday nightly build)
Simplified Packer Buildfile
Please see above
Operating system and Environment details
OS: RHEL 7.3
Architecture: x86_64
Log Fragments and crash.log files
openstack: Found Image ID: d91327b6-ef25-4632-b866-8773927c6a83
==> openstack: Launching server...
==> openstack: Launching server...
openstack: Server ID: dc67299d-0523-44cf-8ac9-7495d6cd6b61
2019/10/31 14:45:31 packer_linux_amd64: 2019/10/31 14:45:31 server id: dc67299d-0523-44cf-8ac9-7495d6cd6b61
2019/10/31 14:45:31 packer_linux_amd64: 2019/10/31 14:45:31 Waiting for state to become: [ACTIVE]
==> openstack: Waiting for server to become ready...
2019/10/31 14:45:32 packer_linux_amd64: 2019/10/31 14:45:32 Waiting for state to become: [ACTIVE] currently BUILD (0%)
2019/10/31 14:45:34 packer_linux_amd64: 2019/10/31 14:45:34 Waiting for state to become: [ACTIVE] currently BUILD (0%)
2019/10/31 14:45:38 packer_linux_amd64: 2019/10/31 14:45:38 Waiting for state to become: [ACTIVE] currently BUILD (0%)
2019/10/31 14:45:41 packer_linux_amd64: 2019/10/31 14:45:41 Waiting for state to become: [ACTIVE] currently BUILD (0%)
2019/10/31 14:45:44 packer_linux_amd64: 2019/10/31 14:45:44 [INFO] Not using winrm communicator, skipping get password...
==> openstack: Error using provided floating IP '10.121.240.228': Resource not found
==> openstack: Terminating the source server: dc67299d-0523-44cf-8ac9-7495d6cd6b61 ...
2019/10/31 14:45:45 packer_linux_amd64: 2019/10/31 14:45:45 Waiting for state to become: [DELETED]
2019/10/31 14:45:46 packer_linux_amd64: 2019/10/31 14:45:46 Waiting for state to become: [DELETED] currently ACTIVE (0%)
Build 'openstack' errored: Error using provided floating IP '10.121.240.228': Resource not found==> Some builds didn't complete successfully and had errors:
--> openstack: Error using provided floating IP '10.121.240.228': Resource not found==> Builds finished but no artifacts were created.
2019/10/31 14:45:48 [INFO] (telemetry) ending openstack
2019/10/31 14:45:48 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2019/10/31 14:45:48 machine readable: openstack,error []string{"Error using provided floating IP '10.121.240.228': Resource not found"}
==> Builds finished but no artifacts were created.
2019/10/31 14:45:48 [INFO] (telemetry) Finalizing.
2019/10/31 14:45:48 packer_linux_amd64: 2019/10/31 14:45:48 [INFO] 404 on ServerStateRefresh, returning DELETED
2019/10/31 14:45:48 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post https://checkpoint-api.hashicorp.com/v1/telemetry/packer: proxyconnect tcp: tls: first record does not look like a TLS handshake
2019/10/31 14:45:48 waiting for all plugin processes to complete...
2019/10/31 14:45:48 /home/vagrant/btp_base_image/packer_linux_amd64: plugin process exited
2019/10/31 14:45:48 /home/vagrant/btp_base_image/packer_linux_amd64: plugin process exited
- 主要语言
- Go
- 星标
- 29
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hashicorp/packer-plugin-openstack 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
Error initializing block storage client with Openstack 2026.1可能已有人在做 @elelaysh 于 72 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 72/100
hashicorp/packer-plugin-openstack#162 · 1 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 52/100
hashicorp/packer-plugin-openstack#151 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
-
Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )未关闭bug
难度 4/5 3-5 天 新手友好度 25/100
hashicorp/packer-plugin-openstack#130 · 1 条评论 ·
查看 hashicorp/packer-plugin-openstack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 67/100
adrianbrad/queue#92 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
agent-ready area:skills
难度 2/5 1-3 小时 新手友好度 75/100
jmbarzee/temporal-architect#444 ·
维护者通常 1 天内回复
-
enhancement needs:sonnet ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复