Skip to content

UI: ignore error when list public ips for CKS clusters on Shared network#8489

Merged
DaanHoogland merged 3 commits intoapache:4.18from
weizhouapache:4.18-fix-list-cks-by-user
Apr 23, 2024
Merged

UI: ignore error when list public ips for CKS clusters on Shared network#8489
DaanHoogland merged 3 commits intoapache:4.18from
weizhouapache:4.18-fix-list-cks-by-user

Conversation

@weizhouapache
Copy link
Copy Markdown
Member

@weizhouapache weizhouapache commented Jan 10, 2024

Description

This PR fixes #7681

steps to reproduce the issue

  • deploy an env (advanced zone with SG)
  • create a normal user
  • login as the user
  • register CKS ISO
  • deploy a CKS cluster
  • list the CKS cluster

Without this PR. same issue #7681
With this PR, the errors are gone.

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?

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (76aff0f) 13.12% compared to head (07b6de3) 13.12%.
Report is 15 commits behind head on 4.18.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8489   +/-   ##
=========================================
  Coverage     13.12%   13.12%           
  Complexity     9142     9142           
=========================================
  Files          2720     2720           
  Lines        257744   257744           
  Branches      40182    40182           
=========================================
  Hits          33839    33839           
+ Misses       219615   219614    -1     
- Partials       4290     4291    +1     

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

Comment on lines +406 to +407
}).catch(() => {
this.publicIpAddress = null
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of ignoring the exception, why not check if the user has permission to use the API?

Copy link
Copy Markdown
Member Author

@weizhouapache weizhouapache Jan 10, 2024

Choose a reason for hiding this comment

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

Instead of ignoring the exception, why not check if the user has permission to use the API?

The issue is not caused by permission of API. The users have permission to the api, but they cannot list public ips of a shared network which has scope=domain

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How do you know that @MejdiB is using shared networks with domain scope in their CKS clusters? Were you able to reproduce the error reported on #7681?

In any case, shouldn't we test if the user is trying to list the public IPs of a shared network with domain scope and not call the API in this case? It's better than ignoring any error that might happen on the API call.

Also, a description of the tests done would be great.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How do you know that @MejdiB is using shared networks with domain scope in their CKS clusters? Were you able to reproduce the error reported on #7681?

Yes, I am able to reproduce the issue in advanced zone with SG.

In any case, shouldn't we test if the user is trying to list the public IPs of a shared network with domain scope and not call the API in this case? It's better than ignoring any error that might happen on the API call.

this PR is the simplest way.

The better solution might be (1) listNetworks; (2) skip if network type is Shared.
but it did not work in my testing ,may require some investigation.

Also, a description of the tests done would be great.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I too would like to see a test description.
I agree that preventing a call to the server is good, but a working solution is as well ;)

I could live with a comment in the code that explains the better solution and why it was not implemented.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

test steps have been added
@JoaoJandre @DaanHoogland

@shwstppr
Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@yadvr yadvr added this to the 4.18.2.0 milestone Feb 5, 2024
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Feb 13, 2024

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/8489 (QA-JID-278)

@weizhouapache
Copy link
Copy Markdown
Member Author

thanks for review @DaanHoogland @JoaoJandre

moved this to draft. I will revisit later

@DaanHoogland
Copy link
Copy Markdown
Contributor

@weizhouapache will this make it for 4.18.2?

@JoaoJandre JoaoJandre modified the milestones: 4.18.2.0, 4.18.3 Mar 21, 2024
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 13.12%. Comparing base (76aff0f) to head (07b6de3).
Report is 42 commits behind head on 4.18.

❗ Current head 07b6de3 differs from pull request most recent head 4b59441. Consider uploading reports for the commit 4b59441 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8489   +/-   ##
=========================================
  Coverage     13.12%   13.12%           
  Complexity     9142     9142           
=========================================
  Files          2720     2720           
  Lines        257744   257744           
  Branches      40182    40182           
=========================================
  Hits          33839    33839           
+ Misses       219615   219614    -1     
- Partials       4290     4291    +1     

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

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/8489 (QA-JID-316)

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@weizhouapache weizhouapache changed the title UI: ignore error when list public ips for CKS clusters UI: ignore error when list public ips for CKS clusters on Shared network Apr 18, 2024
@blueorangutan
Copy link
Copy Markdown

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

@weizhouapache weizhouapache marked this pull request as ready for review April 18, 2024 13:02
@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test alma9 kvm-alma9 keepEnv

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-9903)
Environment: kvm-alma9 (x2), Advanced Networking with Mgmt server a9
Total time taken: 44286 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8489-t9903-kvm-alma9.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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test alma9 kvm-alma9 keepEnv securityGroups

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_01_events_resource Error 3.22 test_events_resource.py
test_DeleteDomain Failure 98.67 test_accounts.py
test_forceDeleteDomain Failure 103.72 test_accounts.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_internallb_roundrobin_1VPC_3VM_HTTP_port80 Failure 2.85 test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Failure 2.85 test_internal_lb.py
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Failure 3.78 test_internal_lb.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Failure 3.85 test_internal_lb.py
test_01_create_ipv6_public_ip_range Error 0.04 test_ipv6_infra.py
test_04_verify_guest_lspci Error 810.64 test_deploy_virtio_scsi_vm.py
test_06_verify_guest_lspci_again Error 810.67 test_deploy_virtio_scsi_vm.py
ContextSuite context=TestLoadBalance>:setup Error 0.00 test_loadbalance.py
test_01_ping_in_vr_success Failure 0.03 test_diagnostics.py
test_02_ping_in_vr_failure Failure 0.03 test_diagnostics.py
test_07_arping_in_vr Failure 0.02 test_diagnostics.py
test_10_traceroute_in_vr Failure 0.02 test_diagnostics.py
test_13_retrieve_vr_default_files Failure 0.02 test_diagnostics.py
test_14_retrieve_vr_one_file Failure 0.02 test_diagnostics.py
test_01_native_to_native_network_migration Error 4.94 test_migration.py
test_02_native_to_native_vpc_migration Error 7.56 test_migration.py
test_01_deploy_vm_from_direct_download_template_nfs_storage Error 4.55 test_direct_download.py
ContextSuite context=TestDirectDownloadTemplates>:teardown Error 1.09 test_direct_download.py
test_network_acl Error 2.39 test_network_acl.py
test_03_create_network_domain_network_offering Error 8.26 test_domain_network_offerings.py
ContextSuite context=TestIpv6Network>:setup Error 0.00 test_network_ipv6.py
test_03_create_vpc_domain_vpc_offering Error 9.78 test_domain_vpc_offerings.py
test_10_vpc_tier_kubernetes_cluster Error 2.57 test_kubernetes_clusters.py
ContextSuite context=TestNetworkPermissions>:setup Error 0.00 test_network_permissions.py
test_delete_account Error 108.75 test_network.py
test_delete_network_while_vm_on_it Error 5.66 test_network.py
test_delete_network_while_vm_on_it Error 5.66 test_network.py
test_deploy_vm_l2network Error 6.68 test_network.py
test_deploy_vm_l2network Error 6.68 test_network.py
test_l2network_restart Error 7.76 test_network.py
test_l2network_restart Error 7.76 test_network.py
ContextSuite context=TestL2Networks>:teardown Error 8.90 test_network.py
test_01_port_fwd_on_src_nat Failure 0.03 test_network.py
test_02_port_fwd_on_non_src_nat Error 0.03 test_network.py
ContextSuite context=TestPublicIP>:setup Error 7.71 test_network.py
test_reboot_router Error 160.71 test_network.py
test_releaseIP Error 41.27 test_network.py
test_network_rules_acquired_public_ip_1_static_nat_rule Error 0.04 test_network.py
test_network_rules_acquired_public_ip_2_nat_rule Error 0.04 test_network.py
test_network_rules_acquired_public_ip_3_Load_Balancer_Rule Error 0.04 test_network.py
test_01_nic Error 44.52 test_nic.py
test_extendPhysicalNetworkVlan Error 0.05 test_non_contigiousvlan.py
ContextSuite context=TestNonStrictAffinityGroups>:setup Error 0.00 test_nonstrict_affinity_group.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_create_delete_portforwarding_fornonvpc Error 3.37 test_portforwardingrules.py
test_01_vpc_privategw_acl Failure 5.42 test_privategw_acl.py
test_02_vpc_privategw_static_routes Failure 5.59 test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 5.32 test_privategw_acl.py
test_04_rvpc_privategw_static_routes Failure 5.24 test_privategw_acl.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.12 test_public_ip_range.py
test_create_pvlan_network Error 0.08 test_pvlan.py
test_CRUD_operations_userdata Error 3.36 test_register_userdata.py
test_deploy_vm_with_registered_userdata Error 3.51 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allow Error 3.77 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_append Error 3.92 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_deny Error 3.60 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_params Error 3.41 test_register_userdata.py
test_link_and_unlink_userdata_to_template Error 3.19 test_register_userdata.py
test_user_userdata_crud Error 3.54 test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setup Error 0.00 test_reset_vm_on_reboot.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=TestRAMCPUResourceAccounting>:setup Error 0.00 test_resource_accounting.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=TestRouterServices>:setup Error 0.00 test_routers.py
ContextSuite context=TestRouterDns>:setup Error 0.00 test_router_dns.py
ContextSuite context=TestRouterDnsService>:setup Error 0.00 test_router_dnsservice.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
test_01_sys_vm_start Failure 0.16 test_secondary_storage.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 0.32 test_service_offerings.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.04 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.04 test_ssvm.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.56 test_templates.py
test_04_create_template_with_checksum_md5 Error 65.60 test_templates.py
test_05_create_template_with_no_checksum Error 65.62 test_templates.py
test_02_deploy_vm_from_direct_download_template Error 1.33 test_templates.py
ContextSuite context=TestCreateTemplateWithDirectDownload>:teardown Error 12.92 test_templates.py
ContextSuite context=TestTemplates>:setup Error 20.01 test_templates.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
test_01_deploy_vm_on_specific_host Error 1.36 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 1.35 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 1.37 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 1.42 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 1.35 test_vm_deployment_planner.py
ContextSuite context=TestDeployVM>:setup Error 0.00 test_vm_life_cycle.py
test_01_migrate_VM_and_root_volume Error 1.33 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 1.32 test_vm_life_cycle.py
ContextSuite context=TestVMLifeCycle>:setup Error 4.17 test_vm_life_cycle.py
ContextSuite context=TestVmSnapshot>:setup Error 3.85 test_vm_snapshots.py
ContextSuite context=TestCreateVolume>:setup Error 0.00 test_volumes.py
test_01_root_volume_encryption Error 1.34 test_volumes.py
test_02_data_volume_encryption Error 1.34 test_volumes.py
test_03_root_and_data_volume_encryption Error 1.41 test_volumes.py
ContextSuite context=TestVolumes>:setup Error 23.14 test_volumes.py
ContextSuite context=TestIpv6Vpc>:setup Error 0.00 test_vpc_ipv6.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.62 test_host_maintenance.py
test_03_cancel_host_maintenace_with_migration_jobs_failure Error 1.72 test_host_maintenance.py
test_01_cancel_host_maintenance_ssh_enabled_agent_connected Failure 12.59 test_host_maintenance.py
test_03_cancel_host_maintenance_ssh_disabled_agent_connected Failure 18.75 test_host_maintenance.py
test_04_cancel_host_maintenance_ssh_disabled_agent_disconnected Failure 26.40 test_host_maintenance.py
ContextSuite context=TestHostMaintenanceAgents>:teardown Error 27.55 test_host_maintenance.py
test_disable_oobm_ha_state_ineligible Error 1516.44 test_hostha_kvm.py

@DaanHoogland
Copy link
Copy Markdown
Contributor

Smoke tests completed. 56 look OK, 54 have errors, 0 did not run

note that this is a normal rate for security group zones :(

@DaanHoogland
Copy link
Copy Markdown
Contributor

@weizhouapache , as admin user I can not register an iso :
image
not sure if this is related.
as a normal user I don't even get to the overview :
image
as shown in the image , the user doesn't even get the button to register the iso.

FYI, haven't investigated this yet:

2024-04-22 11:02:55,541 ERROR [c.c.a.ApiServer] (qtp239372207-16:ctx-cc15c2af ctx-2969dc60) (logid:3e39b3ff) unhandled exception executing api command: [Ljava.lang.String;@4eefc745
java.lang.NullPointerException
        at com.cloud.kubernetes.version.KubernetesVersionManagerImpl.createKubernetesSupportedVersionResponse(KubernetesVersionManagerImpl.java:107)
        at com.cloud.kubernetes.version.KubernetesVersionManagerImpl.createKubernetesSupportedVersionListResponse(KubernetesVersionManagerImpl.java:117)
        at com.cloud.kubernetes.version.KubernetesVersionManagerImpl.listKubernetesSupportedVersions(KubernetesVersionManagerImpl.java:278)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
        at com.sun.proxy.$Proxy439.listKubernetesSupportedVersions(Unknown Source)
        at org.apache.cloudstack.api.command.user.kubernetes.version.ListKubernetesSupportedVersionsCmd.execute(ListKubernetesSupportedVersionsCmd.java:99)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:803)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:624)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:342)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:149)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:146)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:100)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
        at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-9955)

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-9956)

@DaanHoogland
Copy link
Copy Markdown
Contributor

verified manually in a test env with security groups; a cluster can be seen without error messages.

@DaanHoogland
Copy link
Copy Markdown
Contributor

reports in #8489 (comment) are serious but not related to this code (no proper error handling when no zone is ready and enabled.

@weizhouapache
Copy link
Copy Markdown
Member Author

verified manually in a test env with security groups; a cluster can be seen without error messages.

cool, thanks @DaanHoogland

@DaanHoogland
Copy link
Copy Markdown
Contributor

@JoaoJandre are you ok with this one?

@DaanHoogland
Copy link
Copy Markdown
Contributor

@JoaoJandre @MejdiB can you test / review this?

Copy link
Copy Markdown
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

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

CLGTM, I don't have an env with security groups, I could deploy one but it might take me a while. It would be good if @MejdiB could validate this, otherwise, I can try to test it within a few weeks.

@DaanHoogland
Copy link
Copy Markdown
Contributor

CLGTM, I don't have an env with security groups, I could deploy one but it might take me a while. It would be good if @MejdiB could validate this, otherwise, I can try to test it within a few weeks.

ok thnks, I'll merge as I have tested it. @MejdiB can always create a new issues if he has additional configurations/requirements

@DaanHoogland DaanHoogland merged commit 65f5712 into apache:4.18 Apr 23, 2024
@DaanHoogland DaanHoogland deleted the 4.18-fix-list-cks-by-user branch April 23, 2024 13:13
DaanHoogland added a commit that referenced this pull request Apr 23, 2024
* 4.18:
  UI: ignore error when list public ips for CKS clusters on Shared network (#8489)
DaanHoogland added a commit that referenced this pull request Apr 23, 2024
* 4.19:
  UI: ignore error when list public ips for CKS clusters on Shared network (#8489)
  Infra25725 add codecov token to workflow (#8960)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* 4.18:
  UI: ignore error when list public ips for CKS clusters on Shared network (apache#8489)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* 4.19:
  UI: ignore error when list public ips for CKS clusters on Shared network (apache#8489)
  Infra25725 add codecov token to workflow (apache#8960)
@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.

7 participants