Skip to content

Conversation

@shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Jun 3, 2024

Description

Fixes #9142

Doc PR: apache/cloudstack-documentation#402

New global settings added to specify VM metadata wrt manufacturer and product:

  • vm.metadata.manufacturer
  • vm.metadata.product

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?

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@codecov
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 78.04878% with 9 lines in your changes missing coverage. Please review.

Project coverage is 15.55%. Comparing base (b215abc) to head (032d8f4).
Report is 1 commits behind head on main.

Files Patch % Lines
.../java/com/cloud/agent/api/to/VirtualMachineTO.java 50.00% 6 Missing ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java 72.72% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##               main    #9163     +/-   ##
===========================================
  Coverage     15.55%   15.55%             
- Complexity    12010    12012      +2     
===========================================
  Files          5500     5500             
  Lines        481850   481889     +39     
  Branches      61843    59361   -2482     
===========================================
+ Hits          74935    74967     +32     
- Misses       398628   398636      +8     
+ Partials       8287     8286      -1     
Flag Coverage Δ
uitests 4.17% <ø> (ø)
unittests 16.33% <78.04%> (+<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.

shwstppr added a commit to shapeblue/cloudstack-documentation that referenced this pull request Jun 3, 2024
Related to apache/cloudstack#9163

Signed-off-by: Abhishek Kumar <[email protected]>
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, one minor design option/issue. I would prefer the check to be MS side

@shwstppr shwstppr changed the title orchestration,hypervisor: allow custom manufacture, product for vm metadata orchestration,hypervisor: allow custom manufacturer, product for vm metadata Jun 5, 2024
@shwstppr
Copy link
Contributor Author

shwstppr commented Jun 5, 2024

@blueorangutan package

@blueorangutan
Copy link

@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

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

@rohityadavcloud rohityadavcloud added this to the 4.20.0.0 milestone Jun 10, 2024
Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

LGTM but we should add caveat that it could break cloud-init

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

LGTM didn't test it

@rohityadavcloud
Copy link
Member

@shwstppr is this ready for review or still need some work (as the PR is in draft)

@blueorangutan package

@blueorangutan
Copy link

@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

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

@shwstppr shwstppr marked this pull request as ready for review June 10, 2024 07:41
@shwstppr
Copy link
Contributor Author

@rohityadavcloud marked it ready

A note about cloud-init behaviour is added in the global config descriptions and in the doc PR

@weizhouapache
Copy link
Member

@rohityadavcloud marked it ready

A note about cloud-init behaviour is added in the global config descriptions and in the doc PR

thanks @shwstppr

overall looks good to me

  • is it implemented for kvm ?
  • can you add a unit test for it ?

@shwstppr
Copy link
Contributor Author

@weizhouapache added tests
Currently only used in KVM VM definitions. I couldn't find any reference in other hypervisor plugins

@shwstppr
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

@weizhouapache added tests Currently only used in KVM VM definitions. I couldn't find any reference in other hypervisor plugins

thanks
code lgtm

@blueorangutan
Copy link

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

@shwstppr
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_list_system_vms_metrics_history Failure 0.24 test_metrics_api.py
test_02_trigger_shutdown Failure 346.76 test_safe_shutdown.py
test_01_sys_vm_start Failure 240.43 test_secondary_storage.py
test_11_destroy_ssvm Failure 917.02 test_ssvm.py
test_12_destroy_cpvm Failure 913.26 test_ssvm.py
test_04_deploy_vnf_appliance Error 112.90 test_vnf_templates.py
test_04_deploy_vnf_appliance Error 112.90 test_vnf_templates.py
test_05_delete_vnf_template Error 1.08 test_vnf_templates.py
ContextSuite context=TestVnfTemplates>:teardown Error 2.20 test_vnf_templates.py
test_hostha_enable_ha_when_host_disabled Error 5.96 test_hostha_kvm.py
test_hostha_enable_ha_when_host_in_maintenance Error 306.10 test_hostha_kvm.py

@weizhouapache
Copy link
Member

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-10435)

@shwstppr
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@DaanHoogland
Copy link
Contributor

@blueorangutan LLtest alma8 kvm-alma8

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[LL]Trillian test result (tid-6962)
Environment: kvm-alma8 (x2), Advanced Networking with Mgmt server a8
Total time taken: 46628 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9163-t6962-kvm-alma8.zip
Smoke tests completed. 135 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_invalid_upgrade_kubernetes_cluster Failure 0.01 test_kubernetes_clusters.py
test_02_upgrade_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_04_autoscale_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_06_delete_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 0.00 test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_cluster Failure 0.00 test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycle Error 0.00 test_kubernetes_clusters.py
test_06_purge_expunged_vm_background_task Failure 322.81 test_purge_expunged_vms.py

@vladimirpetrov vladimirpetrov self-assigned this Aug 20, 2024
@shwstppr shwstppr force-pushed the add-custommetamanufactureproduct branch from 7f3c76a to 032d8f4 Compare August 22, 2024 09:36
@shwstppr
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@shwstppr
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Contributor

@vladimirpetrov vladimirpetrov left a comment

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 Oracle Linux 8 KVM and CentOS 7 guest OS.

@DaanHoogland DaanHoogland merged commit 1e12a80 into apache:main Aug 22, 2024
@DaanHoogland DaanHoogland deleted the add-custommetamanufactureproduct branch August 22, 2024 15:19
@blueorangutan
Copy link

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

Test Result Time (s) Test File

dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Abhishek's Bugfix List

Development

Successfully merging this pull request may close these issues.

Allow Users To Change Guest VM 'Hardware Information'

6 participants