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?followI get this error.=statistics Thanks,HariOn 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.stati stics Regards,Shani LeviimOn 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?ThanksRegards,Shani LeviimOn 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.IllegalStateExceptio n: Problem following 'statistics' link in Disks entity. at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(R equestDispatcherImpl.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(Reque stDispatcherImpl.java:111) [undertow-servlet-2.0.9.Final. jar:2.0.9.Final] at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilt er(VersionFilter.java:180) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilt er(VersionFilter.java:98) [restapi-jaxrs.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte r.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.doFilt er(CurrentFilter.java:117) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.invocation.CurrentFilter.doFilt er(CurrentFilter.java:72) [restapi-jaxrs.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte r.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(RestApiSessionMgmtFilt er.java:78) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte r.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(ManagedFilte r.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(SsoRestApiNegotiati onFilter.java:84) [aaa.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte r.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(ManagedFilte r.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.fet chData(LinkFollower.java:185) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.fol lowLink(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.fol lowLinks(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(DisksReso urce.java:222) [restapi-definition.jar:] at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source) [:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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(MethodInje ctorImpl.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(ResourceMethodInvo ker.java:401) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeO nTarget$0(ResourceMethodInvoke r.java:365) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.interception.PreMatchContainerReques tContext.filter(PreMatchContai nerRequestContext.java:361) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget (ResourceMethodInvoker.java:36 7) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(Resourc eMethodInvoker.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(Resour ceLocatorInvoker.java:100) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro nousDispatcher.java:441) [resteasy-jaxrs-20-3.5.1.Final .jar:3.5.1.Final] ... 96 moreCaused by: java.lang.IllegalStateException: Problem fetching 'statistics' from Disk at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.fet chData(LinkFollower.java:219) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.fet chData(LinkFollower.java:182) [restapi-jaxrs.jar:] ... 114 moreCaused by: java.lang.NullPointerExceptionAny 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/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/messag e/C7IH6KXS5XAE2UTM4DLRVYSJPNZV OVIT/
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.