
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.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:245) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImplSe tup(RequestDispatcherImpl.java:147) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:111) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilter(VersionFilter.java:180) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilter(VersionFilter.java:98) [restapi-jaxrs.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.api.restapi.invocation.CurrentFilter.doFilter(CurrentFilter.java:117) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.invocation.CurrentFilter.doFilter(CurrentFilter.java:72) [restapi-jaxrs.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filters.RestApiSessionMgmtFilter.d oFilter(RestApiSessionMgmtFilter.java:78) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filters.EnforceAuthFilter.doFilter(EnforceAuthFilter.java:42) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filters.SsoRestApiNegotiationFilte r.doFilter(SsoRestApiNegotiationFilter.java:84) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter.doFil ter(SsoRestApiAuthFilter.java:47) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.9.Final.jar:2.0.9.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.core.aaa.filters.SessionValidationFilter.do Filter(SessionValidationFilter.java:59) [aaa.jar:]
Caused by: java.lang.IllegalStateException: Problem following 'statistics' link in Disks entity. at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.fetchData(LinkFollower.java:185) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.followLink(LinkFollower.java:144) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.fol lowLinks(LinkFollower.java:132) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.followLinks(LinkFollower.java:53) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.BaseBackendResource.fo llow(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.DelegatingMethodAccessorImpl.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.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvoke OnTarget(ResourceMethodInvoker.java:510) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget AfterFilter(ResourceMethodInvoker.java:401) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeO nTarget$0(ResourceMethodInvoker.java:365) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.interception.PreMatchContainerReques tContext.filter(PreMatchContainerRequestContext.java:361) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget (ResourceMethodInvoker.java:367) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:339) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge tObject(ResourceLocatorInvoker.java:137) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:100) [resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final] at org.jboss.resteasy.core.SynchronousDispatcher.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.resource.utils.LinkFollower.fetchData(LinkFollower.java:219) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.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.