Hi Tomas, Thanks for the fast response, we will update the code so it will use direct statistics.
Best Regards, Guy From: Tomáš Slušný [mailto:[email protected]] Sent: יום ג 21 מרץ 2017 16:10 To: Regev, Guy <[email protected]>; [email protected] Cc: Jozef Bacigál <[email protected]>; [email protected]; Alfasi, Shlomi <[email protected]> Subject: Re: Critical bug in collecting port/flow statistics Hi Guy, It seems that you have problem with statistics compatibility services, that are deprecated (because we have direct statistics now) and with single-layer-serialization turned on, these services are no longer supported, so to use them, you need to disable single-layer-serialization or use direct statistics instead. Here is wiki page for single layer serialization, where are also steps on how to disable it: https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:OF13%2B_Single_Layer_Serialization.<https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:OF13%2B_Single_Layer_Serialization> I also sent this wiki page with weather report when we enabled single layer serialization by default. Regards, Tomas Slusny ________________________________ Od: Regev, Guy <[email protected]<mailto:[email protected]>> Odoslané: 21. marca 2017 12:50 Komu: [email protected]<mailto:[email protected]> Kópia: Jozef Bacigál; Tomáš Slušný; [email protected]<mailto:[email protected]>; Alfasi, Shlomi Predmet: Critical bug in collecting port/flow statistics Hi, I’ve tried collecting node connector and flow counters using netvirt statistics bundle, and received the following error: [21/03/2017 12:56] Alfasi, Shlomi: 2017-03-21 12:24:16,149 | ERROR | entLoopGroup-7-1 | ExecutionList | 65 - com.google.guava - 18.0.0 | RuntimeException while executing runnable com.google.common.util.concurrent.Futures$6@441ec87a<mailto:com.google.common.util.concurrent.Futures$6@441ec87a> with executor INSTANCE java.lang.ClassCastException: org.opendaylight.yang.gen.v1.urn.opendaylight.multipart.types.rev170112.MultipartReplyBuilder$MultipartReplyImpl cannot be cast to org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731. MultipartReply at org.opendaylight.openflowplugin.impl.statistics.services.compatibility.NodeConnectorStatisticsToNotificationTransformer.transformToNotification(NodeConnectorStatisticsToNotificationTransformer.java:59)[330:org.opendaylight.o penflowplugin.impl:0.4.0.SNAPSHOT] It seems that the cause for this is the updated that added MultipartReplyMessageDeserializer support to MessageDeserializerInjector. This was done in: https://git.opendaylight.org/gerrit/#/c/52671/ It might be related that the TANG version for MultipartReply is rev170112, and for all other models are using rev130731. This issue prevents from netvirt statistics bundle to be tested before code freeze by the end of the month. Thanks, Guy
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
