Skip to content

test: add test for standalone snapshot - #8104

Merged
shwstppr merged 1 commit into
apache:4.18from
shapeblue:add-test-snap-standalone
Oct 19, 2023
Merged

test: add test for standalone snapshot#8104
shwstppr merged 1 commit into
apache:4.18from
shapeblue:add-test-snap-standalone

Conversation

@shwstppr

@shwstpprshwstppr commented Oct 16, 2023

Copy link
Copy Markdown
Contributor

Description

Fixes#8034

Adds the following test for a backed-up snapshot (original template and VM deleted beforehand):

  • Create volume from snapshot
  • Create a template from the snapshot and deploy a VM using it

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

How Has This Been Tested?

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

Fixesapache#8034
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels Oct 16, 2023
@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SF] 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.

@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

@DaanHoogland

Copy link
Copy Markdown
Contributor

ui build fails with

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community/>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-10-16T13_06_23_305Z-debug.log

I didn´t see this one before, but might mean we need to upgrade npm??? cc @rohityadavcloud ?

@codecov

codecovBot commented Oct 16, 2023

Copy link
Copy Markdown

Codecov Report

Merging #8104 (6f05ed6) into 4.18 (3e7f21a) will increase coverage by 15.51%.
Report is 6 commits behind head on 4.18.
The diff coverage is n/a.

@@ Coverage Diff @@## 4.18 #8104 +/- ##
=============================================
+ Coverage 13.06% 28.57% +15.51% - Complexity 9109 31199 +22090 
=============================================
Files 2720 5101 +2381 Lines 257526 379527 +122001 Branches 40150 61382 +21232 =============================================
+ Hits 33655 108465 +74810 - Misses 219644 256120 +36476 - Partials 4227 14942 +10715 
FlagCoverage Δ
simulator-marvin-tests25.24% <ø> (?)
uitests4.84% <ø> (?)
unit-tests14.49% <ø> (?)

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

see 3670 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@shwstpprshwstppr reopened this Oct 16, 2023
@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_02_upgrade_kubernetes_clusterFailure576.50test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure623.90test_kubernetes_clusters.py
test_03_deploy_vm_wrong_checksumError40.70test_templates.py
test_09_list_templates_download_detailsFailure0.05test_templates.py

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

Template failures are unrelated and have been fixed in #8096

@shwstppr
shwstppr changed the base branch from main to 4.18October 17, 2023 11:16
@shwstpprshwstppr reopened this Oct 17, 2023
@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SF] 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.

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

LGTM thanks @shwstppr for adding test case

@yadvryadvr added this to the 4.18.2.0 milestone Oct 17, 2023
@borisstoyanov

Copy link
Copy Markdown
Contributor

@blueorangutan test

@borisstoyanovborisstoyanov 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, let's wait for test results

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7410

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) 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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_03_deploy_vm_wrong_checksumError40.61test_templates.py
test_09_list_templates_download_detailsFailure0.04test_templates.py

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

Merging this based on the test results

@shwstppr
shwstppr merged commit 540c7b8 into apache:4.18Oct 19, 2023
shwstppr added a commit to shapeblue/cloudstack that referenced this pull request Dec 27, 2023
Fixesapache#8034
Adds the following test for a backed-up snapshot (original template and VM deleted beforehand):
- Create volume from snapshot
- Create a template from the snapshot and deploy a VM using it
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
(cherry picked from commit 540c7b8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-testPythonWarning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KVM volume snapshots are not full snapshots anymore

6 participants

@shwstppr@blueorangutan@DaanHoogland@borisstoyanov@yadvr@weizhouapache