Ok, done.

thanks,

Nitin


On Tue, Feb 25, 2014 at 4:45 PM, Jörgen Maas <[email protected]> wrote:

> Can you please send a pull request on Github ?
>
>
> On Tue, Feb 25, 2014 at 11:58 AM, Nitinz <[email protected]> wrote:
>
>> Hi Jörgen,
>>
>> Could you add following change to remote.py for remotely managing power?
>>
>> --- remote.py.bk        2014-01-23 10:17:41.361033301 +0000
>> +++ remote.py   2014-01-23 10:18:16.167692850 +0000
>> @@ -1982,7 +1982,7 @@
>>              return True
>>
>>
>> -    def power_system(self,object_id,power=None,token=None,logger=None):
>> +    def power_system(self,object_id,power=None,token=None,user=None,
>> password=None, logger=None):
>>          """
>>          Internal implementation used by background_power, do not call
>>          directly if possible.
>> @@ -1990,14 +1990,16 @@
>>          """
>>          obj = self.__get_object(object_id)
>>          self.check_access(token, "power_system", obj)
>> +        user = user
>> +        password = password
>>          if power=="on":
>> -            rc=self.api.power_on(obj, user=None, password=None,
>> logger=logger)
>> +            rc=self.api.power_on(obj, user=user, password=password,
>> logger=logger)
>>          elif power=="off":
>> -            rc=self.api.power_off(obj, user=None, password=None,
>> logger=logger)
>> +            rc=self.api.power_off(obj, user=user, password=password,
>> logger=logger)
>>          elif power=="status":
>> -            rc=self.api.power_status(obj, user=None, password=None,
>> logger=logger)
>> +            rc=self.api.power_status(obj, user=user, password=password,
>> logger=logger)
>>          elif power=="reboot":
>> -            rc=self.api.reboot(obj, user=None, password=None,
>> logger=logger)
>> +            rc=self.api.reboot(obj, user=user, password=password,
>> logger=logger)
>>          else:
>>              utils.die(self.logger, "invalid power mode '%s', 
>> expectedon/off/status/reboot"
>> % power)
>>          return rc
>>
>> Also, for some reason remote power management is failing for me.
>>
>> cobbler-2.5.0-172.1.noarch
>> cobbler-web-2.5.0-172.1.noarch
>>
>>
>> Tue Feb 25 10:36:00 2014 - DEBUG | REMOTE cobbler authorization result:
>> True; user(?)
>> Tue Feb 25 10:36:00 2014 - INFO | cobbler power configuration is:
>> Tue Feb 25 10:36:00 2014 - INFO |       type   : ipmilan
>> Tue Feb 25 10:36:00 2014 - INFO |       address: local-hostname
>> Tue Feb 25 10:36:00 2014 - INFO |       user   :
>> Tue Feb 25 10:36:00 2014 - INFO |       id     :
>> Tue Feb 25 10:36:00 2014 - INFO | running: /usr/sbin/fence_ipmilan
>> Tue Feb 25 10:36:00 2014 - INFO | received on stdout:
>> Tue Feb 25 10:36:00 2014 - DEBUG | received on stderr: failed: no IP
>> address specified
>>
>> Nitin
>>
>>
>> On Sun, Feb 23, 2014 at 9:43 PM, Jörgen Maas <[email protected]>wrote:
>>
>>> Hey all,
>>>
>>> Just finished some work on packaging Cobbler for multiple distro's and
>>> versions.
>>> This work is targeted on 2.5.0 (master) which will be the 2.6.0 release
>>> rather soonish.
>>>
>>> There are currently packages for:
>>> - CenOS 6
>>> - RHEL 6
>>> - Fedora 18, 19, 20
>>> - openSUSE 12.3, 13.1, Factory
>>>
>>> Please checkout out:
>>>
>>> http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler-master/
>>>
>>> I suspect there needs a lot to be done polishing these packages!
>>> Also, this should be a convenient way of testing Cobbler-next.
>>>
>>> Any feedback is very much appreciated!
>>>
>>> Thanks!
>>> --
>>> Jörgen Maas
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> [email protected]
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>
>
> --
> Grtz,
> Jörgen Maas
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to