
Hi Shani, We use the ovirt version - 4.2 All API works as expected except the following API, It works fine for some time and then we hit to this issue. *Not sure about the reason. * */ovirt-engine/api/disks?follow=statistics* 2018-08-31 14:26:41,875+08 ERROR [io.undertow.request] (default task-427) UT005023: Exception handling request to /ovirt-engine/api/v4/disks: java.lang.RuntimeException: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Problem following 'statistics' link in Disks entity. we get this error in server.log, I have attached the complete engine.log, server.log and console.log, please check this and let me know. Much appreciated for any help. Thanks, Hari On Mon, Aug 27, 2018 at 2:07 PM, Shani Leviim <sleviim@redhat.com> wrote:
Can you please share full engine log? Also, what is your engine's version?
*Regards,*
*Shani Leviim*
On Mon, Aug 27, 2018 at 10:23 AM, Hari Prasanth Loganathan < hariprasanth.l@msystechnologies.com> wrote:
Hi Shani,
Thanks for your response, But I need to get the disk statistics of all the VM's. Only for this
* /ovirt-engine/api/disks?follow=statistics* I get this error.
Thanks, Hari
On Mon, Aug 27, 2018 at 12:31 PM, Shani Leviim <sleviim@redhat.com> wrote:
Hi Hari, In case you want the statistics of all the VM's disks, send this request:
GET /ovirt-engine/api/vms/123?follow=disk_attachments.disk.statistics
*Regards,*
*Shani Leviim*
On Sun, Aug 26, 2018 at 6:24 PM, Hari Prasanth Loganathan < hariprasanth.l@msystechnologies.com> wrote:
I want to get disk statistics of all disks. Not just one disk.
On Sun, 26 Aug 2018 at 1:25 PM, Shani Leviim <sleviim@redhat.com> wrote:
Hi Hari, According to [1], it seems that the command's syntax is:
GET /ovirt-engine/api/disks/123/statistics
Can you give it a try? Thanks
[1] http://ovirt.github.io/ovirt-engine-api-model/4.3/#types/dis k/links/statistics
*Regards,*
*Shani Leviim*
On Fri, Aug 17, 2018 at 11:19 AM, Hari Prasanth Loganathan < hariprasanth.l@msystechnologies.com> wrote:
Hi Team,
I try to get the disk statistics using the following *Url: *
* /ovirt-engine/api/disks?follow=statistics*
and I get the following error in oVirt,
2018-08-17 15:34:24,663+08 ERROR [io.undertow.request] (default task-815) UT005023: Exception handling request to /ovirt-engine/api/v4/disks: java.lang.RuntimeException: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Problem following 'statistics' link in Disks entity. at io.undertow.servlet.spec.Reque stDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:245) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.spec.Reque stDispatcherImpl.forwardImplSetup(RequestDispatcherImpl.java:147) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.spec.Reque stDispatcherImpl.forward(RequestDispatcherImpl.java:111) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.api.restapi.i nvocation.VersionFilter.doFilter(VersionFilter.java:180) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.i nvocation.VersionFilter.doFilter(VersionFilter.java:98) [restapi-jaxrs.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.api.restapi.i nvocation.CurrentFilter.doFilter(CurrentFilter.java:117) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.i nvocation.CurrentFilter.doFilter(CurrentFilter.java:72) [restapi-jaxrs.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filt ers.RestApiSessionMgmtFilter.doFilter(RestApiSessionMgmtFilter.java:78) [aaa.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filt ers.EnforceAuthFilter.doFilter(EnforceAuthFilter.java:42) [aaa.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filt ers.SsoRestApiNegotiationFilter.doFilter(SsoRestApiNegotiationFilter.java:84) [aaa.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filt ers.SsoRestApiAuthFilter.doFilter(SsoRestApiAuthFilter.java:47) [aaa.jar:] at io.undertow.servlet.core.Manag edFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.F ilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filt ers.SessionValidationFilter.doFilter(SessionValidationFilter.java:59) [aaa.jar:]
Caused by: java.lang.IllegalStateException: Problem following 'statistics' link in Disks entity. at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.fetchData(LinkFollower.java:185) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.followLink(LinkFollower.java:144) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.followLinks(LinkFollower.java:132) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.followLinks(LinkFollower.java:53) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.r esource.BaseBackendResource.follow(BaseBackendResource.java:412) [restapi-jaxrs.jar:] at org.ovirt.engine.api.resource. DisksResource.doList(DisksResource.java:222) [restapi-definition.jar:] at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source) [:1.8.0_181] at sun.reflect.DelegatingMethodAc cessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_181] at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_181] at org.jboss.resteasy.core.Method InjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:510) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:401) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:365) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.interc eption.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:361) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:367) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceMethodInvoker.invoke(ResourceMethodInvoker.java:339) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:137) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Resour ceLocatorInvoker.invoke(ResourceLocatorInvoker.java:100) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.Synchr onousDispatcher.invoke(SynchronousDispatcher.java:441) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] ... 96 more Caused by: java.lang.IllegalStateException: Problem fetching 'statistics' from Disk at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.fetchData(LinkFollower.java:219) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.r esource.utils.LinkFollower.fetchData(LinkFollower.java:182) [restapi-jaxrs.jar:] ... 114 more Caused by: java.lang.NullPointerException
Any thoughts on this?
Thanks, Hari
DISCLAIMER - *MSysTechnologies LLC*
This email message, contents and its attachments may contain confidential, proprietary or legally privileged information and is intended solely for the use of the individual or entity to whom it is actually intended. If you have erroneously received this message, please permanently delete it immediately and notify the sender. If you are not the intended recipient of the email message,you are notified strictly not to disseminate,distribute or copy this e-mail.E-mail transmission cannot be guaranteed to be secure or error-free as Information could be intercepted, corrupted, lost, destroyed, incomplete or contain viruses and MSysTechnologies LLC accepts no liability for the contents and integrity of this mail or for any damage caused by the limitations of the e-mail transmission.
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/communit y/about/community-guidelines/ List Archives: https://lists.ovirt.org/archiv es/list/users@ovirt.org/message/C7IH6KXS5XAE2UTM4DLRVYSJPNZVOVIT/
DISCLAIMER - *MSysTechnologies LLC*
This email message, contents and its attachments may contain confidential, proprietary or legally privileged information and is intended solely for the use of the individual or entity to whom it is actually intended. If you have erroneously received this message, please permanently delete it immediately and notify the sender. If you are not the intended recipient of the email message,you are notified strictly not to disseminate,distribute or copy this e-mail.E-mail transmission cannot be guaranteed to be secure or error-free as Information could be intercepted, corrupted, lost, destroyed, incomplete or contain viruses and MSysTechnologies LLC accepts no liability for the contents and integrity of this mail or for any damage caused by the limitations of the e-mail transmission.
DISCLAIMER - *MSysTechnologies LLC*
This email message, contents and its attachments may contain confidential, proprietary or legally privileged information and is intended solely for the use of the individual or entity to whom it is actually intended. If you have erroneously received this message, please permanently delete it immediately and notify the sender. If you are not the intended recipient of the email message,you are notified strictly not to disseminate,distribute or copy this e-mail.E-mail transmission cannot be guaranteed to be secure or error-free as Information could be intercepted, corrupted, lost, destroyed, incomplete or contain viruses and MSysTechnologies LLC accepts no liability for the contents and integrity of this mail or for any damage caused by the limitations of the e-mail transmission.
-- DISCLAIMER - *MSysTechnologies LLC* This email message, contents and its attachments may contain confidential, proprietary or legally privileged information and is intended solely for the use of the individual or entity to whom it is actually intended. If you have erroneously received this message, please permanently delete it immediately and notify the sender. If you are not the intended recipient of the email message,you are notified strictly not to disseminate,distribute or copy this e-mail.E-mail transmission cannot be guaranteed to be secure or error-free as Information could be intercepted, corrupted, lost, destroyed, incomplete or contain viruses and MSysTechnologies LLC accepts no liability for the contents and integrity of this mail or for any damage caused by the limitations of the e-mail transmission.