Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for disabling serivce / system and disk offerings #9546

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Pearl1594
Copy link
Contributor

Description

This PR addresses: #8440

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
  • test (unit or integration test code)

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

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 18.18182% with 18 lines in your changes missing coverage. Please review.

Project coverage is 15.81%. Comparing base (638c152) to head (590dc48).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../cloud/configuration/ConfigurationManagerImpl.java 0.00% 9 Missing ⚠️
.../main/java/com/cloud/vm/dao/VMInstanceDaoImpl.java 40.00% 6 Missing ⚠️
...ain/java/com/cloud/api/query/QueryManagerImpl.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##               main    #9546     +/-   ##
===========================================
  Coverage     15.81%   15.81%             
- Complexity    12539    12554     +15     
===========================================
  Files          5623     5629      +6     
  Lines        491606   492041    +435     
  Branches      59582    61524   +1942     
===========================================
+ Hits          77725    77817     +92     
- Misses       405562   405901    +339     
- Partials       8319     8323      +4     
Flag Coverage Δ
uitests 4.48% <ø> (-0.02%) ⬇️
unittests 16.60% <18.18%> (+<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.

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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 10698

return Active;
}
State state = EnumUtils.getEnumIgnoreCase(State.class, diskOfferingState);
if (!diskOfferingState.equalsIgnoreCase("all") && state == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these checks not relevant anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just made this uniform to how it works with listing network and vpc offerings ; wherein when the state isn't passed, we list all offerings - so we do not explicitly need "all"

return Active;
}
State state = EnumUtils.getEnumIgnoreCase(State.class, serviceOfferingState);
if (!serviceOfferingState.equalsIgnoreCase("all") && state == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just made this uniform to how it works with listing network and vpc offerings ; wherein when the state isn't passed, we list all offerings - so we do not explicitly need "all"

Comment on lines 3550 to 3551
} else {
sc.setParameters("state", Arrays.asList(ServiceOffering.State.Active, ServiceOffering.State.Inactive));
Copy link
Member

Choose a reason for hiding this comment

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

Why is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in case we don't specify what offering is required , this would list offerings in both active and inactive states

Copy link
Contributor

Choose a reason for hiding this comment

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

If you do not set the state condition (AKA where state in x), both active and inactive will be listed.

@vishesh92
Copy link
Member

I am not sure if should allow deletion of offerings. This could potentially cause some issues when the offering being deleted is still in use by some other resource (e.g. CKS, autoscaling group, etc.) which could then result in NPE or some other errors.

@Pearl1594
Copy link
Contributor Author

I am not sure if should allow deletion of offerings. This could potentially cause some issues when the offering being deleted is still in use by some other resource (e.g. CKS, autoscaling group, etc.) which could then result in NPE or some other errors.

@vishesh92 Checks have been added to prevent deletion of offerings if there are any VMs or volumes using them

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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 10715

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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 10716


ServiceOfferingSearch = createSearchBuilder();
ServiceOfferingSearch.and("serviceOfferingId", ServiceOfferingSearch.entity().getServiceOfferingId(), Op.EQ);
BackupSearch.done();
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be ServiceOfferingSearch.done here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right

Comment on lines 3550 to 3551
} else {
sc.setParameters("state", Arrays.asList(ServiceOffering.State.Active, ServiceOffering.State.Inactive));
Copy link
Contributor

Choose a reason for hiding this comment

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

If you do not set the state condition (AKA where state in x), both active and inactive will be listed.

@@ -3913,8 +3915,7 @@ private Pair<List<Long>, Integer> searchForServiceOfferingIdsAndCount(ListServic
}

serviceOfferingSearch.join("diskOfferingSearch", diskOfferingSearch, JoinBuilder.JoinType.INNER, JoinBuilder.JoinCondition.AND,
serviceOfferingSearch.entity().getDiskOfferingId(), diskOfferingSearch.entity().getId(),
serviceOfferingSearch.entity().setString("Active"), diskOfferingSearch.entity().getState());
serviceOfferingSearch.entity().getDiskOfferingId(), diskOfferingSearch.entity().getId());
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this a query that is executed if vmid != null? if so, should we list inactive offerings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this PR aims to support disabling service offerings - to make it similar to the way network offerings work, it would make sense to list active and inactive offerings

Copy link
Contributor

@JoaoJandre JoaoJandre Aug 20, 2024

Choose a reason for hiding this comment

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

This method is too long (500+ lines...) for me to judge what it is exactly doing and where it is being done.
I just want to make sure that when creating VMs we don't list inactive offerings. If this change does not cause that, then I'm ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Al, that's a fair point.. Probably reverting to it listing Active by default would be a better option. Thanks.

Comment on lines 4047 to 4048
} else {
sc.setParameters("state", Arrays.asList(ServiceOffering.State.Active, ServiceOffering.State.Inactive));
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, if you do not set this parameter, both active and inactive offerings will be queried.

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@Pearl1594
Copy link
Contributor Author

@blueorangutan test matrix

@blueorangutan
Copy link

@Pearl1594 a [SL] Trillian-Jenkins matrix job (EL8 mgmt + EL8 KVM, Ubuntu22 mgmt + Ubuntu22 KVM, EL8 mgmt + VMware 7.0u3, EL9 mgmt + XCP-ng 8.2 ) has been kicked to run smoke tests

@blueorangutan
Copy link

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

Test Result Time (s) Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardown Error 52.94 test_deploy_virtio_scsi_vm.py
test_01_deploy_vm_from_direct_download_template_nfs_storage Error 37.58 test_direct_download.py
ContextSuite context=TestDirectDownloadTemplates>:teardown Error 1.10 test_direct_download.py
test_01_add_primary_storage_disabled_host Error 0.27 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 3.12 test_service_offerings.py
test_02_list_snapshots_with_removed_data_store Error 9.67 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 9.68 test_snapshots.py
ContextSuite context=TestCreateTemplate>:setup Error 117.34 test_templates.py
test_01_deploy_vm_on_specific_host Error 0.10 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.13 test_vm_deployment_planner.py
test_01_migrate_VM_and_root_volume Error 93.59 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 51.99 test_vm_life_cycle.py
test_01_secure_vm_migration Error 144.61 test_vm_life_cycle.py
test_01_secure_vm_migration Error 144.62 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 0.02 test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migration Error 0.02 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 0.02 test_vm_life_cycle.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.27 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.29 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.33 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.31 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.29 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.30 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.28 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 3.68 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.29 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 3.68 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.27 test_vm_strict_host_tags.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-11263)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 56713 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9546-t11263-vmware-70u3.zip
Smoke tests completed. 127 look OK, 12 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_04_list_domains_level_filter Failure 0.06 test_list_domains.py
test_05_list_domains_no_filter Failure 0.03 test_list_domains.py
test_02_list_disk_offerings_name_filter Failure 0.03 test_list_disk_offerings.py
test_06_list_disk_offerings_keyword_filter Failure 0.03 test_list_disk_offerings.py
test_05_list_volumes_isrecursive Failure 0.05 test_list_volumes.py
test_07_list_volumes_listall Failure 0.04 test_list_volumes.py
test_01_deployVMInSharedNetwork Error 329.53 test_network.py
test_01_add_primary_storage_disabled_host Error 0.24 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
test_02_restore_vm_with_disk_offering Error 57.32 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 59.20 test_restore_vm.py
ContextSuite context=TestServiceOfferings>:setup Error 8.33 test_service_offerings.py
test_02_list_snapshots_with_removed_data_store Error 10.69 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 10.69 test_snapshots.py
ContextSuite context=TestCreateTemplate>:setup Error 136.64 test_templates.py
test_01_deploy_vm_on_specific_host Error 0.11 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.15 test_vm_deployment_planner.py
test_03_live_migrate_VM_with_two_data_disks Error 62.19 test_vm_life_cycle.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.27 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.28 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.28 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.27 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.30 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.32 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.27 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 2.77 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.28 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.95 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.28 test_vm_strict_host_tags.py

@blueorangutan
Copy link

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

Test Result Time (s) Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardown Error 44.88 test_deploy_virtio_scsi_vm.py
test_01_deploy_vm_from_direct_download_template_nfs_storage Error 35.53 test_direct_download.py
ContextSuite context=TestDirectDownloadTemplates>:teardown Error 1.11 test_direct_download.py
test_01_add_primary_storage_disabled_host Error 0.27 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
test_02_create_volume Error 20.92 test_resource_names.py
test_02_create_volume Error 20.93 test_resource_names.py
ContextSuite context=TestResourceNames>:teardown Error 41.72 test_resource_names.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 3.15 test_service_offerings.py
test_02_list_snapshots_with_removed_data_store Error 10.69 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 10.69 test_snapshots.py
ContextSuite context=TestCreateTemplate>:setup Error 141.14 test_templates.py
test_01_deploy_vm_on_specific_host Error 0.09 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.14 test_vm_deployment_planner.py
test_01_migrate_VM_and_root_volume Error 103.01 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 55.17 test_vm_life_cycle.py
test_01_secure_vm_migration Error 65.25 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 225.52 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 143.81 test_vm_life_cycle.py
test_08_migrate_vm Error 0.08 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.34 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.32 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.35 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.36 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.29 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.35 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.31 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 5.80 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.31 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.79 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.32 test_vm_strict_host_tags.py
test_hostha_kvm_host_degraded Error 717.92 test_hostha_kvm.py
test_hostha_kvm_host_degraded Error 717.92 test_hostha_kvm.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-11264)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server a9
Total time taken: 72998 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9546-t11264-xcpng82.zip
Smoke tests completed. 126 look OK, 13 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_condensed_drs_algorithm Failure 172.42 test_cluster_drs.py
test_02_balanced_drs_algorithm Failure 177.75 test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 10.57 test_network.py
test_01_non_strict_host_anti_affinity Error 213.31 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 110.35 test_nonstrict_affinity_group.py
test_01_add_primary_storage_disabled_host Error 15.47 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
test_02_create_volume Error 4.34 test_resource_names.py
test_01_scale_vm Error 181.82 test_scale_vm.py
test_04_scale_vm_with_user_account Error 175.06 test_scale_vm.py
ContextSuite context=TestScaleVm>:teardown Error 69.84 test_scale_vm.py
ContextSuite context=TestServiceOfferings>:setup Error 18.14 test_service_offerings.py
test_02_list_snapshots_with_removed_data_store Error 13.80 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 13.80 test_snapshots.py
ContextSuite context=TestCreateTemplate>:setup Error 201.39 test_templates.py
test_01_volume_usage Error 99.28 test_usage.py
test_01_deploy_vm_on_specific_host Error 0.10 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.17 test_vm_deployment_planner.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.31 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.31 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.28 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.29 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.29 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.33 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.28 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 5.72 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.31 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.72 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.30 test_vm_strict_host_tags.py

@Pearl1594
Copy link
Contributor Author

Seems like quite a few of the test failures weren't related to the changes of the PR

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland 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 10905

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardown Error 49.76 test_deploy_virtio_scsi_vm.py
test_01_add_primary_storage_disabled_host Error 0.27 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
ContextSuite context=TestResourceNames>:teardown Error 40.90 test_resource_names.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:teardown Error 142.92 test_service_offerings.py
test_02_list_snapshots_with_removed_data_store Error 13.78 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 13.78 test_snapshots.py
ContextSuite context=TestCreateTemplate>:setup Error 116.36 test_templates.py
test_01_deploy_vm_on_specific_host Error 0.11 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.13 test_vm_deployment_planner.py
test_01_migrate_VM_and_root_volume Error 93.66 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 53.08 test_vm_life_cycle.py
test_01_secure_vm_migration Error 144.62 test_vm_life_cycle.py
test_01_secure_vm_migration Error 144.63 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 0.02 test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migration Error 0.02 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 0.02 test_vm_life_cycle.py
test_08_migrate_vm Error 0.06 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.33 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.30 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.28 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.29 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.28 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.32 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.26 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 2.69 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.29 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.78 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.28 test_vm_strict_host_tags.py

@rohityadavcloud rohityadavcloud added this to the 4.20.0.0 milestone Sep 4, 2024
Copy link

github-actions bot commented Sep 5, 2024

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@Pearl1594
Copy link
Contributor Author

Most test failures seems not related to this PR:

Test Reason
test_primary_storage.py Failed to add data store: Storage pool nfs2 already in use by another pod
test_vm_deployment_planner.py ol8.localdomain is not in the right state
test_vm_life_cycle ol8.localdomain is not in the right state Or Unable to deploy the VM as the host: ol8.localdomain is not in the right state or TypeError: object of type 'NoneType' has no len()
test_vm_strict_host_tags Unable to deploy the VM as the host: ol8.localdomain is not in the right stat

@JoaoJandre JoaoJandre modified the milestones: 4.20.0.0, 4.21.0.0 Sep 10, 2024
@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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 11086

@Pearl1594
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
ContextSuite context=TestClusterDRS>:setup Error 0.00 test_cluster_drs.py
ContextSuite context=TestDeployVirtioSCSIVM>:teardown Error 50.78 test_deploy_virtio_scsi_vm.py
test_01_add_primary_storage_disabled_host Error 0.22 test_primary_storage.py
test_03_migration_options_storage_tags Error 0.02 test_primary_storage.py
ContextSuite context=TestResourceNames>:teardown Error 41.62 test_resource_names.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:teardown Error 152.94 test_service_offerings.py
ContextSuite context=TestSharedFSLifecycle>:teardown Error 69.99 test_sharedfs_lifecycle.py
test_02_list_snapshots_with_removed_data_store Error 0.00 test_snapshots.py
test_01_deploy_vm_on_specific_host Error 0.09 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 0.12 test_vm_deployment_planner.py
test_01_migrate_VM_and_root_volume Error 95.41 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.71 test_vm_life_cycle.py
test_01_secure_vm_migration Error 316.39 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 340.06 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 268.43 test_vm_life_cycle.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 0.27 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 0.24 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 0.23 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 0.24 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 0.25 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 0.27 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 0.18 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 2.57 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 0.23 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.62 test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failure Failure 0.21 test_vm_strict_host_tags.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.

8 participants