apache / apache/cloudstack

Inconsistency with respect to volume size and disk offerings

Ouverte
#11,762 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
component:local-storage component:primary-storage component:storage type:bug type:enhancement type:improvement
Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 19 h
PR mergées (30 j)
32

Description

### 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

Image

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

Image

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par l’API changeOfferingForVolume et reproduisez les trois scénarios signalés dans CloudStack 4.20.x, notamment la stricte vérification de la taille du disque et la migration du stockage. Comparez les tailles de volume et les offres de disque obtenues, puis définissez le comportement que devraient avoir, dans ces cas, la restriction globale de redimensionnement proposée et la stricte vérification de l’offre de disque.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
cloud, infrastructure
Type d'issue
Bug
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.