On Wed, Jul 18, 2018 at 9:57 AM, Martin Perina <mperina@redhat.com> wrote:
Ondro/Ravi/Tal, could you please reply to below questions?


On Tue, Jul 17, 2018 at 3:59 PM, Suchitra Herwadkar <Suchitra.Herwadkar@veritas.com> wrote:

Hello oVirt Development team

 

We had some more questions as we continue working on REST APIs. Kindly help us answer the same.

 

What is the expiry of generated access_token? 

Description: We have observed that the output of “/ovirt-engine/sso/oauth/token” contains a field “exp” which points to the date when the access_token is going to expire. In our case, we have seen this value to be 8 days later. However, the access_token gets expired within an hour. We would like to understand exactly what is the lifetime of this access_token? What we are seeing is something unexpected? Is this value configurable by users?

 


The exp field in the returned json is the expiration date on the ldap server, not the token expiration on the engine side. On the engine side the token will expire after 30 minute of inactivity. Every use of the token to perform any query or action will renew the sso token.
 

How to retrieve the ‘creation_status’ of the snapshot through REST API? 

Description: We see there is a way to get it as part of query snapshot API viz /ovirt-engine/api/vms/<vm_id>/snapshots/<snapshot_id> where the response contains detailed information of snapshot, along with the field "snapshot_status": "ok". Just wanted to check if there is another API explicitly devoted to getting the creation status so that we can poll it periodically to know the status?

At least in CURL, we see there is some URL to fetch the creation status like this /ovirt-engine/api/<vm_id>/snapshots/<snapshot_id> /creation_status/<WHAT_IS_THIS_ID?>"

 

Q. How to call a DELETE snapshot API with ‘async’ operation as ‘false’? 

Description: The documentation for DELETE snapshot API mentions that the DELETE operation can be invoked synchronously or asynchronously based on the value of the parameter ‘async’. I wanted to perform DELETE operation synchronously, so tried providing this parameter in the body as “<async>false<async>”, still it was doing the operation asynchronously. Please advise on the correct usage of it.

 

Thanks

Suchitra 

 

 

From: Ranjit DSouza <Ranjit.DSouza@veritas.com>
Date: Tuesday, July 3, 2018 at 1:43 PM
To: "devel@ovirt.org" <devel@ovirt.org>
Cc: DL-VTAS-ENG-NBU-EverestFalcons <DL-VTAS-ENG-NBU-EverestFalcons@veritas.com>, Sudhakar Paulzagade <Sudhakar.Paulzagade@veritas.com>, Pavan Chavva <pchavva@redhat.com>, Navin Tah <Navin.Tah@veritas.com>
Subject: Image Transfer mechanism queries/API support

 

Hello oVirt Development team

 

We had a conversation with Pavan Chavva for supporting RHV. He had suggested to contact you with queries related to oVirt APIs we plan to use.

We have following queries:

 

1.       While downloading a snapshot disk, can we identify allocated extents and download only those using oVirt API? We are able to download the disk using the Image Transfer API mechanism.

However, this method downloads the entire disk including the non-allocated extents, which is a performance overhead. If this functionality does not exist at this point will it be available in near future?

 

2.       Is there an alternate method to transfer a snapshot to and from RHV storage? Are there other methods such as NFS share where we can download snapshot image to and from RHV storage?

 

Thanks

Ranjit

Team EverestFalcons


_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-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/devel@ovirt.org/message/QJUITZUJKWVG2Y2Y3GMBLXMTRVHT33ZK/




--
Martin Perina
Associate Manager, Software Engineering
Red Hat Czech s.r.o.