[Users] help with ovirtsdk api

Thakker, Dhawal dhawal.thakker at uk.pgds.com
Fri May 17 08:49:47 EDT 2013


Hi René,

My query is answered by one of the Redhat consultant , but thanks for coming back. I am using python api ovirtsdk.api. 

Earlier, I was looking for host stats grouped by cluster. In regards to storage, I just wanted stats no grouping needed at this stage. 

Regards,
Dhawal.  

 
-----Original Message-----
From: René Koch (ovido) [mailto:r.koch at ovido.at] 
Sent: 17 May 2013 13:19
To: Thakker, Dhawal
Cc: users at ovirt.org
Subject: Re: [Users] help with ovirtsdk api

Hi,


On Thu, 2013-05-16 at 19:47 +0300, Itamar Heim wrote:
> On 05/14/2013 05:47 PM, Thakker, Dhawal wrote:
> > Hi ALL,
> >
> > We have multiple version of RHEV  within our infrastructure. I have 
> > written a script (using example available on internet) which could 
> > search a VM in multiple RHEV instance, display stats of vms and of 
> > hypervisors.
> >
> > However, I am unable to find any documentation or examples which 
> > could help me to group hypervisors based on cluster name and show 
> > the storage stats for each storage domain.
> >
> > Any help would be appreciated.
> 
> bcc'd infra and cc'd users at ovirt.org which is more correct for this 
> question[1]
> 
> per your question - can you please give an example of what you are 
> trying to accomplish?


If you can specify in more detail what you want to do I can maybe help you getting the right API calls/queries.

To my understanding you want to list all hypervisors (and stats, too?) grouped by cluster name, right?
cluster01:
- host01
- host02
cluster02:
- host03
- host04

And you also want to display storage stats for each storage domain.
Should they also be grouped in any way or is it just displaying stats?

Btw, do you use one of the SDKs (Python/Java), ovirt-shell or are you connecting to REST-API directly (using curl, perl LWP::UserAgent,...)?


Regards,
René



> 
> Thanks,
>     Itamar
> 
> [1] well, since its rhev and not ovirt, red hat support is also a 
> viable option.
> 
> >
> > Thanks,
> >
> > Dhawal.
> >
> > This email is confidential and should not be used by anyone who is 
> > not the original intended recipient. PGDS cannot accept liability 
> > for statements made which are clearly the sender's own and not made 
> > on behalf of the company. In addition no statement should be 
> > construed as giving investment advice within or outside the United 
> > Kingdom.<P><P>
> >
> > PGDS (UK ONE) LIMITED, Laurence Pountney Hill, London, EC4R 0HH.<P> 
> > Incorporated and registered in England and Wales. Registered Office 
> > as above. Registered number 1967719.<P><P>
> >
> > "PGDS" is the trading name of certain subsidiaries of Prudential plc 
> > (registered in England, number 1397169), whose registered office is 
> > at Laurence Pountney Hill London EC4R OHH, some of whose 
> > subsidiaries are regulated by the Financial Services Authority. 
> > Prudential plc is not affiliated in any manner with Prudential 
> > Financial, Inc, a company whose principal place of business is in 
> > the United States of America.<P><P>
> >
> > A list of other Prudential companies together with their registered 
> > statutory details can be found in 'About Prudential' on 
> > http://www.prudential.co.uk<P><P>
> >
> > An e-mail reply to this address may be subject to interception or 
> > monitoring for operational reasons or for lawful business 
> > practices.<P><P>
> >
> >
> >
> > _______________________________________________
> > Infra mailing list
> > Infra at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/infra
> >
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

This email is confidential and should not be used by anyone who is not the original intended recipient. PGDS cannot accept liability for statements made which are clearly the sender's own and not made on behalf of the company. In addition no statement should be construed as giving investment advice within or outside the United Kingdom.<P><P>

PGDS (UK ONE) LIMITED, Laurence Pountney Hill, London, EC4R 0HH.<P>
Incorporated and registered in England and Wales. Registered Office as
above. Registered number 1967719.<P><P>

"PGDS" is the trading name of certain subsidiaries of Prudential plc (registered in England, number 1397169), whose registered office is at Laurence Pountney Hill London EC4R OHH, some of whose subsidiaries are regulated by the Financial Services Authority. Prudential plc is not affiliated in any manner with Prudential Financial, Inc, a company whose principal place of business is in the United States of America.<P><P>

A list of other Prudential companies together with their registered statutory details can be found in 'About Prudential' on http://www.prudential.co.uk<P><P>

An e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.<P><P>


More information about the Users mailing list