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

2013-07-02 Thread Michael Pasternak
ailed maintenance '%s' Object." >>> % vmObject.name) >>> return True >>> > > Thanks for this piece of code. Shall give it a try. > >>> >>> >>> >>> - Original Message - >>>> From: "Deept

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

2013-07-01 Thread Deepthi Dharwar
ce of code. Shall give it a try. >> >> >> >> - Original Message - >>> From: "Deepthi Dharwar" >>> To: users@ovirt.org, "Michael Pasternak" >>> Sent: Monday, July 1, 2013 2:13:09 PM >>> Subject: [Users]

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

2013-07-01 Thread Michael Pasternak
; else: > LOGGER.warning(TimestampScale() + "Failed maintenance '%s' Object." % > vmObject.name) > return True > > > > > > - Original Message ----- >> From: "Deepthi Dharwar" >> To: users@ovirt.org, "Michael Pa

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

2013-07-01 Thread Vladimir Vyazmin
rn True - Original Message - > From: "Deepthi Dharwar" > To: users@ovirt.org, "Michael Pasternak" > Sent: Monday, July 1, 2013 2:13:09 PM > Subject: [Users] Putting the host in maintenance mode via python SDK > > Hi, > > I am trying to switch

[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, Deepthi