Skip to content

Upload volume format check with the supported hypervisor, fail if supported hypervisor not found on zone#9224

Merged
DaanHoogland merged 1 commit into
apache:4.19from
shapeblue:upload-volume-format-check-with-zone-hypervisor
Jun 12, 2024
Merged

Upload volume format check with the supported hypervisor, fail if supported hypervisor not found on zone#9224
DaanHoogland merged 1 commit into
apache:4.19from
shapeblue:upload-volume-format-check-with-zone-hypervisor

Conversation

@sureshanaparti

Copy link
Copy Markdown
Contributor

Description

This PR checks the upload volume format with the supported hypervisor, fail if supported hypervisor not found on zone.

Fixes #8652

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

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

UploadRawVolumeError

How Has This Been Tested?

Manually tested upload RAW volume from local.

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

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@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

codecov Bot commented Jun 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 4.30%. Comparing base (edf7394) to head (401b100).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.19   #9224       +/-   ##
============================================
- Coverage     14.96%   4.30%   -10.67%     
============================================
  Files          5373     363     -5010     
  Lines        469311   29312   -439999     
  Branches      57432    5118    -52314     
============================================
- Hits          70230    1261    -68969     
+ Misses       391307   27908   -363399     
+ Partials       7774     143     -7631     
Flag Coverage Δ
uitests 4.30% <ø> (ø)
unittests ?

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.

@vladimirpetrov vladimirpetrov self-assigned this Jun 11, 2024
@blueorangutan

Copy link
Copy Markdown

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

@vladimirpetrov vladimirpetrov 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 based on manual testing. Tested with RAW, VHD and OVA volumes on KVM hypervisor and RAW, VHD and QCOW2 on VMWare.

}

sanitizeFormat(format);
checkFormatWithSupportedHypervisorsInZone(format, zoneId);

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.

should we still call sanitizeFormat?

@sureshanaparti sureshanaparti Jun 12, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes @DaanHoogland, it's called before. this is duplicate call. so removed

String format = sanitizeFormat(cmd.getFormat());

String format = sanitizeFormat(cmd.getFormat());

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

@DaanHoogland DaanHoogland merged commit 503ae64 into apache:4.19 Jun 12, 2024
@DaanHoogland DaanHoogland deleted the upload-volume-format-check-with-zone-hypervisor branch June 12, 2024 09:40
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Unable to attach a raw format volume to an instance running on KVM

4 participants