Re: [Users] oVirt-sdk to fetch individual cpu stats

2013-09-10 Thread Deepthi Dharwar
, Deepthi Dharwar wrote: Hi, I was trying to get the cpu statistics of a host using the oVirt python sdk. But beyond a point I am unable to deference to the actual cpu stats field and the data. h_list = api.hosts.list() for h in h_list: y = h.statistics.list() for i in y

[Users] oVirt-sdk to fetch individual cpu stats

2013-09-06 Thread Deepthi Dharwar
Hi, I was trying to get the cpu statistics of a host using the oVirt python sdk. But beyond a point I am unable to deference to the actual cpu stats field and the data. h_list = api.hosts.list() for h in h_list: y = h.statistics.list() for i in y: print

Re: [Users] so, what do you want next in oVirt?

2013-09-02 Thread Deepthi Dharwar
Hi, On 09/02/2013 01:12 PM, Karli Sjöberg wrote: Hi, I would like to see a more advanced type of Power-Saving Cluster policy, where an empty Host gets put into a sleep-mode, so that it draws as little power as possible and can be awoken by engine when VM's starts to use more resources.

Re: [Users] Using python sdk to find the VMs running on a host.

2013-07-01 Thread Deepthi Dharwar
On 06/25/2013 04:04 PM, Michael Pasternak wrote: On 06/25/2013 09:28 AM, Itamar Heim wrote: On 06/25/2013 07:54 AM, Deepthi Dharwar wrote: Hi, I am using the ovirt-python-sdk to figure out if the host is idle or not. The way to determine if the host is idle at a given instant is finding out

[Users] Putting the host in maintenance mode via python SDK

2013-07-01 Thread Deepthi Dharwar
Hi, I am trying to switch off Hosts in DC which are idle. I wanted to know as to why start/stop of hosts options are enabled in Power Mgmt tab only when the host is in Maintenance mode and not otherwise. Also, is there any way via pythonSDK to put the host in maintenance mode ? Regards,

Re: [Users] Putting the host in maintenance mode via python SDK

2013-07-01 Thread Deepthi Dharwar
. % vmObject.name) return True Thanks for this piece of code. Shall give it a try. - Original Message - From: Deepthi Dharwar deep...@linux.vnet.ibm.com To: users@ovirt.org, Michael Pasternak mpast...@redhat.com Sent: Monday, July 1, 2013 2:13:09 PM Subject: [Users] Putting the host

Re: [Users] Using python sdk to find the VMs running on a host.

2013-06-25 Thread Deepthi Dharwar
On 06/25/2013 11:58 AM, Itamar Heim wrote: On 06/25/2013 07:54 AM, Deepthi Dharwar wrote: Hi, I am using the ovirt-python-sdk to figure out if the host is idle or not. The way to determine if the host is idle at a given instant is finding out the number of VMs running on it. If the number

[Users] Using python sdk to find the VMs running on a host.

2013-06-24 Thread Deepthi Dharwar
Hi, I am using the ovirt-python-sdk to figure out if the host is idle or not. The way to determine if the host is idle at a given instant is finding out the number of VMs running on it. If the number of VMs = 0 implies host is idle. I was exploring the python sdk to figure out Host-VMs mapping

[Users] Query on Load balancing policies.

2013-05-21 Thread Deepthi Dharwar
Hi, I have been trying out various cluster policies on latest ovirt. On enabling Load Balancing policy: power saving, I have observed migration of VMs and consolidating them on fewer hosts resulting in under utilised hosts cleared of VMs. Is the onus on the administrator to switch off all under