cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sadhu suresh (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-2456) usage:usage parser throws runtime exception while parsing networkoffering usage
Date Fri, 12 Jul 2013 07:37:50 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

sadhu suresh closed CLOUDSTACK-2456.
------------------------------------


verified the issue and found to be ok.
 IST 2013, endDate: Fri Jul 12 18:35:00 IST 2013, for account: 2
2013-07-12 13:05:00,313 DEBUG [usage.parser.PortForwardingUsageParser] (Usage-Job-1:null)
Parsing all PortForwardingRule usage events for account: 2
2013-07-12 13:05:00,314 DEBUG [usage.parser.PortForwardingUsageParser] (Usage-Job-1:null)
No port forwarding usage events for this period
2013-07-12 13:05:00,314 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Parsing all NetworkOffering usage events for account: 2
2013-07-12 13:05:00,315 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Total running time 599892ms
2013-07-12 13:05:00,316 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Creating network offering:10 usage record for Vm : 9, usage: 0.166637, startDate: Fri Jul
12 18:25:00 IST 2013, endDate: Fri Jul 12 18:35:00 IST 2013, for account: 2
2013-07-12 13:05:00,317 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Total running time 599892ms
2013-07-12 13:05:00,318 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Creating network offering:10 usage record for Vm : 4, usage: 0.166637, startDate: Fri Jul
12 18:25:00 IST 2013, endDate: Fri Jul 12 18:35:00 IST 2013, for account: 2
2013-07-12 13:05:00,319 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Total running time 599892ms
2013-07-12 13:05:00,320 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Creating network offering:10 usage record for Vm : 6, usage: 0.166637, startDate: Fri Jul
12 18:25:00 IST 2013, endDate: Fri Jul 12 18:35:00 IST 2013, for account: 2
2013-07-12 13:05:00,321 DEBUG [usage.parser.IPAddressUsageParser] (Usage-Job-1:null) Parsing
IP Address usage for account: 2
2013-07-12 13:05:00,323 DEBUG [usage.parser.IPAddressUsageParser] (Usage-Job-1:null) Total
usage time 599892ms

                
> usage:usage parser throws runtime exception while parsing  networkoffering usage 
> ---------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2456
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2456
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Usage
>    Affects Versions: 4.2.0
>            Reporter: sadhu suresh
>            Priority: Critical
>
> Noticed runtime exception in the  usage log due to usage parser failed  while parsing
network-offering usage due to  invalid date format
> steps:
> 1.install the usage server
> 2.configure the usage serve to query the usage statistics for every 10 min
> 3.configure the lb and generate the load form VM 
> 4.check the usage events
> actual results:
> Noticed runtime exception in the  usage log due to usage parser failed  while parsing
networkoffering usage due to Unparseable date
>  content of usage log:
> *******************
> 2013-05-13 14:05:04,367 DEBUG [usage.parser.PortForwardingUsageParser] (Usage-Job-1:null)
Parsing all PortForwardingRule usage events for account: 23
> 2013-05-13 14:05:04,368 DEBUG [usage.parser.PortForwardingUsageParser] (Usage-Job-1:null)
No port forwarding usage events for this period
> 2013-05-13 14:05:04,368 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
Parsing all NetworkOffering usage events for account: 23
> 2013-05-13 14:05:04,370 WARN  [usage.dao.UsageNetworkOfferingDaoImpl] (Usage-Job-1:null)
Error getting usage records
> com.cloud.utils.exception.CloudRuntimeException: why why
>         at com.cloud.utils.DateUtil.parseDateString(DateUtil.java:55)
>         at com.cloud.utils.DateUtil.parseDateString(DateUtil.java:45)
>         at com.cloud.usage.dao.UsageNetworkOfferingDaoImpl.getUsageRecords(UsageNetworkOfferingDaoImpl.java:136)
>         at com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_4853ba17.CGLIB$getUsageRecords$1(<generated>)
>         at com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_4853ba17_FastClassByCloudStack_c905aa49.invoke(<generated>)
>         at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_4853ba17.getUsageRecords(<generated>)
>         at com.cloud.usage.parser.NetworkOfferingUsageParser.parse(NetworkOfferingUsageParser.java:69)
>         at com.cloud.usage.UsageManagerImpl.parseHelperTables(UsageManagerImpl.java:735)
>         at com.cloud.usage.UsageManagerImpl.parse(UsageManagerImpl.java:593)
>         at com.cloud.usage.UsageManagerImpl.run(UsageManagerImpl.java:323)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> Caused by: java.text.ParseException: Unparseable date: "1"
>         at java.text.DateFormat.parse(DateFormat.java:354)
>         at com.cloud.utils.DateUtil.parseDateString(DateUtil.java:53)
>         ... 19 more
> 2013-05-13 14:05:04,370 DEBUG [usage.parser.NetworkOfferingUsageParser] (Usage-Job-1:null)
No NetworkOffering usage events for this period
> additional info:
> It looks like in the code ,wrongly assigning the retturned resultset field value(default)
to date field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message