You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2014/05/20 07:51:38 UTC
[jira] [Updated] (CLOUDSTACK-6713) NumberFormatException for
NetworkUsage command
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanjeev N updated CLOUDSTACK-6713:
----------------------------------
Attachment: management-server.rar
Attached MS log file.
> NumberFormatException for NetworkUsage command
> ----------------------------------------------
>
> Key: CLOUDSTACK-6713
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6713
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Management Server, Network Controller
> Affects Versions: 4.4.0
> Environment: Latest build from 4.4 branch with commit e6961fd21bb6d793302c234d0f409f66dc498072
> Reporter: Sanjeev N
> Priority: Critical
> Fix For: 4.4.0
>
> Attachments: management-server.rar
>
>
> NumberFormatException for NetworkUsage command
> Steps to reproduce:
> ===============
> 1.Bringup CS in advanced zone with xen cluster
> 2.Create an isolated network with default offering
> 3.Deploy vms in the above created network
> 4.Verify the MS logs when NetworkUsageCommand gets executed.
> Result:
> ======
> Observed follwoing error messages:
> 2014-05-20 07:06:10,395 DEBUG [c.c.a.m.AgentManagerImpl] (RouterMonitor-1:ctx-f553d26b) Details from executing class com.cloud.agent.api.NetworkUsageCommand:
> 2014-05-20 07:06:10,412 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-18:ctx-39256528) Seq 2-17451448556062862: Executing request
> 2014-05-20 07:06:10,416 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-18:ctx-39256528) Executing command in VR: /opt/cloud/bin/router_proxy.sh netusage.sh 169.254.1.119 -g
> 2014-05-20 07:06:10,830 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-18:ctx-39256528) Seq 2-17451448556062862: Response Received:
> 2014-05-20 07:06:10,831 DEBUG [c.c.a.t.Request] (DirectAgent-18:ctx-39256528) Seq 2-17451448556062862: Processing: { Ans: , MgmtId: 7332683579487, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.NetworkUsageAnswer":{"routerName":"r-9-VM","bytesSent":184390,"bytesReceived":3345484,"result":true,"details":"","wait":0}}] }
> 2014-05-20 07:06:10,831 DEBUG [c.c.a.t.Request] (RouterMonitor-1:ctx-f553d26b) Seq 2-17451448556062862: Received: { Ans: , MgmtId: 7332683579487, via: 2, Ver: v1, Flags: 10, { NetworkUsageAnswer } }
> 2014-05-20 07:06:10,831 DEBUG [c.c.a.m.AgentManagerImpl] (RouterMonitor-1:ctx-f553d26b) Details from executing class com.cloud.agent.api.NetworkUsageCommand:
> 2014-05-20 07:06:10,967 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-409:ctx-0e46d4d0) Seq 2-17451448556062863: Executing request
> 2014-05-20 07:06:10,971 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-409:ctx-0e46d4d0) Executing command in VR: /opt/cloud/bin/router_proxy.sh netusage.sh 169.254.2.24 -g
> 2014-05-20 07:06:11,379 WARN [c.c.h.x.r.XenServer56Resource] (DirectAgent-409:ctx-0e46d4d0) Failed to get network usage stats due to
> java.lang.NumberFormatException: For input string: "iptables"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:441)
> at java.lang.Long.<init>(Long.java:702)
> at com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetworkStats(CitrixResourceBase.java:2228)
> at com.cloud.hypervisor.xen.resource.XenServer56Resource.execute(XenServer56Resource.java:214)
> at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
> at com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65)
> 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:744)
> 2014-05-20 07:06:11,383 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-409:ctx-0e46d4d0) Seq 2-17451448556062863: Response Received:
> 2014-05-20 07:06:11,384 DEBUG [c.c.a.t.Request] (DirectAgent-409:ctx-0e46d4d0) Seq 2-17451448556062863: Processing: { Ans: , MgmtId: 7332683579487, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.NetworkUsageAnswer":{"result":false,"details":"Exception: java.lang.NumberFormatException\nMessage: For input string: \"iptables\"\nStack: java.lang.NumberFormatException: For input string: \"iptables\"\n\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\n\tat java.lang.Long.parseLong(Long.java:441)\n\tat java.lang.Long.<init>(Long.java:702)\n\tat com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetworkStats(CitrixResourceBase.java:2228)\n\tat com.cloud.hypervisor.xen.resource.XenServer56Resource.execute(XenServer56Resource.java:214)\n\tat com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)\n\tat com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)\n\tat com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65)\n\tat com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)\n\tat org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)\n\tat org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:744)\n","wait":0}}] }
> 2014-05-20 07:06:11,384 DEBUG [c.c.a.t.Request] (RouterMonitor-1:ctx-f553d26b) Seq 2-17451448556062863: Received: { Ans: , MgmtId: 7332683579487, via: 2, Ver: v1, Flags: 10, { NetworkUsageAnswer } }
> 2014-05-20 07:06:11,384 DEBUG [c.c.a.m.AgentManagerImpl] (RouterMonitor-1:ctx-f553d26b) Details from executing class com.cloud.agent.api.NetworkUsageCommand: Exception: java.lang.NumberFormatException
> Message: For input string: "iptables"
> This command gets executed for every 5 mins and we see these exceptions in the log file for every 5 mins.
--
This message was sent by Atlassian JIRA
(v6.2#6252)