Skip to content

Fix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage - #11211

Merged
sureshanaparti merged 2 commits into
apache:4.20from
shapeblue:powerflex_smaller_templates_fix
Jul 22, 2025
Merged

Fix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage#11211
sureshanaparti merged 2 commits into
apache:4.20from
shapeblue:powerflex_smaller_templates_fix

Conversation

@sureshanaparti

@sureshanapartisureshanaparti commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

Description

This PR allows create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage (it's regression after #9008).

Fixes#10981

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?

Deployed instance using the template (http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-kvm.qcow2.bz2) on PowerFlex storage.

How did you try to break this feature and the system with this change?

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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

codecovBot commented Jul 16, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 16.15%. Comparing base (9688cbb) to head (5976ec0).
Report is 6 commits behind head on 4.20.

Files with missing linesPatch %Lines
...atastore/driver/ScaleIOPrimaryDataStoreDriver.java50.00%4 Missing ⚠️
...hypervisor/kvm/storage/StorPoolStorageAdaptor.java0.00%1 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.20 #11211 +/- ##
=========================================
Coverage 16.15% 16.15% Complexity 13274 13274 =========================================
Files 5656 5656 Lines 497728 497793 +65 Branches 60360 60367 +7 =========================================
+ Hits 80420 80442 +22 - Misses 408357 408396 +39 - Partials 8951 8955 +4 
FlagCoverage Δ
uitests4.00% <ø> (ø)
unittests17.01% <40.00%> (+<0.01%)⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sureshanaparti
sureshanapartiforce-pushed the powerflex_smaller_templates_fix branch from 321564c to 6ceac85CompareJuly 16, 2025 04:54
@sureshanapartisureshanaparti changed the title Fix to create instances with smaller templates (< 8 GB) on PowerFlex/ScaleIO storageFix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storageJul 16, 2025
@blueorangutan

Copy link
Copy Markdown

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

@harikrishna-patnalaharikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code 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, but includes a change in the storpool adaptor. @slavkap can you have a look?

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

clgtm, but includes a change in the storpool adaptor. @slavkap can you have a look?

@DaanHoogland I noticed an NPE in storpool adaptor, check the log in the issue #10981. cc @slavkap

@slavkapslavkap 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.

code LGTM
Thanks, @sureshanaparti, I have this fix in another PR #9478, but it will be better for this to get in an earlier release

@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

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@weizhouapacheweizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

@sureshanaparti
If volume size is smaller than 1GB, ACS allocates 8GB on powerflex, right ?

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13799)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 57765 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11211-t13799-kvm-ol8.zip
Smoke tests completed. 141 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

code lgtm

@sureshanaparti If volume size is smaller than 1GB, ACS allocates 8GB on powerflex, right ?

correct @weizhouapache

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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.

@blueorangutan

Copy link
Copy Markdown

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

@vladimirpetrovvladimirpetrov 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.

LGTM, tested with Ubuntu 18, Debian 9 and macchinina templates.

@sureshanapartisureshanaparti added this to the 4.20.2 milestone Jul 22, 2025
@sureshanaparti
sureshanaparti merged commit d5f6b7c into apache:4.20Jul 22, 2025
25 of 26 checks passed
@DaanHoogland
DaanHoogland deleted the powerflex_smaller_templates_fix branch July 22, 2025 16:55
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Aug 6, 2025
…ScaleIO storage (apache#11211)
* Fix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage
* code improvements
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to create instance on PowerFlex storage (with smaller templates)

7 participants

@sureshanaparti@blueorangutan@DaanHoogland@harikrishna-patnala@vladimirpetrov@slavkap@weizhouapache