cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick D. (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7420) Creating a stickiness policy for a load balancer rule that has protocol SSL will fail
Date Tue, 26 Aug 2014 15:28:58 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110828#comment-14110828
] 

Patrick D. commented on CLOUDSTACK-7420:
----------------------------------------

Create an LB rule:
algorithm=roundrobin&command=createLoadBalancerRule&name=lbrule&networkId=c3601690-3ea3-4987-b9e4-c55728a40384&privatePort=12&projectId=777cd2f4-8d38-4510-bce6-7d94eede0557&protocol=ssl&publicIpId=feffe971-5f58-4763-80eb-a5bfd72330c9&publicPort=12&response=json

Assign instances to it:
command=assignToLoadBalancerRule&id=46844e60-a168-4278-bd20-4f2efe21d4f5&projectId=777cd2f4-8d38-4510-bce6-7d94eede0557&response=json&virtualmachineids=0f09d6c8-d4de-4f38-a179-6b552839002b

Assign an SSL cert to it:
certId=3ed76011-c135-41d4-b180-237433b763d1&command=assignCertToLoadBalancer&lbRuleId=46844e60-a168-4278-bd20-4f2efe21d4f5&response=json

Create an LB stickiness policy for LB rule:
command=createLBStickinessPolicy&lbruleid=46844e60-a168-4278-bd20-4f2efe21d4f5&methodname=LbCookie&name=ckie&param[0].name=holdtime&param[0].value=10&projectid=777cd2f4-8d38-4510-bce6-7d94eede0557&response=json

It will then fail with the same exception.
However, if you create a rule, create a stickiness policy, assign the cert and then assign
instances, it will not fail

> Creating a stickiness policy for a load balancer rule that has protocol SSL will fail
> -------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7420
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7420
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.4.0
>            Reporter: Patrick D.
>
> 2014-08-25 11:36:05,562 ERROR [c.c.n.ExternalLoadBalancerDeviceManagerImpl] (API-Job-Executor-67:ctx-a8f58eed
job-674 ctx-47688fe7) Unable to apply load balancer rules to the external load balancer appliance
in zone dev3_zone1 due to: Exception: com.cloud.utils.exception.ExecutionException
> Message: Failed to create new virtual server:Cloud-VirtualServer due to Can not update
virtual server:Cloud-VirtualServer as current protocol:SSL of virtual server is different
from the  intended protocol:HTTP
> Stack: com.cloud.utils.exception.ExecutionException: Failed to create new virtual server:Cloud-VirtualServer
due to Can not update virtual server:Cloud-VirtualServer as current protocol:SSL of virtual
server is different from the  intended protocol:HTTP
> 	at com.cloud.network.resource.NetscalerResource.addLBVirtualServer(NetscalerResource.java:2802)
> 	at com.cloud.network.resource.NetscalerResource.execute(NetscalerResource.java:589)
> 	at com.cloud.network.resource.NetscalerResource.executeRequest(NetscalerResource.java:427)
> 	at com.cloud.network.resource.NetscalerResource.retry(NetscalerResource.java:3656)
> 	at com.cloud.network.resource.NetscalerResource.execute(NetscalerResource.java:885)
> 	at com.cloud.network.resource.NetscalerResource.executeRequest(NetscalerResource.java:427)
> 	at com.cloud.network.resource.NetscalerResource.retry(NetscalerResource.java:3656)
> 	at com.cloud.network.resource.NetscalerResource.execute(NetscalerResource.java:885)
> 	at com.cloud.network.resource.NetscalerResource.executeRequest(NetscalerResource.java:427)
> 	at com.cloud.network.resource.NetscalerResource.executeRequest(NetscalerResource.java:416)
> 	at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 	at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> 	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> 	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> 	at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> 	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)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message