Inconsistency with respect to volume size and disk offerings
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
### The required feature described as a wish
ISSUE TYPE
Enhacement/Bug
COMPONENT NAME
Component: Enhancement/Bug
CLOUDSTACK VERSION
Cloudstack version 4.20.x
SUMMARY
Inconsistency with respect to volume size and disk offerings
As this could cause usage issue for the operator
**Steps to reproduce the issue**
Following are the scnearios where there is a mismatch between volume size and its associated disk offerings.
This could cause usage issues for the cloud operator
Scenario1
1. Use or create a diskoffering disk which has "Disk size strictness" as false and a fixed Disk size
2. Deploy a vm with a data disk offering, let's say using the default Small disk offering ( 5gb)
3. Stop the vm
4. Change the disk offering to Medium API using tha api or the UI
https://cloudstack.apache.org/api/apidocs-4.21/apis/changeOfferingForVolume.html
(changeOfferingForVolume)
5. The data disk volume size changes to 20 gb
6. Disk offering remains Small
Scenario2
1. Create compute offering with "Disk offering strictness" set true
Screenshot
Let's say small disk offfering
2. Launch a vm with root disk
3. Stop the vm
4. Resize of the root volume to 10 gb
Scenario 3
1. Create a disk offering with "Disk size strictness" true on shared storage ( say 10gb)
2. Deploy a vm with data disk on the shareed storage
3. Stop the vm
4. Migrate the data disk volume to local storage and replace disk offering to a local disk offering ( of size 20gb)
5. Size of the disk remains 10gb but the offering is differnnet
Screenshot
Current behaviour
The Inconsistency can be reduced when the user applies the following configuration
Create a root disk with Disk offering strictness
Create a data disk with Disk size strictness"
Enhacement request
Introduce a global parameter to disable the resize operation for any volume
Introduce the Disk offering strictness option to disk offerings also,
Currently its only available for compute offerings
贡献指南
调研方向
从 changeOfferingForVolume API 开始,在 CloudStack 4.20.x 中复现报告的三个场景,包括磁盘大小严格性和存储迁移。比较最终的卷大小和磁盘 offering,然后定义所提议的全局调整大小限制和磁盘 offering 严格性在这些场景下应如何表现。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- cloud, infrastructure
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100