Skip to content

Fix NPE on updating security groups for an instance #10493

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

Open
wants to merge 3 commits into
base: 4.20
Choose a base branch
from

Conversation

vishesh92
Copy link
Member

Description

This PR fixes #10347

Details

This pull request includes changes to the UserVmManagerImpl class and UI components to improve the handling of security groups for virtual machines. The most important changes include refactoring the security group update logic and adding UI support for security groups.

Backend changes:

UI changes:

  • ui/src/views/compute/EditVM.vue: Modified the security group enablement check to fall back on a Vuex store getter if the zone response does not provide the information. This ensures that the UI correctly reflects the security group support status.
  • ui/src/views/compute/InstanceTab.vue: Added a new state variable showUpdateSecurityGroupsModal to manage the visibility of the security group update modal in the instance tab. This prepares the UI for future enhancements to support security group updates directly from the instance tab.

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
  • [ x] 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 Mar 3, 2025

Codecov Report

Attention: Patch coverage is 29.03226% with 22 lines in your changes missing coverage. Please review.

Project coverage is 16.02%. Comparing base (b92fd17) to head (3ca9b61).
Report is 60 commits behind head on 4.20.

Files with missing lines Patch % Lines
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 29.03% 16 Missing and 6 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10493      +/-   ##
============================================
+ Coverage     15.98%   16.02%   +0.03%     
- Complexity    13086    13123      +37     
============================================
  Files          5650     5652       +2     
  Lines        495756   495928     +172     
  Branches      60018    60051      +33     
============================================
+ Hits          79261    79454     +193     
+ Misses       407641   407609      -32     
- Partials       8854     8865      +11     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) ⬇️
unittests 16.86% <29.03%> (+0.03%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vishesh92 vishesh92 force-pushed the fixup-update-security branch from 1a1eec2 to 351b012 Compare March 3, 2025 19:18
@vishesh92
Copy link
Member Author

@blueorangutan package

@apache apache deleted a comment from blueorangutan Mar 3, 2025
@blueorangutan
Copy link

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

@vishesh92
Copy link
Member Author

@blueorangutan test keepEnv

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_06_purge_expunged_vm_background_task Failure 394.83 test_purge_expunged_vms.py

@Pearl1594 Pearl1594 linked an issue Mar 5, 2025 that may be closed by this pull request
@vishesh92 vishesh92 marked this pull request as ready for review March 11, 2025 19:15
@vishesh92 vishesh92 requested a review from Pearl1594 March 17, 2025 20:43
@DaanHoogland DaanHoogland added this to the 4.20.1 milestone Mar 29, 2025
@harikrishna-patnala
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala 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 weizhouapache added the Severity:Critical Critical bug label Apr 16, 2025
@blueorangutan
Copy link

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

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

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

Reproduced the issue and also verified the fix, did not observe the NPE after updating SG. LGTM.

@harikrishna-patnala
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-13026)

@weizhouapache
Copy link
Member

@blueorangutan test securityGroups

@blueorangutan
Copy link

@weizhouapache 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-13031)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 87121 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10493-t13031-kvm-ol8.zip
Smoke tests completed. 51 look OK, 90 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestRemoteDiagnostics>:setup Error 0.00 test_diagnostics.py
test_01_deploy_vm_from_direct_download_template_nfs_storage Error 5.55 test_direct_download.py
ContextSuite context=TestDirectDownloadTemplates>:teardown Error 1.10 test_direct_download.py
ContextSuite context=TestAddVmToSubDomain>:setup Error 18.72 test_accounts.py
test_DeleteDomain Error 13.08 test_accounts.py
test_forceDeleteDomain Failure 12.95 test_accounts.py
test_01_user_remove_VM_running Error 0.81 test_accounts.py
test_DeployVmAntiAffinityGroup_in_project Error 0.06 test_affinity_groups_projects.py
test_DeployVmAffinityGroup Error 0.04 test_affinity_groups.py
test_DeployVmAntiAffinityGroup Error 0.06 test_affinity_groups.py
test_01_events_resource Error 7.43 test_events_resource.py
ContextSuite context=TestAnnotations>:setup Error 0.00 test_annotations.py
test_query_async_job_result Error 6.34 test_async_job.py
test_replace_acl_of_network Error 1.57 test_global_acls.py
ContextSuite context=TestMultipleVolumeAttach>:setup Error 0.00 test_attach_multiple_volumes.py
test_dedicateGuestVlanRange Error 0.00 test_guest_vlan_range.py
ContextSuite context=TestDedicateGuestVlanRange>:teardown Error 0.01 test_guest_vlan_range.py
test_01_condensed_drs_algorithm Error 2.32 test_cluster_drs.py
test_02_balanced_drs_algorithm Error 0.09 test_cluster_drs.py
ContextSuite context=TestClusterDRS>:teardown Error 1.29 test_cluster_drs.py
ContextSuite context=TestConsoleEndpoint>:setup Error 0.00 test_console_endpoint.py
test_deployvm_userdata Error 0.13 test_deploy_vm_with_userdata.py
test_deployvm_userdata_post Error 0.11 test_deploy_vm_with_userdata.py
ContextSuite context=TestDeployVirtioSCSIVM>:setup Error 0.00 test_deploy_virtio_scsi_vm.py
test_01_deploy_vm_with_extraconfig_throws_exception_kvm Error 0.23 test_deploy_vm_extra_config_data.py
test_02_deploy_vm_with_extraconfig_kvm Error 0.17 test_deploy_vm_extra_config_data.py
test_03_update_vm_with_extraconfig_kvm Error 0.17 test_deploy_vm_extra_config_data.py
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 Failure 4.99 test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Failure 2.96 test_internal_lb.py
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Failure 3.83 test_internal_lb.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Failure 2.92 test_internal_lb.py
test_deploy_vm_from_iso Error 12.11 test_deploy_vm_iso.py
test_01_deploy_vm_from_iso_uefi_secure Error 0.05 test_deploy_vm_iso_uefi.py
test_02_deploy_vm_from_iso_uefi_legacy Error 0.05 test_deploy_vm_iso_uefi.py
test_03_deploy_windows_vm_from_iso_uefi_legacy Error 0.05 test_deploy_vm_iso_uefi.py
test_04_deploy_windows_vm_from_iso_uefi_secure Error 0.05 test_deploy_vm_iso_uefi.py
test_02_create_network_routed_mode_with_specified_cidr Error 0.08 test_ipv4_routing.py
test_04_create_isolated_network_routed_mode_with_cidrsize Error 0.06 test_ipv4_routing.py
test_06_isolated_network_with_routed_mode Error 0.07 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 2.40 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 2.28 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 8.01 test_ipv4_routing.py
test_00_deploy_vm_root_resize Error 0.09 test_deploy_vm_root_resize.py
test_01_deploy_vm_root_resize Failure 0.04 test_deploy_vm_root_resize.py
test_02_deploy_vm_root_resize Failure 0.04 test_deploy_vm_root_resize.py
test_deploy_more_vms_than_limit_allows Error 6.45 test_deploy_vms_in_parallel.py
test_01_create_ipv6_public_ip_range Error 0.04 test_ipv6_infra.py
test_deployvm_firstfit Error 0.10 test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userconcentrated Error 0.10 test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userdispersing Error 0.10 test_deploy_vms_with_varied_deploymentplanners.py
test_03_create_network_domain_network_offering Error 14.26 test_domain_network_offerings.py
test_03_deploy_vm_domain_service_offering Error 16.05 test_domain_service_offerings.py
test_03_create_vpc_domain_vpc_offering Error 16.26 test_domain_vpc_offerings.py
ContextSuite context=TestHostControlState>:setup Error 53.26 test_host_control_state.py
ContextSuite context=TestImportAndUnmanageVolumes>:setup Error 0.00 test_import_unmanage_volumes.py
test_10_vpc_tier_kubernetes_cluster Error 3.79 test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycle Error 2.42 test_kubernetes_clusters.py
ContextSuite context=TestListIdsParams>:setup Error 0.00 test_list_ids_parameter.py
ContextSuite context=TestListVolumes>:setup Error 0.00 test_list_volumes.py
ContextSuite context=TestLoadBalance>:setup Error 0.00 test_loadbalance.py
test_list_vms_metrics_admin Error 0.28 test_metrics_api.py
test_list_vms_metrics_history Error 0.22 test_metrics_api.py
test_list_vms_metrics_user Error 0.30 test_metrics_api.py
test_list_volumes_metrics_history Error 0.24 test_metrics_api.py
test_01_native_to_native_network_migration Error 6.90 test_migration.py
test_02_native_to_native_vpc_migration Error 9.85 test_migration.py
test_nic_secondaryip_add_remove Error 20.83 test_multipleips_per_nic.py
test_network_acl Error 2.43 test_network_acl.py
ContextSuite context=TestIpv6Network>:setup Error 0.00 test_network_ipv6.py
test_01_add_primary_storage_disabled_host Error 37.46 test_primary_storage.py
test_01_primary_storage_nfs Error 0.25 test_primary_storage.py
ContextSuite context=TestStorageTags>:setup Error 0.39 test_primary_storage.py
ContextSuite context=TestNetworkPermissions>:setup Error 0.00 test_network_permissions.py
test_delete_account Error 21.29 test_network.py
test_delete_network_while_vm_on_it Error 8.80 test_network.py
test_delete_network_while_vm_on_it Error 8.81 test_network.py
test_deploy_vm_l2network Error 6.65 test_network.py
test_deploy_vm_l2network Error 6.65 test_network.py
test_l2network_restart Error 7.97 test_network.py
test_l2network_restart Error 7.98 test_network.py
ContextSuite context=TestL2Networks>:teardown Error 9.10 test_network.py
ContextSuite context=TestPortForwarding>:setup Error 15.06 test_network.py
ContextSuite context=TestPublicIP>:setup Error 11.34 test_network.py
test_reboot_router Error 6.58 test_network.py
test_releaseIP Error 6.03 test_network.py
test_releaseIP_using_IP Error 5.58 test_network.py
ContextSuite context=TestRouterRules>:setup Error 11.87 test_network.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 50.81 test_network.py
test_01_nic Error 47.25 test_nic.py
test_extendPhysicalNetworkVlan Error 0.05 test_non_contigiousvlan.py
test_01_create_delete_portforwarding_fornonvpc Error 6.12 test_portforwardingrules.py
ContextSuite context=TestNonStrictAffinityGroups>:setup Error 0.00 test_nonstrict_affinity_group.py
test_01_vpc_privategw_acl Failure 8.36 test_privategw_acl.py
test_02_vpc_privategw_static_routes Failure 8.16 test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 8.27 test_privategw_acl.py
test_04_rvpc_privategw_static_routes Failure 8.59 test_privategw_acl.py
ContextSuite context=TestIsolatedNetworksPasswdServer>:setup Error 0.00 test_password_server.py
test_01_isolated_persistent_network Error 0.08 test_persistent_network.py
ContextSuite context=TestPortablePublicIPAcquire>:setup Error 0.00 test_portable_publicip.py
test_01_primary_storage_scope_change Error 0.15 test_primary_storage_scope.py
test_09_project_suspend Error 1.17 test_projects.py
test_10_project_activation Error 1.15 test_projects.py
test_dedicatePublicIpRange Error 0.03 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms Error 0.04 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms_01_ssvm Error 0.12 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms_02_cpvm Error 0.14 test_public_ip_range.py
ContextSuite context=TestPurgeExpungedVms>:setup Error 0.00 test_purge_expunged_vms.py
test_create_pvlan_network Error 0.12 test_pvlan.py
test_another_user_can_allocate_ip_after_quarantined_has_ended_network Error 9.15 test_quarantined_ips.py
test_another_user_can_allocate_ip_after_quarantined_has_ended_vpc Error 0.43 test_quarantined_ips.py
test_only_owner_can_allocate_ip_in_quarantine_network Error 0.37 test_quarantined_ips.py
test_only_owner_can_allocate_ip_in_quarantine_vpc Error 0.44 test_quarantined_ips.py
test_CRUD_operations_userdata Error 1523.79 test_register_userdata.py
test_deploy_vm_with_registered_userdata Error 5.46 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allow Error 5.64 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_append Error 5.31 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_deny Error 4.99 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_params Error 5.36 test_register_userdata.py
test_link_and_unlink_userdata_to_template Error 4.82 test_register_userdata.py
test_user_userdata_crud Error 4.69 test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setup Error 0.00 test_reset_vm_on_reboot.py
ContextSuite context=TestVMSchedule>:setup Error 0.00 test_vm_schedule.py
ContextSuite context=TestRAMCPUResourceAccounting>:setup Error 0.00 test_resource_accounting.py
ContextSuite context=TestResourceNames>:setup Error 0.00 test_resource_names.py
ContextSuite context=TestRestoreVM>:setup Error 0.00 test_restore_vm.py
ContextSuite context=TestRouterDHCPHosts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPOpts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDns>:setup Error 0.00 test_router_dns.py
ContextSuite context=TestVmSnapshot>:setup Error 5.38 test_vm_snapshots.py
ContextSuite context=TestRouterDnsService>:setup Error 0.00 test_router_dnsservice.py
test_01_deploy_vm_on_specific_host Error 0.10 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 0.08 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod 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_05_deploy_vm_on_cluster_override_pod Error 0.10 test_vm_deployment_planner.py
ContextSuite context=TestRouterIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestVPCIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestDeployVM>:setup Error 0.00 test_vm_life_cycle.py
test_01_migrate_VM_and_root_volume Error 0.08 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 0.08 test_vm_life_cycle.py
test_01_secure_vm_migration Error 77.30 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 220.71 test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migration Error 149.00 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 146.91 test_vm_life_cycle.py
ContextSuite context=TestVMLifeCycle>:setup Error 5.07 test_vm_life_cycle.py
ContextSuite context=TestIsolatedNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRedundantIsolateNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRouterServices>:setup Error 0.00 test_routers.py
test_01_sys_vm_start Failure 0.23 test_secondary_storage.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 0.26 test_service_offerings.py
ContextSuite context=TestSetSourceNatIp>:setup Error 0.00 test_set_sourcenat.py
ContextSuite context=TestSharedFSLifecycle>:setup Error 0.00 test_sharedfs_lifecycle.py
ContextSuite context=TestIpv6Vpc>:setup Error 0.00 test_vpc_ipv6.py
ContextSuite context=TestSnapshotRootDisk>:setup Error 0.00 test_snapshots.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 0.00 test_snapshots.py
test_01_list_sec_storage_vm Failure 0.05 test_ssvm.py
test_02_list_cpvm_vm Failure 0.04 test_ssvm.py
test_03_ssvm_internals Failure 0.04 test_ssvm.py
test_04_cpvm_internals Failure 0.04 test_ssvm.py
test_05_stop_ssvm Failure 0.04 test_ssvm.py
test_06_stop_cpvm Failure 0.05 test_ssvm.py
test_07_reboot_ssvm Failure 0.05 test_ssvm.py
test_08_reboot_cpvm Failure 0.05 test_ssvm.py
test_09_reboot_ssvm_forced Failure 0.04 test_ssvm.py
test_10_reboot_cpvm_forced Failure 0.04 test_ssvm.py
test_11_destroy_ssvm Failure 0.05 test_ssvm.py
test_12_destroy_cpvm Failure 0.05 test_ssvm.py
test_01_register_vnf_template Error 0.07 test_vnf_templates.py
test_02_list_vnf_template Error 0.06 test_vnf_templates.py
test_03_edit_vnf_template Error 0.06 test_vnf_templates.py
test_04_deploy_vnf_appliance Error 0.06 test_vnf_templates.py
test_05_delete_vnf_template Error 0.07 test_vnf_templates.py
ContextSuite context=TestVMWareStoragePolicies>:setup Error 0.00 test_storage_policy.py
test_02_create_template_with_checksum_sha1 Error 65.68 test_templates.py
test_03_create_template_with_checksum_sha256 Error 65.67 test_templates.py
test_04_create_template_with_checksum_md5 Error 65.71 test_templates.py
test_05_create_template_with_no_checksum Error 65.69 test_templates.py
test_02_deploy_vm_from_direct_download_template Error 0.05 test_templates.py
ContextSuite context=TestTemplates>:setup Error 14.88 test_templates.py
test_01_positive_tests_usage Failure 5.94 test_usage_events.py
ContextSuite context=TestCreateVolume>:setup Error 0.00 test_volumes.py
test_01_root_volume_encryption Error 0.07 test_volumes.py
test_02_data_volume_encryption Error 0.06 test_volumes.py
test_03_root_and_data_volume_encryption Error 0.08 test_volumes.py
ContextSuite context=TestVolumes>:setup Error 7.22 test_volumes.py
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestLBRuleUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestNatRuleUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestPublicIPUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestSnapshotUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVmUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVolumeUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVpnUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVmAutoScaling>:setup Error 0.00 test_vm_autoscaling.py
ContextSuite context=TestMigrateVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestRestoreVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestScaleVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestVMDeploymentPlannerStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestVPCRedundancy>:setup Error 0.00 test_vpc_redundant.py
ContextSuite context=TestVPCNics>:setup Error 0.00 test_vpc_router_nics.py
ContextSuite context=TestRVPCSite2SiteVpn>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVPCSite2SiteVPNMultipleOptions>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVpcRemoteAccessVpn>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVpcSite2SiteVpn>:setup Error 0.00 test_vpc_vpn.py
test_02_cancel_host_maintenace_with_migration_jobs Error 1.67 test_host_maintenance.py
test_03_cancel_host_maintenace_with_migration_jobs_failure Error 1.74 test_host_maintenance.py
test_01_cancel_host_maintenance_ssh_enabled_agent_connected Failure 12.61 test_host_maintenance.py
test_03_cancel_host_maintenance_ssh_disabled_agent_connected Failure 21.70 test_host_maintenance.py
test_04_cancel_host_maintenance_ssh_disabled_agent_disconnected Failure 29.30 test_host_maintenance.py
ContextSuite context=TestHostMaintenanceAgents>:teardown Error 30.45 test_host_maintenance.py
test_disable_oobm_ha_state_ineligible Error 1517.99 test_hostha_kvm.py

@DaanHoogland
Copy link
Contributor

51 ok 90 errors, I forgot what the baseline was for running with security groups . maybe we should add it to the matrix somehow (and stablise it)

@weizhouapache
Copy link
Member

@DaanHoogland
agree we need to stablize the tests on SG zone

let's re-run the tests to see if the results are consistent

@blueorangutan test securityGroups

@blueorangutan
Copy link

@weizhouapache 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-13052)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 86748 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10493-t13052-kvm-ol8.zip
Smoke tests completed. 51 look OK, 90 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestRemoteDiagnostics>:setup Error 0.00 test_diagnostics.py
test_01_deploy_vm_from_direct_download_template_nfs_storage Error 7.56 test_direct_download.py
ContextSuite context=TestDirectDownloadTemplates>:teardown Error 1.09 test_direct_download.py
ContextSuite context=TestAddVmToSubDomain>:setup Error 20.77 test_accounts.py
test_DeleteDomain Error 15.86 test_accounts.py
test_forceDeleteDomain Failure 14.65 test_accounts.py
test_01_user_remove_VM_running Error 0.82 test_accounts.py
test_DeployVmAntiAffinityGroup_in_project Error 0.04 test_affinity_groups_projects.py
test_DeployVmAffinityGroup Error 0.04 test_affinity_groups.py
test_DeployVmAntiAffinityGroup Error 0.05 test_affinity_groups.py
test_01_events_resource Error 8.03 test_events_resource.py
ContextSuite context=TestAnnotations>:setup Error 0.00 test_annotations.py
test_query_async_job_result Error 6.61 test_async_job.py
test_replace_acl_of_network Error 1.56 test_global_acls.py
ContextSuite context=TestMultipleVolumeAttach>:setup Error 0.00 test_attach_multiple_volumes.py
test_dedicateGuestVlanRange Error 0.00 test_guest_vlan_range.py
ContextSuite context=TestDedicateGuestVlanRange>:teardown Error 0.00 test_guest_vlan_range.py
test_01_condensed_drs_algorithm Error 4.36 test_cluster_drs.py
test_02_balanced_drs_algorithm Error 0.09 test_cluster_drs.py
ContextSuite context=TestClusterDRS>:teardown Error 1.20 test_cluster_drs.py
ContextSuite context=TestConsoleEndpoint>:setup Error 0.00 test_console_endpoint.py
test_deployvm_userdata Error 0.08 test_deploy_vm_with_userdata.py
test_deployvm_userdata_post Error 0.07 test_deploy_vm_with_userdata.py
ContextSuite context=TestDeployVirtioSCSIVM>:setup Error 0.00 test_deploy_virtio_scsi_vm.py
test_01_deploy_vm_with_extraconfig_throws_exception_kvm Error 0.16 test_deploy_vm_extra_config_data.py
test_02_deploy_vm_with_extraconfig_kvm Error 0.12 test_deploy_vm_extra_config_data.py
test_03_update_vm_with_extraconfig_kvm Error 0.12 test_deploy_vm_extra_config_data.py
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 Failure 4.89 test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Failure 4.79 test_internal_lb.py
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Failure 2.71 test_internal_lb.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Failure 3.77 test_internal_lb.py
test_deploy_vm_from_iso Error 11.38 test_deploy_vm_iso.py
test_01_deploy_vm_from_iso_uefi_secure Error 0.05 test_deploy_vm_iso_uefi.py
test_02_deploy_vm_from_iso_uefi_legacy Error 0.05 test_deploy_vm_iso_uefi.py
test_03_deploy_windows_vm_from_iso_uefi_legacy Error 0.04 test_deploy_vm_iso_uefi.py
test_04_deploy_windows_vm_from_iso_uefi_secure Error 0.04 test_deploy_vm_iso_uefi.py
test_02_create_network_routed_mode_with_specified_cidr Error 0.07 test_ipv4_routing.py
test_04_create_isolated_network_routed_mode_with_cidrsize Error 0.07 test_ipv4_routing.py
test_06_isolated_network_with_routed_mode Error 0.06 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 2.37 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 1.25 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 7.94 test_ipv4_routing.py
test_00_deploy_vm_root_resize Error 0.08 test_deploy_vm_root_resize.py
test_01_deploy_vm_root_resize Failure 0.04 test_deploy_vm_root_resize.py
test_02_deploy_vm_root_resize Failure 0.04 test_deploy_vm_root_resize.py
test_deploy_more_vms_than_limit_allows Error 5.38 test_deploy_vms_in_parallel.py
test_01_create_ipv6_public_ip_range Error 0.04 test_ipv6_infra.py
test_deployvm_firstfit Error 0.09 test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userconcentrated Error 0.07 test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userdispersing Error 0.07 test_deploy_vms_with_varied_deploymentplanners.py
test_03_create_network_domain_network_offering Error 12.95 test_domain_network_offerings.py
test_03_deploy_vm_domain_service_offering Error 12.05 test_domain_service_offerings.py
test_03_create_vpc_domain_vpc_offering Error 13.20 test_domain_vpc_offerings.py
ContextSuite context=TestHostControlState>:setup Error 52.66 test_host_control_state.py
ContextSuite context=TestImportAndUnmanageVolumes>:setup Error 0.00 test_import_unmanage_volumes.py
test_10_vpc_tier_kubernetes_cluster Error 3.59 test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycle Error 3.39 test_kubernetes_clusters.py
ContextSuite context=TestListIdsParams>:setup Error 0.00 test_list_ids_parameter.py
ContextSuite context=TestListVolumes>:setup Error 0.00 test_list_volumes.py
ContextSuite context=TestLoadBalance>:setup Error 0.00 test_loadbalance.py
test_list_vms_metrics_admin Error 0.27 test_metrics_api.py
test_list_vms_metrics_history Error 0.24 test_metrics_api.py
test_list_vms_metrics_user Error 0.27 test_metrics_api.py
test_list_volumes_metrics_history Error 0.23 test_metrics_api.py
test_01_native_to_native_network_migration Error 6.57 test_migration.py
test_02_native_to_native_vpc_migration Error 9.68 test_migration.py
test_nic_secondaryip_add_remove Error 20.91 test_multipleips_per_nic.py
test_network_acl Error 2.78 test_network_acl.py
ContextSuite context=TestIpv6Network>:setup Error 0.00 test_network_ipv6.py
test_01_add_primary_storage_disabled_host Error 37.81 test_primary_storage.py
test_01_primary_storage_nfs Error 0.20 test_primary_storage.py
ContextSuite context=TestStorageTags>:setup Error 0.35 test_primary_storage.py
ContextSuite context=TestNetworkPermissions>:setup Error 0.00 test_network_permissions.py
test_delete_account Error 21.33 test_network.py
test_delete_network_while_vm_on_it Error 9.63 test_network.py
test_delete_network_while_vm_on_it Error 9.64 test_network.py
test_deploy_vm_l2network Error 6.64 test_network.py
test_deploy_vm_l2network Error 6.64 test_network.py
test_l2network_restart Error 9.82 test_network.py
test_l2network_restart Error 9.82 test_network.py
ContextSuite context=TestL2Networks>:teardown Error 10.96 test_network.py
ContextSuite context=TestPortForwarding>:setup Error 17.56 test_network.py
ContextSuite context=TestPublicIP>:setup Error 10.14 test_network.py
test_reboot_router Error 5.32 test_network.py
test_releaseIP Error 5.21 test_network.py
test_releaseIP_using_IP Error 5.47 test_network.py
ContextSuite context=TestRouterRules>:setup Error 11.00 test_network.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 60.76 test_network.py
test_01_nic Error 46.94 test_nic.py
test_extendPhysicalNetworkVlan Error 0.06 test_non_contigiousvlan.py
test_01_create_delete_portforwarding_fornonvpc Error 5.23 test_portforwardingrules.py
ContextSuite context=TestNonStrictAffinityGroups>:setup Error 0.00 test_nonstrict_affinity_group.py
test_01_vpc_privategw_acl Failure 8.04 test_privategw_acl.py
test_02_vpc_privategw_static_routes Failure 8.00 test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 8.11 test_privategw_acl.py
test_04_rvpc_privategw_static_routes Failure 8.17 test_privategw_acl.py
ContextSuite context=TestIsolatedNetworksPasswdServer>:setup Error 0.00 test_password_server.py
test_01_isolated_persistent_network Error 0.05 test_persistent_network.py
ContextSuite context=TestPortablePublicIPAcquire>:setup Error 0.00 test_portable_publicip.py
test_01_primary_storage_scope_change Error 0.14 test_primary_storage_scope.py
test_09_project_suspend Error 1.16 test_projects.py
test_10_project_activation Error 1.15 test_projects.py
test_dedicatePublicIpRange Error 0.03 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms Error 0.03 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms_01_ssvm Error 0.11 test_public_ip_range.py
test_dedicate_public_ip_range_for_system_vms_02_cpvm Error 0.10 test_public_ip_range.py
ContextSuite context=TestPurgeExpungedVms>:setup Error 0.00 test_purge_expunged_vms.py
test_create_pvlan_network Error 0.08 test_pvlan.py
test_another_user_can_allocate_ip_after_quarantined_has_ended_network Error 8.39 test_quarantined_ips.py
test_another_user_can_allocate_ip_after_quarantined_has_ended_vpc Error 0.39 test_quarantined_ips.py
test_only_owner_can_allocate_ip_in_quarantine_network Error 0.36 test_quarantined_ips.py
test_only_owner_can_allocate_ip_in_quarantine_vpc Error 0.42 test_quarantined_ips.py
test_CRUD_operations_userdata Error 1522.78 test_register_userdata.py
test_deploy_vm_with_registered_userdata Error 5.39 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allow Error 5.37 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_append Error 5.70 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_deny Error 6.08 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_params Error 5.43 test_register_userdata.py
test_link_and_unlink_userdata_to_template Error 5.46 test_register_userdata.py
test_user_userdata_crud Error 5.09 test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setup Error 0.00 test_reset_vm_on_reboot.py
ContextSuite context=TestVMSchedule>:setup Error 0.00 test_vm_schedule.py
ContextSuite context=TestRAMCPUResourceAccounting>:setup Error 0.00 test_resource_accounting.py
ContextSuite context=TestResourceNames>:setup Error 0.00 test_resource_names.py
ContextSuite context=TestRestoreVM>:setup Error 0.00 test_restore_vm.py
ContextSuite context=TestRouterDHCPHosts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPOpts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDns>:setup Error 0.00 test_router_dns.py
ContextSuite context=TestVmSnapshot>:setup Error 4.53 test_vm_snapshots.py
ContextSuite context=TestRouterDnsService>:setup Error 0.00 test_router_dnsservice.py
test_01_deploy_vm_on_specific_host Error 0.10 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 0.07 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod 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_05_deploy_vm_on_cluster_override_pod Error 0.09 test_vm_deployment_planner.py
ContextSuite context=TestRouterIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestVPCIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestDeployVM>:setup Error 0.00 test_vm_life_cycle.py
test_01_migrate_VM_and_root_volume Error 0.07 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 0.06 test_vm_life_cycle.py
test_01_secure_vm_migration Error 75.08 test_vm_life_cycle.py
test_02_unsecure_vm_migration Error 218.58 test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migration Error 147.84 test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migration Error 146.81 test_vm_life_cycle.py
ContextSuite context=TestVMLifeCycle>:setup Error 4.93 test_vm_life_cycle.py
ContextSuite context=TestIsolatedNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRedundantIsolateNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRouterServices>:setup Error 0.00 test_routers.py
test_01_sys_vm_start Failure 0.19 test_secondary_storage.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 0.30 test_service_offerings.py
ContextSuite context=TestSetSourceNatIp>:setup Error 0.00 test_set_sourcenat.py
ContextSuite context=TestSharedFSLifecycle>:setup Error 0.00 test_sharedfs_lifecycle.py
ContextSuite context=TestIpv6Vpc>:setup Error 0.00 test_vpc_ipv6.py
ContextSuite context=TestSnapshotRootDisk>:setup Error 0.00 test_snapshots.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 0.00 test_snapshots.py
test_01_list_sec_storage_vm Failure 0.05 test_ssvm.py
test_02_list_cpvm_vm Failure 0.04 test_ssvm.py
test_03_ssvm_internals Failure 0.05 test_ssvm.py
test_04_cpvm_internals Failure 0.04 test_ssvm.py
test_05_stop_ssvm Failure 0.04 test_ssvm.py
test_06_stop_cpvm Failure 0.04 test_ssvm.py
test_07_reboot_ssvm Failure 0.05 test_ssvm.py
test_08_reboot_cpvm Failure 0.04 test_ssvm.py
test_09_reboot_ssvm_forced Failure 0.04 test_ssvm.py
test_10_reboot_cpvm_forced Failure 0.05 test_ssvm.py
test_11_destroy_ssvm Failure 0.04 test_ssvm.py
test_12_destroy_cpvm Failure 0.04 test_ssvm.py
test_01_register_vnf_template Error 0.06 test_vnf_templates.py
test_02_list_vnf_template Error 0.07 test_vnf_templates.py
test_03_edit_vnf_template Error 0.05 test_vnf_templates.py
test_04_deploy_vnf_appliance Error 0.05 test_vnf_templates.py
test_05_delete_vnf_template Error 0.05 test_vnf_templates.py
ContextSuite context=TestVMWareStoragePolicies>:setup Error 0.00 test_storage_policy.py
test_02_create_template_with_checksum_sha1 Error 65.61 test_templates.py
test_03_create_template_with_checksum_sha256 Error 65.59 test_templates.py
test_04_create_template_with_checksum_md5 Error 65.63 test_templates.py
test_05_create_template_with_no_checksum Error 65.63 test_templates.py
test_02_deploy_vm_from_direct_download_template Error 0.04 test_templates.py
ContextSuite context=TestTemplates>:setup Error 14.71 test_templates.py
test_01_positive_tests_usage Failure 6.24 test_usage_events.py
ContextSuite context=TestCreateVolume>:setup Error 0.00 test_volumes.py
test_01_root_volume_encryption Error 0.06 test_volumes.py
test_02_data_volume_encryption Error 0.06 test_volumes.py
test_03_root_and_data_volume_encryption Error 0.06 test_volumes.py
ContextSuite context=TestVolumes>:setup Error 5.72 test_volumes.py
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestLBRuleUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestNatRuleUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestPublicIPUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestSnapshotUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVmUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVolumeUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVpnUsage>:setup Error 0.00 test_usage.py
ContextSuite context=TestVmAutoScaling>:setup Error 0.00 test_vm_autoscaling.py
ContextSuite context=TestMigrateVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestRestoreVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestScaleVMStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestVMDeploymentPlannerStrictTags>:setup Error 0.00 test_vm_strict_host_tags.py
ContextSuite context=TestVPCRedundancy>:setup Error 0.00 test_vpc_redundant.py
ContextSuite context=TestVPCNics>:setup Error 0.00 test_vpc_router_nics.py
ContextSuite context=TestRVPCSite2SiteVpn>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVPCSite2SiteVPNMultipleOptions>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVpcRemoteAccessVpn>:setup Error 0.00 test_vpc_vpn.py
ContextSuite context=TestVpcSite2SiteVpn>:setup Error 0.00 test_vpc_vpn.py
test_02_cancel_host_maintenace_with_migration_jobs Error 1.61 test_host_maintenance.py
test_03_cancel_host_maintenace_with_migration_jobs_failure Error 1.65 test_host_maintenance.py
test_01_cancel_host_maintenance_ssh_enabled_agent_connected Failure 15.62 test_host_maintenance.py
test_03_cancel_host_maintenance_ssh_disabled_agent_connected Failure 12.62 test_host_maintenance.py
test_04_cancel_host_maintenance_ssh_disabled_agent_disconnected Failure 29.31 test_host_maintenance.py
ContextSuite context=TestHostMaintenanceAgents>:teardown Error 30.45 test_host_maintenance.py
test_disable_oobm_ha_state_ineligible Error 1515.69 test_hostha_kvm.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.

Unable to update the security groups of a VM
6 participants