[Buildbot-devel] Buildbot master configurations don't work

Yasser LEBON yasser.lebon at gmail.com
Wed Jul 3 09:13:54 UTC 2013


Hello,


I try to setup multimaster mode with two buildbot master but I encoutered
an error *'Unknown builder 'sample-builder' in scheduler
'test-scheduler'*when trying to run the master1.cfg.
My configurations:

master1.cfg
=================


# -*- python -*-
# ex: set syntax=python:
c = BuildmasterConfig = {}

# MULTIMASTER
c['multiMaster'] = True

# DATABASE
c['db'] = {
    'db_url' : 'mysql://buildbot:buildbot-password@localhost
:3306/buildbot?max_idle=300',
    'db_poll_interval' : 30,
}

# STATUS
from buildbot.status import html
from buildbot.status.web import authz, auth

authz_cfg=authz.Authz(
    auth=auth.BasicAuth([("login","password")]),
    gracefulShutdown = False,
    forceBuild = 'auth',
)
c['status'] = []
c['status'].append(html.WebStatus(http_port=9090, authz=authz_cfg))

# SCHEDULERS
from buildbot.schedulers.forcesched import ForceScheduler
c['schedulers'] = []
c['schedulers'].append(
   ForceScheduler(
     name="test-scheduler",builderNames=["sample-builder"]
   )
)


master2.cfg
=========

# -*- python -*-
# ex: set syntax=python:

# MASTER
c = BuildmasterConfig = {}

# MULTIMASTER
c['multiMaster'] = True

# SLAVES
from buildbot.buildslave import BuildSlave
c['slavePortnum'] = 9999
c['slaves'] = [BuildSlave("slave-test", "pass")]

# BUILDER
from buildbot.process.factory import BuildFactory
from buildbot.steps.shell import ShellCommand
from buildbot.config import BuilderConfig

sample_build = BuildFactory()
sample_build.addStep(ShellCommand(name="deployment test", workdir="build",
command=["ls"]))
c['builders'] = [
        BuilderConfig(
                name="sample-builder", slavenames=["slave-test"],
factory=sample_build
        ),
]

c['db'] = {
    'db_url' : 'mysql://buildbot:buildbot-password@localhost
:3306/buildbot?max_idle=300',
    'db_poll_interval' : 30,
}

Thanks for your help,
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130703/6daf7b11/attachment.html>


More information about the devel mailing list