apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
1.83k stars 1.07k forks source link

Improvements on information about disks size and offering in VM deployment wizard's InfoCard #9249

Open winterhazel opened 2 weeks ago

winterhazel commented 2 weeks ago

Description

The VM deployment wizard only shows one of the disk offerings that will be used to create the VM's volumes, which corresponds to the data disk if using a template, and the root disk if using a ISO. The disk offering that will be used to create the root disk is not shown when deploying through a template. This confuses users, since the wizard does not explicitly show what offering will be used for each disk. Furthermore, the instance summary often presents an incorrect value for the size of the disks.

This PR makes some changes in the deployment wizard in order to explicitly show what offerings will be used for the root and data disks, and to display their correct size.

Types of changes

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

Bug Severity

Screenshots (if appropriate):

image

How Has This Been Tested?

I created one disk offering:

  1. Name and description: Associated. Custom disk size: false. Disk size (in GB): 10.

And two compute offerings:

  1. Name and description: Associated. Compute only disk offering: false: Disk offerings: Associated.
  2. Name and description: Custom. Compute only disk offering: false: Disk offerings: Custom Disk.

In every test described below, I deployed the VM and verified that the VM's volumes were created using the disk offerings and the sizes displayed in the UI.

Tests deploying from a template:

Tests deploying from an ISO:

winterhazel commented 2 weeks ago

@blueorangutan package

blueorangutan commented 2 weeks ago

@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 4.19%. Comparing base (cb48202) to head (d0f9dcd).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #9249 +/- ## ======================================== - Coverage 4.19% 4.19% -0.01% ======================================== Files 369 369 Lines 30233 30246 +13 Branches 5343 5349 +6 ======================================== Hits 1269 1269 - Misses 28820 28833 +13 Partials 144 144 ``` | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/9249/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | |---|---|---| | [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/9249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.19% <ø> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

blueorangutan commented 2 weeks ago

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9934

rohityadavcloud commented 2 weeks ago

@blueorangutan ui

blueorangutan commented 2 weeks ago

@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

rohityadavcloud commented 2 weeks ago

@winterhazel for pure UI changes, pl use BO ui commands; the packaging commands add 3x load on backend CI systems and may be skipped for UI only PRs. Thanks.

blueorangutan commented 2 weeks ago

UI build: :heavy_check_mark: Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9249 (QA-JID-380)