[Buildbot-devel] Ec2 slave trouble
Hurricane Christian
hurricanechristian at gmail.com
Tue Jun 16 14:56:33 UTC 2015
Hi,
I've done a bit of digging about on this now and I've found that self.conn
has is a boo.connection object.
This obviously won't work here - is the connection object the wrong type?
For now I've commented out the following
diff --git a/master/buildbot/buildslave/base.py
b/master/buildbot/buildslave/base.py
index 3b5ed46..546db75 100644
--- a/master/buildbot/buildslave/base.py
+++ b/master/buildbot/buildslave/base.py
@@ -320,10 +320,10 @@ class AbstractBuildSlave(service.BuildbotService,
object):
@return: a Deferred that indicates when an attached slave has
accepted the new builders and/or released the old ones."""
- if self.conn:
- return self.sendBuilderList()
- else:
- return defer.succeed(None)
+ #if self.conn :
+ # return self.sendBuilderList()
+ #else:
+ return defer.succeed(None)
def updateSlaveStatus(self, buildStarted=None, buildFinished=None):
# TODO
And now buildbot runs - but I can't get an ec2 node to start or connect.
Will try and check my connections and my IAM profiles again - maybe try and
start an instance outside of boto to see if that works - but think there is
a problem here with buildbot. Is there anything else I can do to help?
Thanks
Christian
On 15 June 2015 at 15:23, Hurricane Christian <hurricanechristian at gmail.com>
wrote:
> Hi,
>
> Im trying to add in an ec2 slave for testing. I have defended my slave as
> follows...
>
> ec2_list += [buildslave.EC2LatentBuildSlave('bot1', 'xxxx', 'c3.large',
> ami='ami-xxxxx',
> identifier=ident,
> secret_identifier=secret
> )]
>
> But when starting buildbot I get...
>
> 2015-06-15 14:21:11+0000 [-] while starting BuildMaster
> Traceback (most recent call last):
> File
> "/home/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 1128, in _inlineCallbacks
> result = g.send(result)
> File "/home/buildbot/buildbot-src/master/buildbot/util/service.py", line
> 282, in startService
> yield self.reconfigServiceWithSibling(self)
> File "/home/buildbot/buildbot-src/master/buildbot/util/service.py", line
> 276, in reconfigServiceWithSibling
> **sibling._config_kwargs)
> File
> "/home/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 1274, in unwindGenerator
> return _inlineCallbacks(None, gen, Deferred())
> --- <exception caught here> ---
> File
> "/home/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 1128, in _inlineCallbacks
> result = g.send(result)
> File "/home/buildbot/buildbot-src/master/buildbot/buildslave/base.py",
> line 268, in reconfigService
> yield self.updateSlave()
> File "/home/buildbot/buildbot-src/master/buildbot/buildslave/base.py",
> line 865, in updateSlave
> return AbstractBuildSlave.updateSlave(self)
> File "/home/buildbot/buildbot-src/master/buildbot/buildslave/base.py",
> line 324, in updateSlave
> return self.sendBuilderList()
> File "/home/buildbot/buildbot-src/master/buildbot/buildslave/base.py",
> line 868, in sendBuilderList
> d = AbstractBuildSlave.sendBuilderList(self)
> File "/home/buildbot/buildbot-src/master/buildbot/buildslave/base.py",
> line 453, in sendBuilderList
> d = self.conn.remoteSetBuilderList(builders=blist)
> exceptions.AttributeError: 'EC2Connection' object has no attribute
> 'remoteSetBuilderList'
>
>
> Can anyone spot what I am doing wrong - or is this a bug? I am using the
> current git head.
>
> Thanks
>
> Christian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150616/b89a691f/attachment.html>
More information about the devel
mailing list