Skip to content

server,test: fix resourceid for VOLUME.DESTROY in restore VM - #9032

Merged
DaanHoogland merged 2 commits into
apache:4.19from
shapeblue:fix-eventresourcestest-error
May 22, 2024
Merged

DaanHoogland merged 2 commits into
apache:4.19from
shapeblue:fix-eventresourcestest-error

Conversation

@shwstppr

@shwstppr shwstppr commented May 2, 2024 •

Copy link
Copy Markdown
Contributor

Description

Destroys old ROOT volume for the VM to be restored in its own context to allow event to be published with resourceid. Fixes exception in test_event_resources.py
Fixes failures seen in:
#8601 (comment)
#8601 (comment)
#8601 (comment)

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?

Destroy old ROOT volume for the VM to be restored in its own context to
allow event to be published with resourceid. Fixes exception in
test_event_resources.py

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels May 2, 2024
@shwstppr

shwstppr commented May 2, 2024

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr 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-commenter

codecov-commenter commented May 2, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 14.96%. Comparing base (ea9a0f4) to head (07acb7c).
Report is 1 commits behind head on 4.19.

Files Patch % Lines
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19    #9032      +/-   ##
============================================
- Coverage     14.96%   14.96%   -0.01%     
+ Complexity    10995    10989       -6     
============================================
  Files          5373     5373              
  Lines        469024   469024              
  Branches      58818    61101    +2283     
============================================
- Hits          70197    70177      -20     
- Misses       391056   391078      +22     
+ Partials       7771     7769       -2     
Flag Coverage Δ
uitests 4.31% <ø> (ø)
unittests 15.66% <0.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.

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-10150)

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_01_restore_vm Error 0.21 test_restore_vm.py
test_02_restore_vm_allocated_root Error 0.17 test_restore_vm.py
ContextSuite context=TestRestoreVM>:teardown Error 1.27 test_restore_vm.py
test_02_trigger_shutdown Failure 341.57 test_safe_shutdown.py

@shwstppr

shwstppr commented May 6, 2024

Copy link
Copy Markdown
Contributor Author

Failed tests are unrelated, #8601 (comment)

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

clgtm

@weizhouapache weizhouapache 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 sureshanaparti 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 sureshanaparti changed the title server,test: fix resourceid for VOLUME.DETROY in restore VM server,test: fix resourceid for VOLUME.DESTROY in restore VM May 8, 2024
@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@sureshanaparti sureshanaparti added this to the 4.19.1.0 milestone May 8, 2024
@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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9577

@vishesh92

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_DeployVmAntiAffinityGroup_in_project Error 85.31 test_affinity_groups_projects.py
test_DeployVmAntiAffinityGroup Error 37.76 test_affinity_groups.py
test_03_deploy_and_scale_kubernetes_cluster Failure 33.13 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 0.08 test_kubernetes_clusters.py
test_01_non_strict_host_anti_affinity Failure 119.79 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 81.66 test_nonstrict_affinity_group.py
test_02_trigger_shutdown Failure 346.79 test_safe_shutdown.py
test_02_list_cpvm_vm Failure 0.04 test_ssvm.py
test_04_cpvm_internals Failure 0.04 test_ssvm.py
test_hostha_enable_ha_when_host_in_maintenance Error 304.95 test_hostha_kvm.py

@shwstppr

shwstppr commented May 9, 2024

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@vishesh92

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_02_trigger_shutdown Failure 341.65 test_safe_shutdown.py

@shwstppr
shwstppr marked this pull request as ready for review May 22, 2024 06:08
@shwstppr shwstppr closed this May 22, 2024
@shwstppr shwstppr reopened this May 22, 2024
@DaanHoogland
DaanHoogland merged commit 33659fd into apache:4.19 May 22, 2024
@DaanHoogland
DaanHoogland deleted the fix-eventresourcestest-error branch May 22, 2024 09:02
my-code-AL pushed a commit to my-code-AL/cloudstack that referenced this pull request May 31, 2024
)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 17, 2024
)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
shwstppr added a commit to shapeblue/cloudstack that referenced this pull request Sep 5, 2024
) (apache#454)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

Status: Abhishek's Bugfix List
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants