[ https://issues.apache.org/jira/browse/STRATOS-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173250#comment-15173250 ]
Isuru Haththotuwa commented on STRATOS-1656: -------------------------------------------- Removed redundant data persistence implementation with 6ee5045f77c2663faf58e0c5707871638430c363. > AWS LB Extension Tries to Create Already Existing LBs and Fails > --------------------------------------------------------------- > > Key: STRATOS-1656 > URL: https://issues.apache.org/jira/browse/STRATOS-1656 > Project: Stratos > Issue Type: Bug > Affects Versions: 4.1.5 > Reporter: Isuru Haththotuwa > Assignee: Isuru Haththotuwa > Fix For: FUTURE > > > Fails with the following error: > [2016-02-29 08:51:53,763] INFO - [AWSHelper] Creating load balancer > TESTLB-wso2das-300 > [2016-02-29 08:51:54,574] ERROR - [AWSHelper] Could not create load balancer > TESTLB-wso2das-300 > com.amazonaws.services.elasticloadbalancing.model.DuplicateLoadBalancerNameException: > Load Balancer named TESTLB-wso2das-300 already exists and it is configured > with different parameters. (Service: AmazonElasticLoadBalancing; Status Code: > 400; Error Code: DuplicateLoadBalancerName; Request ID: > b28b3514-dec1-11e5-8dbd-b198991bfee1) > at > com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:937) > at > com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:506) > at > com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:273) > at > com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient.invoke(AmazonElasticLoadBalancingClient.java:2033) > at > com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient.createLoadBalancer(AmazonElasticLoadBalancingClient.java:1406) > at > org.apache.stratos.aws.extension.AWSHelper.createLoadBalancer(AWSHelper.java:379) > at > org.apache.stratos.aws.extension.AWSLoadBalancer.configure(AWSLoadBalancer.java:176) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.configureAndStart(LoadBalancerExtension.java:284) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.access$200(LoadBalancerExtension.java:49) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension$3.onEvent(LoadBalancerExtension.java:223) > at > org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42) > at java.util.Observable.notifyObservers(Observable.java:159) > at > org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51) > at > org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor.process(CompleteTopologyMessageProcessor.java:69) > at > org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:61) > at > org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator.run(TopologyEventMessageDelegator.java:73) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > [2016-02-29 08:51:54,576] ERROR - [LoadBalancerExtension] Could not start > load balancer > org.apache.stratos.load.balancer.extension.api.exception.LoadBalancerExtensionException: > Could not create load balancer TESTLB-wso2das-300 > at > org.apache.stratos.aws.extension.AWSHelper.createLoadBalancer(AWSHelper.java:387) > at > org.apache.stratos.aws.extension.AWSLoadBalancer.configure(AWSLoadBalancer.java:176) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.configureAndStart(LoadBalancerExtension.java:284) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.access$200(LoadBalancerExtension.java:49) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension$3.onEvent(LoadBalancerExtension.java:223) > at > org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42) > at java.util.Observable.notifyObservers(Observable.java:159) > at > org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51) > at > org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor.process(CompleteTopologyMessageProcessor.java:69) > at > org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:61) > at > org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator.run(TopologyEventMessageDelegator.java:73) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: > com.amazonaws.services.elasticloadbalancing.model.DuplicateLoadBalancerNameException: > Load Balancer named TESTLB-wso2das-300 already exists and it is configured > with different parameters. (Service: AmazonElasticLoadBalancing; Status Code: > 400; Error Code: DuplicateLoadBalancerName; Request ID: > b28b3514-dec1-11e5-8dbd-b198991bfee1) > at > com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:937) > at > com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:506) > at > com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:273) > at > com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient.invoke(AmazonElasticLoadBalancingClient.java:2033) > at > com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient.createLoadBalancer(AmazonElasticLoadBalancingClient.java:1406) > at > org.apache.stratos.aws.extension.AWSHelper.createLoadBalancer(AWSHelper.java:379) > ... 13 more > [2016-02-29 08:51:54,582] INFO - [AWSLoadBalancer] Not terminating LBs since > terminate.lbs.on.extension.stop=false -- This message was sent by Atlassian JIRA (v6.3.4#6332)