DomainID or DomainName validation is inconsistent
还没有人认领这个 Issue。
评估
调研方向
使用提供的 test.pkr.hcl 和 packer validate 重现验证行为,比较 domain_id、domain_name、token 和 OS_DOMAIN_ID 的情况。跟踪产生两个冲突错误的验证入口点,并为这些配置添加或更新覆盖率。当等效配置获得一致且正确的验证结果时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Overview of the Issue
Using hashicorp/packer container with a HCL file that contains token:
- Setting
domain_id(withoutdomain_name) ask to remove it because is not required while usingtoken - If neither
domain_nameordomain_idis used then error asking for one of them - If neither
domain_nameordomain_idis used butOS_DOMAIN_IDenv var exported then is OK
Reproduction Steps
packer validate test.pkr.hcl
If domain_id = "default" + token = '...' then:
packer validate vault-raft.pkr.hcl
Error: 1 error(s) occurred:
* DomainID may not be provided when authenticating with a TokenID
on vault-raft.pkr.hcl line 1:
(source code not available)
If #domain_id = "default" = token = '...' then:
Error: 1 error(s) occurred:
* You must provide exactly one of DomainID or DomainName in a Scope with ProjectName
on vault-raft.pkr.hcl line 1:
(source code not available)
If #domain_id = "default" = token = '...' + export OS_DOMAIN_ID=default then:
The configuration is valid.
Plugin and Packer version
packer version
Packer v1.8.0
Simplified Packer Buildfile
test.pkr.hcl file:
source "openstack" "hello" {
#domain_id = "default"
token = "TheRealTokenWasHere"
identity_endpoint = "https://auth.cloud.ovh.net/v3"
image_name = "debian-hello-test"
source_image_name = "Debian 11"
flavor = "s1-2"
tenant_name = "TheTenantNameWasHere"
region = "GRA7"
ssh_username = "debian"
networks = ["TheNetworkIdWasHere"]
}
build {
sources = ["source.openstack.hello"]
provisioner "shell" {
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
scripts = fileset(".", "scripts/{install,secure}.sh")
}
}
Operating system and Environment details
Docker image hashicorp/packer running in GitlabCI runner ignoring the entrypoint
Also tested in a Debian 11 laptop running the same Packer version.
- 主要语言
- 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 小时 新手友好度 84/100
microsoft/TypeScript#65370 ·
维护者通常 1 天内回复
-
bug tech debt testing
难度 2/5 1-3 小时 新手友好度 76/100
aws/amazon-vpc-cni-k8s#3976 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
txn2/mcp-data-platform#2522 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
open-telemetry/opentelemetry-go-contrib#10234 ·
维护者通常 1 天内回复
-
discovery/backoff: default FindPeers limit yields no fresh peers可能已有人在做 @zakazaka95 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100