Skip to content

AutoScaling: support Managed User Data#7769

Merged
weizhouapache merged 22 commits intoapache:4.18from
weizhouapache:4.18-asgroup-add-userdata-support
Aug 22, 2023
Merged

AutoScaling: support Managed User Data#7769
weizhouapache merged 22 commits intoapache:4.18from
weizhouapache:4.18-asgroup-add-userdata-support

Conversation

@weizhouapache
Copy link
Member

@weizhouapache weizhouapache commented Jul 25, 2023

Description

This PR fixes the issue that template userdata and userdata policy are not considered in the AutoScale VM group.

Related doc PR: apache/cloudstack-documentation#335

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)

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?

@weizhouapache
Copy link
Member Author

@blueorangutan package

@weizhouapache weizhouapache added this to the 4.18.1.0 milestone Jul 25, 2023
@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan package

@apache apache deleted a comment from blueorangutan Jul 25, 2023
@blueorangutan
Copy link

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

@weizhouapache weizhouapache force-pushed the 4.18-asgroup-add-userdata-support branch 2 times, most recently from 2c9e2c1 to 1a56da7 Compare July 25, 2023 08:54
@weizhouapache weizhouapache force-pushed the 4.18-asgroup-add-userdata-support branch from 1a56da7 to 7d379fd Compare July 25, 2023 09:17
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

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

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

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #7769 (5ba953d) into 4.18 (ddc2a36) will increase coverage by 0.02%.
Report is 1 commits behind head on 4.18.
The diff coverage is 65.45%.

@@             Coverage Diff              @@
##               4.18    #7769      +/-   ##
============================================
+ Coverage     13.04%   13.06%   +0.02%     
- Complexity     9067     9083      +16     
============================================
  Files          2720     2720              
  Lines        257236   257284      +48     
  Branches      40103    40114      +11     
============================================
+ Hits          33552    33610      +58     
+ Misses       219474   219453      -21     
- Partials       4210     4221      +11     
Files Changed Coverage Δ
...ava/com/cloud/upgrade/dao/Upgrade41800to41810.java 2.30% <0.00%> (-0.06%) ⬇️
...main/java/com/cloud/api/ApiAsyncJobDispatcher.java 0.00% <0.00%> (ø)
server/src/main/java/com/cloud/api/ApiServer.java 1.82% <0.00%> (-0.01%) ⬇️
...rver/src/main/java/com/cloud/vm/UserVmManager.java 100.00% <ø> (ø)
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 7.33% <ø> (ø)
...ava/com/cloud/network/as/AutoScaleManagerImpl.java 56.83% <67.74%> (+0.34%) ⬆️
...src/main/java/com/cloud/api/ApiResponseHelper.java 4.53% <87.50%> (+0.70%) ⬆️
...ava/com/cloud/network/as/AutoScaleVmProfileVO.java 80.20% <100.00%> (+11.66%) ⬆️
...c/main/java/com/cloud/user/AccountManagerImpl.java 20.47% <100.00%> (+0.02%) ⬆️

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

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_02_upgrade_kubernetes_cluster Failure 301.08 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 3668.77 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.08 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 316.87 test_kubernetes_clusters.py
test_01_migrate_VM_and_root_volume Error 77.66 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 56.40 test_vm_life_cycle.py
test_10_attachAndDetach_iso Error 12.39 test_vm_life_cycle.py

@weizhouapache weizhouapache force-pushed the 4.18-asgroup-add-userdata-support branch from ff47f11 to 6d0088b Compare July 26, 2023 06:34
@weizhouapache
Copy link
Member Author

@blueorangutan package

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

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

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

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

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

@weizhouapache weizhouapache changed the title AutoScaling: support userdata id and userdata details AutoScaling: support managed userdata Aug 21, 2023
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

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

@weizhouapache weizhouapache changed the title AutoScaling: support managed userdata AutoScaling: support Managed User Data Aug 21, 2023
@weizhouapache weizhouapache marked this pull request as ready for review August 21, 2023 15:40
@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan test matrix

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@blueorangutan
Copy link

[SF] Trillian test result (tid-7496)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43946 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7769-t7496-kvm-centos7.zip
Smoke tests completed. 107 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_upgrade_kubernetes_cluster Failure 562.56 test_kubernetes_clusters.py

@rajujith rajujith self-requested a review August 22, 2023 08:57
Copy link

@rajujith rajujith left a comment

Choose a reason for hiding this comment

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

LGTM. I Verified that managed user data works fine with Autoscale VM groups.

@weizhouapache
Copy link
Member Author

thanks @harikrishna-patnala @DaanHoogland for code review
thanks @borisstoyanov @rajujith for testing

merging

@weizhouapache weizhouapache merged commit 78bdde9 into apache:4.18 Aug 22, 2023
@DaanHoogland DaanHoogland deleted the 4.18-asgroup-add-userdata-support branch August 22, 2023 09:26
@blueorangutan
Copy link

[SF] Trillian test result (tid-7503)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 47269 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7769-t7503-vmware-67u3.zip
Smoke tests completed. 107 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_upgrade_kubernetes_cluster Failure 592.43 test_kubernetes_clusters.py

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.

7 participants