Skip to content

systemvm: add template_zone_ref record when add a new zone with same hypervisor type#8395

Merged
weizhouapache merged 2 commits intoapache:4.18from
weizhouapache:4.18-fix-template-zone-ref
Apr 25, 2024
Merged

systemvm: add template_zone_ref record when add a new zone with same hypervisor type#8395
weizhouapache merged 2 commits intoapache:4.18from
weizhouapache:4.18-fix-template-zone-ref

Conversation

@weizhouapache
Copy link
Copy Markdown
Member

@weizhouapache weizhouapache commented Dec 21, 2023

Description

This PR should fix #8388

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

The fix ensures that when you have at least one Zone with a specific hypervisor type (e.g. KVM), then when adding a new Zone with the same hypervisor type, even if the systemVM template for that hypervisor (when registered in the original Zone) is not marked as cross_zone=1 (in vm_template table) - i.e. when it's not marked for "ALL ZONES" - CloudStack will created the record in the template_zone_ref table, and the rest of the work will be done by the automatic systemVM template installation script (that runs when a first Secondary Storage is added inside a new Zone)

@weizhouapache
Copy link
Copy Markdown
Member Author

cc @andrijapanicsb

Copy link
Copy Markdown
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

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@weizhouapache 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
Copy link
Copy Markdown

codecov bot commented Dec 21, 2023

Codecov Report

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

Project coverage is 13.12%. Comparing base (9d3a7be) to head (256328f).
Report is 29 commits behind head on 4.18.

Files Patch % Lines
...om/cloud/upgrade/SystemVmTemplateRegistration.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8395   +/-   ##
=========================================
  Coverage     13.12%   13.12%           
  Complexity     9141     9141           
=========================================
  Files          2720     2720           
  Lines        257723   257723           
  Branches      40177    40177           
=========================================
  Hits          33838    33838           
  Misses       219595   219595           
  Partials       4290     4290           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

changes lgtm

@blueorangutan
Copy link
Copy Markdown

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

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan LLtest matrix

@weizhouapache weizhouapache marked this pull request as ready for review December 21, 2023 13:17
@yadvr yadvr added this to the 4.18.2.0 milestone Dec 21, 2023
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Dec 21, 2023

@blueorangutan LLtest matrix

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud a [LL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

Copy link
Copy Markdown
Contributor

@andrijapanicsb andrijapanicsb left a comment

Choose a reason for hiding this comment

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

LGTM

(updated the desc, so it becomes readable for regular mortals :)

@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-6904)

@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-6906)

@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-6905)

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-8657)

@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-6907)

@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-6908)

@weizhouapache weizhouapache marked this pull request as draft December 21, 2023 19:13
@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@weizhouapache 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 8125

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan LLtest

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Feb 5, 2024

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud 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 8521

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Feb 13, 2024

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud 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-9187)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43159 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8395-t9187-kvm-centos7.zip
Smoke tests completed. 109 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 668.19 test_kubernetes_clusters.py

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@weizhouapache 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 9390

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan
Copy link
Copy Markdown

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

@apache apache deleted a comment from blueorangutan Apr 24, 2024
@apache apache deleted a comment from blueorangutan Apr 24, 2024
@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File

@weizhouapache
Copy link
Copy Markdown
Member Author

merging based on approvals and CI tests

@weizhouapache weizhouapache merged commit 0e08a12 into apache:4.18 Apr 25, 2024
@DaanHoogland DaanHoogland deleted the 4.18-fix-template-zone-ref branch April 25, 2024 06:42
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
@yadvr yadvr modified the milestones: 4.18.3, 4.19.1.0 Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

Template reported as Ready/Installed only based on the template_stor_ref, ignoring template_zone_ref

8 participants