plague on fc7 with sqlite, xmlrpc problems
Ken MacLeod
ken at bitsko.slc.ut.us
Sun Feb 25 20:26:16 UTC 2007
I'm trying to get plague set up and I'm running into compatibility
problems that lead me to think I'm starting in the wrong place.
I picked FC7 and sqlite to start with for plague's home OS and a
non-DB-server DB option. The production system will be RHEL4/5 once
I'm comfortable I know how to get things running smoothly. I tried
briefly with RHEL4 a few months back and didn't get this far.
I started with a fresh install of FC7 (incl. python-2.5,
python-sqlite2) and plague 0.4.4.1-4.fc7 RPMs. After running into
some of the first issues I switched to CVS MAIN with similar results.
Here's what I've done so far:
* server/DBManager.py
- import sqlite3 as sqlite
- remove encoding="utf-8" from sqlite.connect
* server/main.py
* server/BuildMaster.py
- sqlite hack: move dbm connection into BuildMaster so
it can create one for each thread.
* common/XMLRPCServerProxy.py
- set self._use_datetime = 0
* common/AuthedXMLRPCServer.py
- pass allow_none=False and encoding=None to
SimpleXMLRPCServer.SimpleXMLRPCDispatcher's
* builder/Config.py
server/Config.py
- change BaseConfig.BaseConfig.ConfigError to
BaseConfig.ConfigError
I have the builder and server on the same host, w/o SSL yet. With the
0.4.4.1 RPMs and some of the changes above the server was able to talk
to the builder but I ran into the sqlite problem and switched to CVS
at that point.
CVS has the new Active/Passive builders but the default port configs
don't appear to be correct for having the builder and server on the
same machine, but I can't match up the config sections and field names
in the server and builder configs to point them at each other
correctly. At this point, the server's not seeing any builders. I
tried running 'plague-client list' anyway and get an exception "local
variable 'curs' referenced before assignment" which I'm pretty sure is
caused by my sqlite thread hack.
What OS+versions should I use to get plague up and running most
quickly?
Once I'm up and running in a known-working environment I'd have a
better idea of what changes are right for FC7 or RHEL4/5.
Thanks,
-- Ken
More information about the Fedora-buildsys-list
mailing list