Bug 912205
Summary: | RFE: A way to sync tasks between two Beaker instances | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Amit Saha <asaha> |
Component: | command line | Assignee: | Amit Saha <asaha> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Dan Callaghan <dcallagh> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 0.11 | CC: | asaha, dcallagh, ebaak, llim, qwan, rglasz, rmancy |
Target Milestone: | 0.12 | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | TaskLibrary | ||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-11 04:56:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 915549 | ||
Bug Blocks: |
Description
Amit Saha
2013-02-18 06:11:51 UTC
On Gerrit: http://gerrit.beaker-project.org/#/c/1727/ I added the dependency on https://bugzilla.redhat.com/show_bug.cgi?id=912205 since, the script will break if the that bug is not fixed. This needed two small patches to get it going: http://gerrit.beaker-project.org/1826 http://gerrit.beaker-project.org/1827 but even then, I couldn't get it to successfully sync from production Beaker to beaker-devel. It spends a *really* long time grabbing all the task info from the source, and if something goes wrong like this (I assume a network glitch): Getting the list of tasks from source and destination.. Finding tasks to upload to destination.. XML-RPC connection to beaker.engineering.redhat.com failed: Connection reset by peer, 5 retries left Traceback (most recent call last): File "/usr/bin/beaker-sync-tasks", line 9, in <module> load_entry_point('bkr.server==0.11.3', 'console_scripts', 'beaker-sync-tasks')() File "/usr/lib/python2.6/site-packages/bkr/server/tools/sync_tasks.py", line 303, in main task_urls = task_sync.tasks_diff(new_tasks, old_tasks) File "/usr/lib/python2.6/site-packages/bkr/server/tools/sync_tasks.py", line 152, in tasks_diff task_xml = pool.map(self._get_task_xml, new_tasks) File "/usr/lib64/python2.6/multiprocessing/pool.py", line 148, in map return self.map_async(func, iterable, chunksize).get() File "/usr/lib64/python2.6/multiprocessing/pool.py", line 422, in get raise self._value xmlrpclib.ProtocolError: <ProtocolError for XXX: -1 > then the whole process fails. I think it needs to do each task incrementally instead. Something along these lines: * get list of all tasks in source * for each task in source: * print which task it is doing * get task info from source * get task info from destination * if versions don't match, upload from source to destination On Gerrit: http://gerrit.beaker-project.org/#/c/1828/ Beaker 0.12 has been released. |