hashicorp / hashicorp/packer-plugin-cloudstack

CloudStack builder can't find service/disk offerings of ROOT domain in a CloudStack domain setting

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Go
星标
5
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

_This issue was originally opened by @hrak in https://github.com/hashicorp/packer/issues/4541 and has been migrated to this repository. The original issue description is below._

---
When using domains in CloudStack, any disk or service offering created in the ROOT domain is not available for use in Packer in any other domain than ROOT, because the API call for discovering disk & service offerings does not pass the 'listall=true' flag.

As a workaround i have now duplicated a service offering from the ROOT domain in my team domain, but it would be nice if packer sees the default offerings of the ROOT domain.

Packer output:
```
cloudstack output will be in this color.

==> cloudstack: Preparing config...
==> cloudstack: 1 error(s) occurred:
==> cloudstack:
==> cloudstack: * Error retrieving UUID of disk offering : No match found for Medium: &{Count:0 DiskOfferings:[]}
Build 'cloudstack' finished.

==> Builds finished. The artifacts of successful builds are:
```

```
☁ Apache CloudStack 🐵 cloudmonkey 5.3.2. Type help or ? to list commands.

Using management server profile: local

(local) 🐵 > list diskofferings
(local) 🐵 >
(local) 🐵 > list diskofferings listall=true
{
"count": 3,
"diskoffering": [
{
"created": "2015-12-04T15:19:59+0000",
"disksize": 5,
"displayoffering": true,
"displaytext": "Small Disk, 5 GB",
"id": "7ed5b6fe-abcf-4769-a9ea-180aa7240279",
"iscustomized": false,
"name": "Small",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"created": "2015-12-04T15:19:59+0000",
"disksize": 20,
"displayoffering": true,
"displaytext": "Medium Disk, 20 GB",
"id": "62f4cdf6-5d01-410c-9ca4-0addc9097229",
"iscustomized": false,
"name": "Medium",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"created": "2015-12-04T15:19:59+0000",
"disksize": 100,
"displayoffering": true,
"displaytext": "Large Disk, 100 GB",
"id": "4517e129-034c-4659-8b56-d8e19b5fb540",
"iscustomized": false,
"name": "Large",
"provisioningtype": "thin",
"storagetype": "shared"
}
]
}
```

Packer version: 0.12.2
CloudStack version: 4.8

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从用于发现磁盘和服务 offering 的 CloudStack builder 代码开始,然后跟踪用于这些查询的 API 调用。复现默认请求与带有 `listall=true` 的请求之间的差异;当可以在另一个域中发现 ROOT 域的 offering,并且在附近存在测试时同时覆盖磁盘和服务 offering,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
cloud
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
40/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。