<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body 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>
    <br>
    Sat Mar 16 11:09:30 2013 - INFO | cobbler power configuration is:<br>
    Sat Mar 16 11:09:30 2013 - INFO |       type   : ipmilan<br>
    Sat Mar 16 11:09:30 2013 - INFO |       address: 11.11.11.11<br>
    Sat Mar 16 11:09:30 2013 - INFO |       user   : admin<br>
    Sat Mar 16 11:09:30 2013 - INFO |       id     : <br>
    Sat Mar 16 11:09:30 2013 - INFO | running: /usr/sbin/fence_ipmilan<br>
    Sat Mar 16 11:09:49 2013 - INFO | received on stdout: Powering on
    machine @ IPMI:11.11.11.11...Failed<br>
    <br>
    Sat Mar 16 11:09:49 2013 - DEBUG | received on stderr: <br>
    Sat Mar 16 11:09:51 2013 - INFO | running: /usr/sbin/fence_ipmilan<br>
    Sat Mar 16 11:10:11 2013 - INFO | received on stdout: Powering on
    machine @ IPMI:11.11.11.11...Failed<br>
    <br>
    Sat Mar 16 11:10:11 2013 - DEBUG | received on stderr: <br>
    Sat Mar 16 11:10:13 2013 - INFO | running: /usr/sbin/fence_ipmilan<br>
    Sat Mar 16 11:10:32 2013 - INFO | received on stdout: Powering on
    machine @ IPMI:11.11.11.11...Failed<br>
    <br>
    Sat Mar 16 11:10:32 2013 - DEBUG | received on stderr: <br>
    Sat Mar 16 11:10:34 2013 - INFO | running: /usr/sbin/fence_ipmilan<br>
    Sat Mar 16 11:10:53 2013 - INFO | received on stdout: Powering on
    machine @ IPMI:11.11.11.11...Failed<br>
    <br>
    Sat Mar 16 11:10:53 2013 - DEBUG | received on stderr: <br>
    Sat Mar 16 11:10:55 2013 - INFO | running: /usr/sbin/fence_ipmilan<br>
    Sat Mar 16 11:11:14 2013 - INFO | received on stdout: Powering on
    machine @ IPMI:11.11.11.11...Failed<br>
    <br>
    Sat Mar 16 11:11:14 2013 - DEBUG | received on stderr: <br>
    Sat Mar 16 11:11:16 2013 - INFO | Exception occured: &lt;class
    'cobbler.cexceptions.CX'&gt;<br>
    Sat Mar 16 11:11:16 2013 - INFO | Exception value: 'command failed
    (rc=1), please validate the physical setup and cobbler config'<br>
    Sat Mar 16 11:11:16 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>
    Sat Mar 16 11:11:16 2013 - INFO | Exception occured: &lt;class
    'cobbler.cexceptions.CX'&gt;<br>
    Sat Mar 16 11:11:16 2013 - INFO | Exception value: 'command failed
    (rc=1), please validate the physical setup and cobbler config'<br>
    Sat Mar 16 11:11:16 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>
       
self.remote.power_system(object_id,self.options.get("power",""),token,logger=self.logger)<br>
       File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
    1915, in power_system<br>
        rc=self.api.power_on(obj, user=None, password=None,
    logger=logger)<br>
       File "/usr/lib/python2.6/site-packages/cobbler/api.py", line
    1019, in power_on<br>
        return
action_power.PowerTool(self._config,system,self,user,password,logger=logger).power("on")<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>
    Sat Mar 16 11:11:16 2013 - ERROR | ### TASK FAILED ###<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03/18/2013 09:47 AM, James Clendenan
      wrote:<br>
    </div>
    <blockquote
      cite="mid:FFED70E9-4FA8-4E6F-A3E3-0A2E1B3925FB@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div>Hi David </div>
      <div><br>
      </div>
      <div>Which power plugins are you using as fence scripts?  I know a
        few of them can occasionally cause problems as well. Also which
        version are you running at the moment for cobbler?</div>
      <div><br>
      </div>
      <div>Do you have any logs you can share? </div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div><br>
        James
        <div><br>
        </div>
        <div>--</div>
        <div>Sent from my phone. </div>
      </div>
      <div><br>
        On 2013-03-18, at 9:11 AM, David Leach &lt;<a
          moz-do-not-send="true" href="mailto:davidl@image-engine.com">davidl@image-engine.com</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div> Yeah, I was thinking in my head, wouldn't a simple bash
          loop not have this problem?<br>
          <br>
          It was me putting in the update ;) I would really appreciate
          it being worked on as it's not always tech savvy people using
          this (excellent) feature.<br>
          <br>
          Cheers<br>
          <div class="moz-cite-prefix">On 03/18/2013 09:06 AM, James
            Cammarata wrote:<br>
          </div>
          <blockquote
cite="mid:CAFgbs7cdD-gHqbKpPOuLCoc7aXVty25o=qxhcrNyS+ZmnDwEYQ@mail.gmail.com"
            type="cite"> On Mon, Mar 18, 2013 at 10:59 AM, David Leach <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:davidl@image-engine.com" target="_blank">davidl@image-engine.com</a>&gt;</span>
            wrote:<br>
            <div class="gmail_quote">
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
                <br>
                We're trying to use cobbler as a tool to power down
                hosts and power them up in mass whenever we need to do
                an image update or just for a downtime.<br>
                <br>
                One issue which is a little frustrating is if you run a
                power command on a bunch of hosts and one fails, the
                command fails at that point. I know there was a feature
                request made 6 months ago to fix this, but I was
                wondering if there was a work around for this.<br>
              </blockquote>
              <div><br>
              </div>
              <div>Yes, I saw a recent update on that issue (not sure if
                it was you). I can work on that if it is problematic,
                otherwise one work-around would be to use a shell script
                from the command line in a for loop. That way, and
                individual failure wouldn't stop the others from
                working. </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>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>cobbler mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a></span><br>
          <span><a moz-do-not-send="true"
              href="https://lists.fedorahosted.org/mailman/listinfo/cobbler">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a></span><br>
        </div>
      </blockquote>
      <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>