On 07/14/2015 01:46 PM, Abhishek Shrivastava wrote:
Instead of it use reusable_node option.

Thanks. Problem resolved. :)

BTW, single_use_node is written in layout.yaml by default.
If it doesn't exist anymore, do we need a patch to fix it ?

For someone who uses CI for the first time, it is really a problem......

And also, if I want to post patch for zuul, where should I post the patch ?

Thanks.


On Tue, Jul 14, 2015 at 9:12 AM, Tang Chen <tangc...@cn.fujitsu.com <mailto:tangc...@cn.fujitsu.com>> wrote:

    Hi Abhishek, All,

    I found the problem.

    My /etc/zuul/layout/layout.yaml has the following config:

    jobs:
      - name: ^dsvm-tempest.*$
        parameter-function: single_use_node

    But in _parseConfig() in zuul/scheduler.py, it failed to find
    single_use_node().

                fname = config_job.get('parameter-function', None)
                if fname:
                    func = config_env.get(fname, None)
                    if not func:
                        raise Exception("Unable to find function %s" %
    fname)

    So projects section was not parsed.

    Does anyone know why ?

    Thanks.




    On 07/14/2015 10:54 AM, Tang Chen wrote:
    Hi Abhishek,

    I printed the self.layout.projects in zuul/scheduler.py, it is empty.
    So the project was not found.

    But I did do the jenkins-jobs --flush-cache update
    /etc/jenkins_jobs/config/
    And I did configure openstack-dev/sandbox in layout.yaml.

    Do you have any idea what's wrong here ?

    Thanks.


    On 07/13/2015 05:58 PM, Tang Chen wrote:

    On 07/13/2015 04:35 PM, Abhishek Shrivastava wrote:
    Updating jobs using "sudo jenkins-jobs --flush-cache update
    /etc/jenkins_jobs/config/". Also update the myvendor in
    examples.yaml


    Sorry, I updated the jobs, restart the whole machine. But it
    still doesn't work.

    By the way, there is no vendor in examples.yaml.

    It is still this error: Project openstack-dev/sandbox not found

    Anything else should I pay attention to?

    Thanks.


    On Mon, Jul 13, 2015 at 1:45 PM, Tang Chen
    <tangc...@cn.fujitsu.com <mailto:tangc...@cn.fujitsu.com>> wrote:


        On 07/13/2015 03:50 PM, Abhishek Shrivastava wrote:
        Use tester or something, also are you updating the jobs or
        not?

        I used tester as my vendor. It doesn't work.

        And what do you mean by updating the jobs ? I built the
        noop-check-cimmunitication
        job once in Jenkins UI. Does it matter ? All the others are
        not touched.

        And referring to the error, "Project openstack-dev/sandbox
        not found", it seems like
        somewhere the project name was wrong.

        right ?


        Thanks.


        On Mon, Jul 13, 2015 at 1:16 PM, Tang Chen
        <tangc...@cn.fujitsu.com <mailto:tangc...@cn.fujitsu.com>>
        wrote:

            Hi Abhishek,

            Thanks for the quick reply.

            On 07/13/2015 03:16 PM, Abhishek Shrivastava wrote:
            Also check that Gearman is connecting or not through
            Jenkins UI.

            On Mon, Jul 13, 2015 at 12:45 PM, Abhishek
            Shrivastava <abhis...@cloudbyte.com
            <mailto:abhis...@cloudbyte.com>> wrote:

                First of all, change the "vendor" to your vendor
                name in /etc/jenkins_jobs/config/projects.yaml
                file. Also, restart the zuul and zuul merger.


            I did the check. Gearman plugin works find. In Jenkins
            UI, I tested the connection, and it succeeded.

            And also, I restarted zuul and zuul merger every time
            I modified the yaml files.

            But it doesn't work.

            And the vendor, does that matter ?  And what vendor
            name should I provide ?
            I cannot find any vendor info in my Gerrit service
            account profile.
            For example, is XXX OK ?

            Thanks.




                On Mon, Jul 13, 2015 at 12:29 PM, Tang Chen
                <tangc...@cn.fujitsu.com
                <mailto:tangc...@cn.fujitsu.com>> wrote:

                    Hi all,

                    I have constructed my CI system.
                    When I tested it with sandbox project, I
                    posted a patch to Gerrit.

                    https://review.openstack.org/201002

                    But I got this error in zuul scheduler:

                    2015-07-14 14:07:24,921 DEBUG zuul.Scheduler:
                    Run handler awake
                    2015-07-14 14:07:24,921 DEBUG zuul.Scheduler:
                    Fetching trigger event
                    2015-07-14 14:07:24,922 DEBUG zuul.Scheduler:
                    Processing trigger event <TriggerEvent
                    comment-added openstack-dev/sandbox master
                    201002,1 Verified:1>
                    2015-07-14 14:07:24,922 DEBUG zuul.Scheduler:
                    Project openstack-dev/sandbox not found
                    2015-07-14 14:07:24,922 DEBUG zuul.Scheduler:
                    Run handler sleeping


                    My /etc/zuul/layout/layout.yaml looks like this:

                    projects:
                      - name: openstack-dev/sandbox
                        check:
                          - noop-check-communication


                    My /etc/jenkins_jobs/config/projects.yaml
                    looks like this:

                    - project:
                        name: sandbox
                    github-org: openstack-dev
                        node: master
                        vendor: myvendor

                        jobs:
                            - noop-check-communication
                            - dsvm-tempest-full:
                    node: 'devstack_slave ||
                    devstack-precise-check || d-p-c'


                    And Jenkins master works fine.


                    Does anyone know what is going on here ?


                    Thanks.





                    
__________________________________________________________________________
                    OpenStack Development Mailing List (not for
                    usage questions)
                    Unsubscribe:
                    
openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
                    
<http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
                    
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- *
                *
                *Thanks & Regards,
                *
                *Abhishek*
                /_Cloudbyte Inc. <http://www.cloudbyte.com>_/




-- *
            *
            *Thanks & Regards,
            *
            *Abhishek*
            /_Cloudbyte Inc. <http://www.cloudbyte.com>_/


            
__________________________________________________________________________
            OpenStack Development Mailing List (not for usage questions)
            Unsubscribe:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe 
 <mailto:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
            http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


            
__________________________________________________________________________
            OpenStack Development Mailing List (not for usage
            questions)
            Unsubscribe:
            openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
            
<http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
            http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- *
        *
        *Thanks & Regards,
        *
        *Abhishek*
        /_Cloudbyte Inc. <http://www.cloudbyte.com>_/


        
__________________________________________________________________________
        OpenStack Development Mailing List (not for usage questions)
        Unsubscribe:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe  
<mailto:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
        http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


        
__________________________________________________________________________
        OpenStack Development Mailing List (not for usage questions)
        Unsubscribe:
        openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
        <http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
        http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- *
    *
    *Thanks & Regards,
    *
    *Abhishek*
    /_Cloudbyte Inc. <http://www.cloudbyte.com>_/


    __________________________________________________________________________
    OpenStack Development Mailing List (not for usage questions)
    Unsubscribe:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe  
<mailto:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



    __________________________________________________________________________
    OpenStack Development Mailing List (not for usage questions)
    Unsubscribe:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe  
<mailto:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



    __________________________________________________________________________
    OpenStack Development Mailing List (not for usage questions)
    Unsubscribe:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe  
<mailto:openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


    __________________________________________________________________________
    OpenStack Development Mailing List (not for usage questions)
    Unsubscribe:
    openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
    <http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




--
*
*
*Thanks & Regards,
*
*Abhishek*
/_Cloudbyte Inc. <http://www.cloudbyte.com>_/


__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to