Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 4.20
Choose a base branch
from

Conversation

sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Jul 16, 2025

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
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

Copy link

codecov bot commented Jul 16, 2025

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 3 commits behind head on 4.20.

Files with missing lines Patch % Lines
...atastore/driver/ScaleIOPrimaryDataStoreDriver.java 50.00% 4 Missing ⚠️
...hypervisor/kvm/storage/StorPoolStorageAdaptor.java 0.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     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.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 sureshanaparti force-pushed the powerflex_smaller_templates_fix branch from 321564c to 6ceac85 Compare July 16, 2025 04:54
@sureshanaparti sureshanaparti changed the title Fix to create instances with smaller templates (< 8 GB) on PowerFlex/ScaleIO storage Fix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage Jul 16, 2025
@blueorangutan
Copy link

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

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

code LGTM

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

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
Contributor Author

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

Copy link
Contributor

@slavkap slavkap left a comment

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

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@sureshanaparti
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Member

@weizhouapache weizhouapache left a comment

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

[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:

Test Result Time (s) Test File

@sureshanaparti
Copy link
Contributor Author

code lgtm

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

correct @weizhouapache

@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

Copy link
Contributor

@vladimirpetrov vladimirpetrov left a comment

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.

Sign up for free to 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