<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Oh, I forgot my manners.<br>
<br>
Thanks for the speedy turn around, it's appreciated!<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/18/2013 03:50 PM, David Leach
wrote:<br>
</div>
<blockquote cite="mid:51479A21.9000609@image-engine.com" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Didn't restart cobblerd..<br>
<br>
Things look good now.<br>
<div class="moz-cite-prefix">On 03/18/2013 03:43 PM, David Leach
wrote:<br>
</div>
<blockquote cite="mid:5147989E.1060403@image-engine.com"
type="cite"> 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? <br>
<br>
Mon Mar 18 15:39:19 2013 - INFO | cobbler power configuration
is:<br>
Mon Mar 18 15:39:19 2013 - INFO | type : ipmilan<br>
Mon Mar 18 15:39:19 2013 - INFO | address: 11.11.11.11<br>
Mon Mar 18 15:39:19 2013 - INFO | user : admin<br>
Mon Mar 18 15:39:19 2013 - INFO | id : <br>
Mon Mar 18 15:39:19 2013 - INFO | running:
/usr/sbin/fence_ipmilan<br>
Mon Mar 18 15:39:38 2013 - INFO | received on stdout: Powering
off machine @ IPMI:11.11.11.11...Failed<br>
<br>
Mon Mar 18 15:39:38 2013 - DEBUG | received on stderr: <br>
Mon Mar 18 15:39:40 2013 - INFO | running:
/usr/sbin/fence_ipmilan<br>
Mon Mar 18 15:39:59 2013 - INFO | received on stdout: Powering
off machine @ IPMI:11.11.11.11...Failed<br>
<br>
Mon Mar 18 15:39:59 2013 - DEBUG | received on stderr: <br>
Mon Mar 18 15:40:01 2013 - INFO | running:
/usr/sbin/fence_ipmilan<br>
Mon Mar 18 15:40:20 2013 - INFO | received on stdout: Powering
off machine @ IPMI:11.11.11.11...Failed<br>
<br>
Mon Mar 18 15:40:20 2013 - DEBUG | received on stderr: <br>
Mon Mar 18 15:40:22 2013 - INFO | running:
/usr/sbin/fence_ipmilan<br>
Mon Mar 18 15:40:41 2013 - INFO | received on stdout: Powering
off machine @ IPMI:11.11.11.11...Failed<br>
<br>
Mon Mar 18 15:40:41 2013 - DEBUG | received on stderr: <br>
Mon Mar 18 15:40:43 2013 - INFO | running:
/usr/sbin/fence_ipmilan<br>
Mon Mar 18 15:41:02 2013 - INFO | received on stdout: Powering
off machine @ IPMI:11.11.11.11...Failed<br>
<br>
Mon Mar 18 15:41:02 2013 - DEBUG | received on stderr: <br>
Mon Mar 18 15:41:04 2013 - INFO | Exception occured: <class
'cobbler.cexceptions.CX'><br>
Mon Mar 18 15:41:04 2013 - INFO | Exception value: 'command
failed (rc=1), please validate the physical setup and cobbler
config'<br>
Mon Mar 18 15:41:04 2013 - INFO | Exception Info:<br>
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line
126, in die<br>
raise CX(msg)<br>
<br>
Mon Mar 18 15:41:04 2013 - INFO | Exception occured: <class
'cobbler.cexceptions.CX'><br>
Mon Mar 18 15:41:04 2013 - INFO | Exception value: 'command
failed (rc=1), please validate the physical setup and cobbler
config'<br>
Mon Mar 18 15:41:04 2013 - INFO | Exception Info:<br>
File "/usr/lib/python2.6/site-packages/cobbler/remote.py",
line 89, in run<br>
rc = self._run(self)<br>
File "/usr/lib/python2.6/site-packages/cobbler/remote.py",
line 259, in runner<br>
object_id = self.remote.get_system_handle(x,token)<br>
File "/usr/lib/python2.6/site-packages/cobbler/remote.py",
line 1921, in power_system<br>
elif power=="status":<br>
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line
1031, in reboot<br>
self.power_off(system, user, password, logger=logger)<br>
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line
1025, in power_off<br>
return
action_power.PowerTool(self._config,system,self,user,password,logger=logger).power("off")<br>
File
"/usr/lib/python2.6/site-packages/cobbler/action_power.py", line
123, in power<br>
utils.die(self.logger,"command failed (rc=%s), please
validate the physical setup and cobbler config" % rc)<br>
File "/usr/lib/python2.6/site-packages/cobbler/utils.py",
line 134, in die<br>
raise CX(msg)<br>
<br>
Mon Mar 18 15:41:04 2013 - ERROR | ### TASK FAILED ###<br>
<div class="moz-cite-prefix">On 03/18/2013 10:44 AM, David Leach
wrote:<br>
</div>
<blockquote cite="mid:51475294.6070009@image-engine.com"
type="cite"> Will try this patch shortly.<br>
<div class="moz-cite-prefix">On 03/18/2013 10:17 AM, James
Cammarata wrote:<br>
</div>
<blockquote
cite="mid:CAFgbs7fH7pJkvCyu4zQ0sqZwosv4CyR9heLmPqD0mt+h+EYQ+A@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Mon, Mar 18, 2013 at 11:58 AM,
David Leach <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:davidl@image-engine.com" target="_blank">davidl@image-engine.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> 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.<br>
<br>
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.<br>
<br>
EG. When this happens on a list of multiple hosts it
stops at that point instead of continuing with the
next host.<br>
</div>
</blockquote>
<div><br>
</div>
Give this patch a try:
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://gist.github.com/jimi1283/5188949">https://gist.github.com/jimi1283/5188949</a></div>
<div><br>
</div>
<div>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.</div>
<div> </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cobbler mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/cobbler">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cobbler mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/cobbler">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cobbler mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/cobbler">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cobbler mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a>
<a class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/cobbler">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a>
</pre>
</blockquote>
<br>
</body>
</html>