<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Zaro,<br>
    <br>
    Thanks to reply.<br>
    <br>
    <div class="moz-cite-prefix">On 07/24/2015 03:06 PM, Zaro wrote:<br>
    </div>
    <blockquote
cite="mid:CABf-f+qCwQZN88_XoTF=S-k+ipf4gE9pyLTbggV=-Gc0i9K2sA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">
        <div>That is correctly, the Jenkins UI will not show any info
          about the gearman queue.  If job is pending in Jenkins that
          means it's been added to the gearman queue and has been moved
          to the jenkins build queue.  The jenkins UI will only show the
          job once it's in the jenkins queue.  </div>
        <div><br>
        </div>
        Hmm.  What happens when you manually start a build by click on
        the build icon in the jenkins UI?  I'm wondering if maybe your
        labels are configured correctly for your jobs and slaves.  Are
        there any labels on the job or the nodes (master or slaves)? I
        think the jobs would be in a pending state if there are labels
        on nodes and jobs but they do not match.  I would check to see
        if there are any labels on the jobs and if there are then I
        would remove all of the labels and try again.  There are step by
        step directions on how to setup the gearman-plugin in the
        jenkins wiki[1] which also shows you how to debug by viewing the
        gearman server queue and function registrations.  Try to make
        sure the functions are registered correctly and that the job is
        in the queue after you run the gear-client command.
        <div><br>
        </div>
        <div>A couple of questions:</div>
        <div>What version of Jenkins are you running?  I think openstack
          runs on 1.565.3</div>
        <div>Also I don't think we've ever tested Jenkins and the
          gearman server running on the same machine or VM.  Maybe one
          thing you can try is to run them on separate VMs? <br>
        </div>
      </div>
    </blockquote>
    <br>
    I don't have any label, and only a master, no slave.<br>
    <br>
    My jenkins is 1.609.1.<br>
    <br>
    The whole problem is described here:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://paste.openstack.org/show/405051/">http://paste.openstack.org/show/405051/</a><br>
    <br>
    Please help to check and see.<br>
    <br>
    <br>
    BTW, I post the problem to #openstack-infra IRC channel. You can
    join into that meeting if you'd like to.<br>
    <br>
    <br>
    Thanks.<br>
    <br>
    <blockquote
cite="mid:CABf-f+qCwQZN88_XoTF=S-k+ipf4gE9pyLTbggV=-Gc0i9K2sA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>[1] <a moz-do-not-send="true"
              href="https://wiki.jenkins-ci.org/display/JENKINS/Gearman+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Gearman+Plugin</a><br>
            <div class="gmail_extra"><br>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">On Thu, Jul 23, 2015 at 11:20 PM,
                Tang Chen <span dir="ltr"><<a moz-do-not-send="true"
                    href="mailto:tangchen@cn.fujitsu.com"
                    target="_blank">tangchen@cn.fujitsu.com</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000"><span class="">
                      <br>
                      <div>On 07/24/2015 12:59 PM, Zaro wrote:<br>
                      </div>
                      <blockquote type="cite">
                        <div dir="ltr">
                          <div>Hello Tang,  Openstack slaves only have a
                            single executor so what you are probably
                            seeing is due to using build slaves that
                            have multiple executors.  There were a few
                            bugs[1] that was fixed recently around these
                            types of deadlock issues.   The new
                            gearman-plugin release[2] contains fixes for
                            those issues.  Also if you want to test the
                            gearman-plugin with Jenkins independently of
                            zuul you can use the simple
                            gearman-plugin-client[3] to send jobs your
                            gearman server to see if the jobs get built.</div>
                          <div>
                            <div><br>
                            </div>
                            <div>[1] <a moz-do-not-send="true"
                                href="https://issues.jenkins-ci.org/browse/JENKINS-28891"
                                target="_blank">https://issues.jenkins-ci.org/browse/JENKINS-28891</a>
                              and <a moz-do-not-send="true"
                                href="https://issues.jenkins-ci.org/browse/JENKINS-25867"
                                target="_blank">https://issues.jenkins-ci.org/browse/JENKINS-25867</a></div>
                            <div>[2] <a moz-do-not-send="true"
href="http://repo.jenkins-ci.org/repo/org/jenkins-ci/plugins/gearman-plugin/0.1.2/"
                                target="_blank">http://repo.jenkins-ci.org/repo/org/jenkins-ci/plugins/gearman-plugin/0.1.2/</a></div>
                            <div>[3] <a moz-do-not-send="true"
                                href="https://github.com/zaro0508/gearman-plugin-client"
                                target="_blank">https://github.com/zaro0508/gearman-plugin-client</a><br>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                      <br>
                    </span> Hi Zaro, <br>
                    <br>
                    Thanks for the reply. <br>
                    <br>
                    But I updated the gearman plugin to 0.1.2, and used
                    the gearman-plugin-client to submit jobs.<br>
                    <br>
                    # python gear_client.py -s localhost
                    --function=build:noop-check-communication<br>
                    <br>
                    Sat Jul 25 14:16:57 2015<br>
                    Sending job: build:noop-check-communication to
                    localhost with params={'OFFLINE_NODE_WHEN_COMPLETE':
                    'false', 'uuid': '08ad7a195237493d91eea55789e76128'}<br>
                    <br>
                    Waiting for jobs to
                    finish.................................<br>
                    <br>
                    <br>
                    It doesn't work. The job submitted by the client is
                    also pending.<br>
                    <br>
                    BTW, I cannot see the job submitted by client in my
                    Jenkins GUI. Is that correct ?<br>
                    <br>
                    Thanks.<br>
                    <br>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>