cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-8902) Restart Network fails in EIP/ELB zone
Date Wed, 04 Nov 2015 10:39:27 GMT


ASF subversion and git services commented on CLOUDSTACK-8902:

Commit 2fd6fac214956693b43dd3e75b6d8a4bc4e9fdc6 in cloudstack's branch refs/heads/master from
[;h=2fd6fac ]

Merge pull request #898 from bvbharatk/CLOUDSTACK-8902

CLOUDSTACK-8902 Restart Network fails in EIP/ELB zoneThe restart network was failing when
using external loadbalencer. The failure was because of a number format exception. When BroadcastDomainType.getValue(guestConfig.getBroadcastUri()
is executed this returns a string untagged. We were trying to parse this as long so there
was a number pointer exception.

This happens only when the vlan uri is vlan://untagged. in other cases were there is a number
instead of untagged (vlan tag) this used to succeed. Although we were trying to convert the
number to long we were not really using it. we were converting the number to long and then
back to string when creating the IpAddressTo. so I removed this unnecessary conversion in
this case for fixing the issue at hand.

I did a manual restart of the network and checked for this number format exception in a EIP/ELB

* pr/898:
  CLOUDSTACK-89027 Restart Network fails in EIP/ELB zone

Signed-off-by: Remi Bergsma <>

> Restart Network fails in EIP/ELB zone
> -------------------------------------
>                 Key: CLOUDSTACK-8902
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.6.0
>            Reporter: Bharat Kumar
>            Assignee: Bharat Kumar
> Environment: Basic XS Zone with EIP/LB.
> In an EIP zone, restarting a network with cleanup option checked , is failing with NumberFormatException.
> 2015-07-13 10:52:29,819 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-52:ctx-c6499039
job-100 ctx-4281c3af) (logid:7b32a53a) Sending network shutdown to Netscaler
> 2015-07-13 10:52:29,825 WARN [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-52:ctx-c6499039
job-100 ctx-4281c3af) (logid:7b32a53a) Unable to complete shutdown of the network elements
due to element: Netscaler
> java.lang.NumberFormatException: For input string: "untagged"
> at java.lang.NumberFormatException.forInputString(
> at java.lang.Long.parseLong(
> at java.lang.Long.parseLong(
> at
> at
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.shutdownNetworkElementsAndResources(
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.restartNetwork(
> at
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> at java.lang.reflect.Method.invoke(
> at
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> at$EventInterceptor.invoke(
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> at
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
> at $Proxy164.restartNetwork(Unknown Source)
> at
> at
> at
> at$5.runInContext(
> at org.apache.cloudstack.managed.context.ManagedContextRunnable$
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(
> at
> at$
> at java.util.concurrent.Executors$
> at java.util.concurrent.FutureTask$Sync.innerRun(
> at
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> at java.util.concurrent.ThreadPoolExecutor$
> at

This message was sent by Atlassian JIRA

View raw message