MichaelMayorov/amp-example — pull request #10 by MichaelMayorov (2013-07-01 19:41:49+00:00)
Title: Trying apply simmetric protocol, not working for now.

Log

2013-07-02 01:39:20+0600 [-] Log opened.
2013-07-02 01:39:20+0600 [fake_slave] Factory starting on 1234
2013-07-02 01:39:20+0600 [fake_slave] Starting factory
2013-07-02 01:39:20+0600 [fake_slave] fake_slave can now accept request from fake_master
2013-07-02 01:39:20+0600 [fake_master] fake_master can now accept request from fake_slave
2013-07-02 01:39:20+0600 [fake_master] Starting factory
2013-07-02 01:39:20+0600 [twisted.internet.protocol.Factory] Bot connection established (HOST:IPv4Address(TCP, '127.0.0.1', 1234) PEER:IPv4Address(TCP, '127.0.0.1', 54839))
2013-07-02 01:39:20+0600 [Uninitialized] AMP connection established (HOST:IPv4Address(TCP, '127.0.0.1', 54839) PEER:IPv4Address(TCP, '127.0.0.1', 1234))
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] Setting builders
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] (python2.7, /build/py2.7)
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] (python3, /build/py3)
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] Done with builders
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] Message from master: "Just test message from master"
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] Master asks me to execute a command: "/bin/ls" "-la /
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] For builder: "py2.7" with environ: [{'key': 'foo', 'value': 'bar'}, {'key': 'baz', 'value': 'quux'}]
2013-07-02 01:39:20+0600 [AMP,client] Amp server or network failure unhandled by client application. Dropping connection! To avoid, add errbacks to ALL remote commands!
Traceback (most recent call last):
Failure: twisted.protocols.amp.RemoteAmpError: Code (local): Unhandled Command: 'RemoteAcceptLog'Traceback (failure with no frames): :

2013-07-02 01:39:20+0600 [AMP,client] Slave info: {'basedir': 'BASEDIR',
'commands': [{'name': 'shell', 'version': 1},
{'name': 'uploadFile', 'version': 1},
{'name': 'uploadDirectory', 'version': 1},
{'name': 'downloadFile', 'version': 1},
{'name': 'svn', 'version': 1},
{'name': 'bk', 'version': 1},
{'name': 'cvs', 'version': 1},
{'name': 'darcs', 'version': 1},
{'name': 'git', 'version': 1},
{'name': 'repo', 'version': 1},
{'name': 'bzr', 'version': 1},
{'name': 'hg', 'version': 1},
{'name': 'p4', 'version': 1},
{'name': 'mtn', 'version': 1},
{'name': 'mkdir', 'version': 1},
{'name': 'rmdir', 'version': 1},
{'name': 'cpdir', 'version': 1},
{'name': 'stat', 'version': 1}],
'environ': [{'key': 'foo', 'value': 'bar'}, {'key': 'asd', 'value': 'qwe'}],
'system': 'SYSTEM',
'version': '0.1'}
2013-07-02 01:39:20+0600 [AMP,client] Slave setBuilderList result: {'result': 0}
2013-07-02 01:39:20+0600 [AMP,client] Remote print result: {'result': 0}
2013-07-02 01:39:20+0600 [AMP,client] Remote execution's result: {'builder': 'py2.7', 'result': 0}
2013-07-02 01:39:20+0600 [AMP,client] AMP connection lost (HOST:IPv4Address(TCP, '127.0.0.1', 54839) PEER:IPv4Address(TCP, '127.0.0.1', 1234))
2013-07-02 01:39:20+0600 [AMP,client] Stopping factory
2013-07-02 01:39:20+0600 [Bot,0,127.0.0.1] Bot connection lost (HOST:IPv4Address(TCP, '127.0.0.1', 1234) PEER:IPv4Address(TCP, '127.0.0.1', 54839))
2013-07-02 01:39:20+0600 [twisted.internet.protocol.Factory] (TCP Port 1234 Closed)
2013-07-02 01:39:20+0600 [twisted.internet.protocol.Factory] Stopping factory
2013-07-02 01:39:20+0600 [-] Main loop terminated.