weizhouapache opened a new issue, #8585:
URL: https://github.com/apache/cloudstack/issues/8585

   when I input the `External load balancer IP address`, I got the exception
   ```
   externalloadbalanceripaddress parameter must be specified along with Shared 
type of network
   ```
   when I did not input the value, got a different exception
   ```
   Multi-control nodes, HA Kubernetes cluster with Shared network ID: 
82b60ec8-b2a2-4d5c-9dfd-c6528b31b03a needs an external load balancer IP 
address. externalloadbalanceripaddress parameter can be used
   ```
   
   This issue could be fixed by
   ```
   diff --git 
a/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
 
b/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
   index f45f78bf42c..a367a99304e 100644
   --- 
a/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
   +++ 
b/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
   @@ -825,7 +825,7 @@ public class KubernetesClusterManagerImpl extends 
ManagerBase implements Kuberne
                if (network == null) {
                    throw new InvalidParameterValueException(String.format("%s 
parameter must be specified along with %s parameter", 
ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, ApiConstants.NETWORK_ID));
                }
   -            if (Network.GuestType.Shared.equals(network.getGuestType())) {
   +            if (!Network.GuestType.Shared.equals(network.getGuestType())) {
                    throw new InvalidParameterValueException(String.format("%s 
parameter must be specified along with %s type of network", 
ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, 
Network.GuestType.Shared.toString()));
                }
            }
   ```
   
   It works in Advanced zone, but CKS still does not work in advanced zone with 
security groups.
   - The first control nodes was setup successfully
   - The 2nd/3rd control nodes do not work
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   ACS 4.19.0-RC4
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   
   ~~~
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to