[cobbler] Cobbler Power commands

David Leach davidl at image-engine.com
Mon Mar 18 22:59:55 UTC 2013


Oh, I forgot my manners.

Thanks for the speedy turn around, it's appreciated!


On 03/18/2013 03:50 PM, David Leach wrote:
> Didn't restart cobblerd..
>
> Things look good now.
> On 03/18/2013 03:43 PM, David Leach wrote:
>> No dice unfortunately. Ran this bogus host in conjunction with a real 
>> one and the process still failed to continue onto the next host. 
>> Unless just patching that file was not all I needed to do?
>>
>> Mon Mar 18 15:39:19 2013 - INFO | cobbler power configuration is:
>> Mon Mar 18 15:39:19 2013 - INFO |       type   : ipmilan
>> Mon Mar 18 15:39:19 2013 - INFO |       address: 11.11.11.11
>> Mon Mar 18 15:39:19 2013 - INFO |       user   : admin
>> Mon Mar 18 15:39:19 2013 - INFO |       id     :
>> Mon Mar 18 15:39:19 2013 - INFO | running: /usr/sbin/fence_ipmilan
>> Mon Mar 18 15:39:38 2013 - INFO | received on stdout: Powering off 
>> machine @ IPMI:11.11.11.11...Failed
>>
>> Mon Mar 18 15:39:38 2013 - DEBUG | received on stderr:
>> Mon Mar 18 15:39:40 2013 - INFO | running: /usr/sbin/fence_ipmilan
>> Mon Mar 18 15:39:59 2013 - INFO | received on stdout: Powering off 
>> machine @ IPMI:11.11.11.11...Failed
>>
>> Mon Mar 18 15:39:59 2013 - DEBUG | received on stderr:
>> Mon Mar 18 15:40:01 2013 - INFO | running: /usr/sbin/fence_ipmilan
>> Mon Mar 18 15:40:20 2013 - INFO | received on stdout: Powering off 
>> machine @ IPMI:11.11.11.11...Failed
>>
>> Mon Mar 18 15:40:20 2013 - DEBUG | received on stderr:
>> Mon Mar 18 15:40:22 2013 - INFO | running: /usr/sbin/fence_ipmilan
>> Mon Mar 18 15:40:41 2013 - INFO | received on stdout: Powering off 
>> machine @ IPMI:11.11.11.11...Failed
>>
>> Mon Mar 18 15:40:41 2013 - DEBUG | received on stderr:
>> Mon Mar 18 15:40:43 2013 - INFO | running: /usr/sbin/fence_ipmilan
>> Mon Mar 18 15:41:02 2013 - INFO | received on stdout: Powering off 
>> machine @ IPMI:11.11.11.11...Failed
>>
>> Mon Mar 18 15:41:02 2013 - DEBUG | received on stderr:
>> Mon Mar 18 15:41:04 2013 - INFO | Exception occured: <class 
>> 'cobbler.cexceptions.CX'>
>> Mon Mar 18 15:41:04 2013 - INFO | Exception value: 'command failed 
>> (rc=1), please validate the physical setup and cobbler config'
>> Mon Mar 18 15:41:04 2013 - INFO | Exception Info:
>>   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, 
>> in die
>>     raise CX(msg)
>>
>> Mon Mar 18 15:41:04 2013 - INFO | Exception occured: <class 
>> 'cobbler.cexceptions.CX'>
>> Mon Mar 18 15:41:04 2013 - INFO | Exception value: 'command failed 
>> (rc=1), please validate the physical setup and cobbler config'
>> Mon Mar 18 15:41:04 2013 - INFO | Exception Info:
>>   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, 
>> in run
>>     rc = self._run(self)
>>    File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 
>> 259, in runner
>>     object_id = self.remote.get_system_handle(x,token)
>>    File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 
>> 1921, in power_system
>>     elif power=="status":
>>    File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 1031, 
>> in reboot
>>     self.power_off(system, user, password, logger=logger)
>>    File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 1025, 
>> in power_off
>>     return 
>> action_power.PowerTool(self._config,system,self,user,password,logger=logger).power("off")
>>    File "/usr/lib/python2.6/site-packages/cobbler/action_power.py", 
>> line 123, in power
>>     utils.die(self.logger,"command failed (rc=%s), please validate 
>> the physical setup and cobbler config" % rc)
>>    File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 
>> 134, in die
>>     raise CX(msg)
>>
>> Mon Mar 18 15:41:04 2013 - ERROR | ### TASK FAILED ###
>> On 03/18/2013 10:44 AM, David Leach wrote:
>>> Will try this patch shortly.
>>> On 03/18/2013 10:17 AM, James Cammarata wrote:
>>>> On Mon, Mar 18, 2013 at 11:58 AM, David Leach 
>>>> <davidl at image-engine.com <mailto:davidl at image-engine.com>> wrote:
>>>>
>>>>     Fencing agents run sweet, tested this on the command line.
>>>>     We're running 2.2.3 Fencing agents are the latest as of about a
>>>>     month ago.
>>>>
>>>>     The problem occurs when a host fails because it's ipmi
>>>>     interface is down, a hardware failure or the management module
>>>>     on the blade server doesn't respond or someone has made a typo
>>>>     with the password or something. Instead of the cobbler wrapper
>>>>     just going OK, bad return code let's try the next host on the
>>>>     list it bails out.
>>>>
>>>>     EG. When this happens on a list of multiple hosts it stops at
>>>>     that point instead of continuing with the next host.
>>>>
>>>>
>>>> Give this patch a try:
>>>>
>>>> https://gist.github.com/jimi1283/5188949
>>>>
>>>> Please note, I have not tested that, so be sure to make a backup of 
>>>> the remote.py file before trying to apply it. This is also based on 
>>>> the master branch, so it may not apply perfectly cleanly via the 
>>>> patch command.
>>>>
>>>>
>>>> _______________________________________________
>>>> cobbler mailing list
>>>> cobbler at lists.fedorahosted.org
>>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler at lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>>
>> _______________________________________________
>> cobbler mailing list
>> cobbler at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>
>
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20130318/646ece46/attachment-0001.html>


More information about the cobbler mailing list