You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/11/24 05:57:24 UTC

[GitHub] [cloudstack] davidjumani opened a new pull request #4501: Disallowing udp for lb rules

davidjumani opened a new pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501


   ### Description
   
   Since CloudStack uses HAproxy as a load balancer which doesn't support udp, adding checks to prevent udp from being passed as the protocol
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [x] Minor
   - [ ] Trivial
   
   ### How Has This Been Tested?
   
   ![lb](https://user-images.githubusercontent.com/8244774/100054249-bc33d000-2e47-11eb-906a-0e9e23fc7e86.jpg)
   
   ```
   (localhost) 🐱 > create loadbalancerrule name=test publicport=80 privateport=80 protocol=udp algorithm=round-robin publicipid=afe66a42-2ebc-476b-bf5f-8954fcc42f32
   🙈 Error: (HTTP 431, error code 9999) Invalid protocool. Supported protocols are tcp and tcp-proxy
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736208127


   @blueorangutan test


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734959823


   <b>Trillian test result (tid-3276)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 33453 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4501-t3276-kvm-centos7.zip
   Intermittent failure detected: /marvin/tests/smoke/test_loadbalance.py
   Intermittent failure detected: /marvin/tests/smoke/test_network.py
   Intermittent failure detected: /marvin/tests/smoke/test_usage.py
   Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
   Smoke tests completed. 80 look OK, 3 have error(s)
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   test_01_create_lb_rule_src_nat | `Error` | 0.14 | test_loadbalance.py
   test_02_create_lb_rule_non_nat | `Error` | 0.04 | test_loadbalance.py
   test_assign_and_removal_lb | `Error` | 0.09 | test_loadbalance.py
   test_delete_account | `Error` | 56.56 | test_network.py
   test_reboot_router | `Error` | 172.78 | test_network.py
   test_releaseIP | `Error` | 55.78 | test_network.py
   test_network_rules_acquired_public_ip_3_Load_Balancer_Rule | `Error` | 3.31 | test_network.py
   test_01_lb_usage | `Error` | 0.06 | test_usage.py
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732767465


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-735575651


   Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2444


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736313776


   @blueorangutan test


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736212584


   @davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734170435


   @weizhouapache Added the check under `validateHAProxyLBRule`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-735556861


   @davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on a change in pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on a change in pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#discussion_r530199181



##########
File path: api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java
##########
@@ -114,7 +114,7 @@
         + "rule will be created for. Required when public Ip address is not associated with any Guest network yet (VPC case)")
     private Long networkId;
 
-    @Parameter(name = ApiConstants.PROTOCOL, type = CommandType.STRING, description = "The protocol for the LB such as tcp, udp or tcp-proxy.")
+    @Parameter(name = ApiConstants.PROTOCOL, type = CommandType.STRING, description = "The protocol for the LB such as tcp or tcp-proxy.")
     private String lbProtocol;

Review comment:
       @davidjumani might 'udp' be supportd by some lb hardware devices ?
   
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734739958


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732870308


   @ravening CloudStack allows a udp lb rule to be created but haproxy itself which is internally used for load balancing doesn't support udp load balancing
   Also the cloudstack treats all lb rules as tcp
   https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java#L340
   https://github.com/apache/cloudstack/blob/master/core/src/main/java/com/cloud/network/HAProxyConfigurator.java#L48


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732753461


   Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2427


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani edited a comment on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani edited a comment on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732870308


   @ravening CloudStack allows a udp lb rule to be created but haproxy itself which is internally used for load balancing doesn't support udp load balancing
   Also cloudstack treats all lb rules as tcp
   https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java#L340
   https://github.com/apache/cloudstack/blob/master/core/src/main/java/com/cloud/network/HAProxyConfigurator.java#L48


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd merged pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on a change in pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on a change in pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#discussion_r530297887



##########
File path: api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java
##########
@@ -114,7 +114,7 @@
         + "rule will be created for. Required when public Ip address is not associated with any Guest network yet (VPC case)")
     private Long networkId;
 
-    @Parameter(name = ApiConstants.PROTOCOL, type = CommandType.STRING, description = "The protocol for the LB such as tcp, udp or tcp-proxy.")
+    @Parameter(name = ApiConstants.PROTOCOL, type = CommandType.STRING, description = "The protocol for the LB such as tcp or tcp-proxy.")
     private String lbProtocol;

Review comment:
       @weizhouapache good point, I'll move the check to the NetworkHelperImpl.java




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] ravening commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
ravening commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732876305


   > @ravening CloudStack allows a udp lb rule to be created but haproxy itself which is internally used for load balancing doesn't support udp load balancing
   > Also cloudstack treats all lb rules as tcp
   > https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java#L340
   > https://github.com/apache/cloudstack/blob/master/core/src/main/java/com/cloud/network/HAProxyConfigurator.java#L48
   
   @davidjumani 
   yeah checked the haproxy docs and it doesnt support udp.
   will there be a possibility where we can have different type of loadbalancers with udp support?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-735585657


   @blueorangutan test


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732727613


   @blueorangutan package


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733159023


   <b>Trillian test result (tid-3239)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 30945 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4501-t3239-kvm-centos7.zip
   Smoke tests completed. 83 look OK, 0 have error(s)
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736212254


   @blueorangutan package


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736208346


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733018964


   @ravening those are extra features for configuring/fine tuning the loadbalancer as it exists for tcp. the issue I linked is about missing support for udp and conflicts between udp and tcp definitions coexisting. (related but still unrelated)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] ravening commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
ravening commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732846942


   @davidjumani it does support udp
   
   ```
   (local) 🐱 > create loadbalancerrule name=test privateport=80 publicport=8080 protocol=udp account=admin domainid=04dfd1c6-c28e-11ea-9a43-0617bc003377 networkid=d396de4e-0e23-4e3b-a19a-1fe1ac35227c publicipid=6275b645-fac5-4b03-a2f1-40848655ffd0 algorithm=roundrobin
   {
     "loadbalancer": {
       "account": "admin",
       "algorithm": "roundrobin",
       "cidrlist": "",
       "domain": "ROOT",
       "domainid": "04dfd1c6-c28e-11ea-9a43-0617bc003377",
       "fordisplay": true,
       "id": "d1883751-9e55-4104-a522-c6c5c09a123b",
       "name": "test",
       "networkid": "d396de4e-0e23-4e3b-a19a-1fe1ac35227c",
       "privateport": "80",
       "protocol": "udp",
       "publicip": "10.10.20.1",
       "publicipid": "6275b645-fac5-4b03-a2f1-40848655ffd0",
       "publicport": "8080",
       "state": "Add",
       "tags": [],
       "zoneid": "8ae93aed-7db1-4a1a-9030-db0efac6ba62",
       "zonename": "mgt122-10"
     }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732766540


   @blueorangutan test


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736158781


   <b>Trillian test result (tid-3285)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 65709 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4501-t3285-kvm-centos7.zip
   Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
   Intermittent failure detected: /marvin/tests/smoke/test_public_ip_range.py
   Intermittent failure detected: /marvin/tests/smoke/test_reset_vm_on_reboot.py
   Intermittent failure detected: /marvin/tests/smoke/test_resource_accounting.py
   Intermittent failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
   Intermittent failure detected: /marvin/tests/smoke/test_router_dns.py
   Intermittent failure detected: /marvin/tests/smoke/test_router_dnsservice.py
   Intermittent failure detected: /marvin/tests/smoke/test_routers_iptables_default_policy.py
   Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
   Intermittent failure detected: /marvin/tests/smoke/test_routers.py
   Intermittent failure detected: /marvin/tests/smoke/test_secondary_storage.py
   Intermittent failure detected: /marvin/tests/smoke/test_service_offerings.py
   Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
   Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
   Intermittent failure detected: /marvin/tests/smoke/test_templates.py
   Intermittent failure detected: /marvin/tests/smoke/test_usage.py
   Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
   Intermittent failure detected: /marvin/tests/smoke/test_vm_snapshots.py
   Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
   Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
   Intermittent failure detected: /marvin/tests/smoke/test_vpc_router_nics.py
   Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
   Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
   Smoke tests completed. 62 look OK, 21 have error(s)
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   ContextSuite context=TestResetVmOnReboot>:setup | `Error` | 0.00 | test_reset_vm_on_reboot.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=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
   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.15 | test_secondary_storage.py
   ContextSuite context=TestCpuCapServiceOfferings>:setup | `Error` | 0.00 | test_service_offerings.py
   ContextSuite context=TestServiceOfferings>:setup | `Error` | 0.22 | test_service_offerings.py
   ContextSuite context=TestSnapshotRootDisk>:setup | `Error` | 0.00 | test_snapshots.py
   test_01_list_sec_storage_vm | `Failure` | 0.06 | test_ssvm.py
   test_02_list_cpvm_vm | `Failure` | 0.05 | test_ssvm.py
   test_03_ssvm_internals | `Failure` | 0.06 | test_ssvm.py
   test_04_cpvm_internals | `Failure` | 0.05 | test_ssvm.py
   test_05_stop_ssvm | `Failure` | 0.05 | 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_destroy_ssvm | `Failure` | 0.05 | test_ssvm.py
   test_10_destroy_cpvm | `Failure` | 0.06 | test_ssvm.py
   test_02_create_template_with_checksum_sha1 | `Error` | 65.62 | test_templates.py
   test_03_create_template_with_checksum_sha256 | `Error` | 65.63 | test_templates.py
   test_04_create_template_with_checksum_md5 | `Error` | 65.61 | test_templates.py
   test_05_create_template_with_no_checksum | `Error` | 65.64 | test_templates.py
   test_02_deploy_vm_from_direct_download_template | `Error` | 1.38 | test_templates.py
   test_03_deploy_vm_wrong_checksum | `Error` | 1.42 | test_templates.py
   ContextSuite context=TestTemplates>:setup | `Error` | 19.32 | 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=Test01DeployVM>:setup | `Error` | 0.00 | test_vm_life_cycle.py
   ContextSuite context=Test02VMLifeCycle>:setup | `Error` | 0.00 | test_vm_life_cycle.py
   test_14_secure_to_secure_vm_migration | `Error` | 11.56 | test_vm_life_cycle.py
   test_15_secured_to_nonsecured_vm_migration | `Error` | 74.12 | test_vm_life_cycle.py
   test_16_nonsecured_to_secured_vm_migration | `Error` | 1.37 | test_vm_life_cycle.py
   ContextSuite context=TestVmSnapshot>:setup | `Error` | 2.23 | test_vm_snapshots.py
   ContextSuite context=TestCreateVolume>:setup | `Error` | 0.00 | test_volumes.py
   ContextSuite context=TestVolumes>:setup | `Error` | 0.00 | test_volumes.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_disable_oobm_ha_state_ineligible | `Error` | 1516.19 | test_hostha_kvm.py
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733604848


   That's a good point, some LB providers may actually support UDP but in most real world usecases would LB over tcp. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733551542


   @weizhouapache since you've worked a lot of haproxy/lb, do you agree with this PR?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736314276


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734737840


   Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2441


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736731292


   <b>Trillian test result (tid-3295)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 32294 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4501-t3295-kvm-centos7.zip
   Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
   Smoke tests completed. 83 look OK, 0 have error(s)
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-736221725


   Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2449


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-735556680


   @blueorangutan package


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734722120


   @rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734721383


   @blueorangutan package


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733562559


   @davidjumani fyi,
   In my pr for load balancer configurations #4141, there is a check on haproxy rule
   
   https://github.com/apache/cloudstack/pull/4141/files#diff-1fea20ffdf01a98062ef48dfd3afa97d6fb0355f2f8c84acddc5115876f0188dR792-R806
   
   line 792 to 806 in server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on a change in pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on a change in pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#discussion_r530198051



##########
File path: api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java
##########
@@ -255,6 +255,12 @@ public Boolean getOpenFirewall() {
     }
 
     public String getLbProtocol() {
+        if (lbProtocol != null) {
+            lbProtocol = lbProtocol.toLowerCase();
+            if (!lbProtocol.equals(NetUtils.TCP_PROTO) && !lbProtocol.equals(NetUtils.TCP_PROXY_PROTO)) {
+                throw new InvalidParameterValueException("Invalid protocool. Supported protocols are tcp and tcp-proxy");

Review comment:
       @davidjumani as far as I remember, 'ssl' is also a valid protocol
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732727986


   @davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734739427


   @blueorangutan test


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-734185132


   > @weizhouapache Added the check under `validateHAProxyLBRule`
   
   @davidjumani I will test it


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733000667


   let's link to #4481 here, so we have context when discussing implementation. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] davidjumani commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
davidjumani commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-732885895


   > @davidjumani
   > yeah checked the haproxy docs and it doesnt support udp.
   > will there be a possibility where we can have different type of loadbalancers with udp support?
   
   @ravening There are options such as nginx which can be explored later on if there's a need for udp load balancing (since no one noticed that it didn't work so far), so raising this PR so users won't be misled
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4501: Disallowing udp for lb rules for haproxy

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-735586348


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] ravening commented on pull request #4501: Disallowing udp for lb rules

Posted by GitBox <gi...@apache.org>.
ravening commented on pull request #4501:
URL: https://github.com/apache/cloudstack/pull/4501#issuecomment-733003045


   @davidjumani @DaanHoogland pr for haproxy support is here https://github.com/apache/cloudstack/pull/4141


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org