Skip to content

Simplify validation while creating volume templates via UI - #9828

Merged
JoaoJandre merged 1 commit into
apache:4.20from
scclouds:fix-create-template-from-vm
Dec 3, 2024
Merged

Simplify validation while creating volume templates via UI#9828
JoaoJandre merged 1 commit into
apache:4.20from
scclouds:fix-create-template-from-vm

Conversation

@hsato03

Copy link
Copy Markdown
Member

Description

Currently, creating templates for DATADISK volumes is only possible if they have already been part of a VM and are detached. This behavior has been extended so that the volume does not need to be detached and the template can be created as long as the VM is stopped.

Furthermore, the UI allows templates to be created for ROOT volumes in the Allocated state, however, the creation always results in an error as the volume needs to exist in the primary storage for the template creation to be possible. With the changes, this option is no longer available.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

In the UI, I tried creating a template from a volume in different scenarios:

VM StateVolume TypeVolume StateCould create the template?
1StoppedROOTAllocatedNo
2StoppedROOTReadyYes
3StoppedDATADISKReadyYes
4Detached volumeDATADISKReadyYes
5RunningROOTReadyNo
6RunningDATADISKReadyNo

@codecov

codecovBot commented Oct 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.78%. Comparing base (019f2c6) to head (f24550b).
Report is 63 commits behind head on 4.20.

Additional details and impacted files
@@ Coverage Diff @@## 4.20 #9828 +/- ##
==========================================
Coverage 15.78% 15.78% - Complexity 12564 12565 +1 
==========================================
Files 5627 5627 Lines 492250 492250 Branches 61405 61137 -268 ==========================================
Hits 77710 77710 Misses 406066 406066 Partials 8474 8474 
FlagCoverage Δ
uitests4.04% <ø> (ø)
unittests16.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hsato03

Copy link
Copy Markdown
MemberAuthor

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

UI build failed: ✖️
(SL-JID-466)

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

UI build failed: ✖️
(SL-JID-469)

@blueorangutan

Copy link
Copy Markdown

UI build: ✖️
(SL-JID-4051)

@Pearl1594Pearl1594 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified listed combinations, works as expected. LGTM

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm (and tested by @Pearl1594 ) not sure what caused the build failures yet, but investigating

@hsato03

Copy link
Copy Markdown
MemberAuthor

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9828 (QA-JID-477)

@JoaoJandreJoaoJandre added this to the 4.20.1 milestone Dec 3, 2024
@JoaoJandre
JoaoJandre changed the base branch from main to 4.20December 3, 2024 17:44
@JoaoJandre
JoaoJandre merged commit 666efc4 into apache:4.20Dec 3, 2024
DaanHoogland added a commit that referenced this pull request Dec 4, 2024
* 4.20:
UI: Fix userdata and load balancer selection (#10016)
Prevent password updates for SAML and LDAP users (#9999)
cloudstack-migrate-databases: sql AND added (#10033)
engine/schema: move SQLs to 4.20.0 to 4.20.1 upgrade (#10018)
Remove user from project before deletion (#10008)
Simplify validation for creating volume templates via UI (#9828)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 12, 2024
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 12, 2024
* 4.20:
UI: Fix userdata and load balancer selection (apache#10016)
Prevent password updates for SAML and LDAP users (apache#9999)
cloudstack-migrate-databases: sql AND added (apache#10033)
engine/schema: move SQLs to 4.20.0 to 4.20.1 upgrade (apache#10018)
Remove user from project before deletion (apache#10008)
Simplify validation for creating volume templates via UI (apache#9828)
@Pearl1594Pearl1594 moved this to Done in ACS 4.20.1Mar 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@hsato03@blueorangutan@DaanHoogland@Pearl1594@JoaoJandre