Excerpts from Petr Schindler's message of 2016-08-18 15:59 +02:00:
Hi Dan,
I'm working on a task for taskotron which should import new composes to
our Fedora's beaker. But I can't find a xml-rpc call for importing it
here [0]. There was probably function add_distro_tree(distro) which I
found in old code I'm editing. I've seen that you added distro trees to
beaker.qa.fp.org by xmlrpc so I guess there is some way. Could you help
me with that? Thank you.
Currently it's expected that the trees are imported by running
beaker-import command on the lab controller (in the case of Fedora's
Beaker that's the same machine as the Beaker server). You can't invoke
an XMLRPC call directly to import the distro -- not unless you also
parse out all the metadata from .composeinfo and .treeinfo, which
beaker-import has a lot of code to do.
That design (running beaker-import on the LCs) makes sense for how our
internal Beaker deployment works. But I can see it's obviously not ideal
for what you are trying to do, importing new trees triggered by
Taskotron.
In future we are planning to basically eliminate the "importing" step
entirely, in favour of directly looking up trees in PDC.
In the short term could you do something like, make the Taskotron task
ssh to Beaker and invoke beaker-import? Or maybe trigger an Ansible
playbook (through the RBAC stuff) which invokes beaker-import, with the
necessary URLs passed in as an Ansible var through -e?
--
Dan Callaghan <dcallagh(a)redhat.com>
Senior Software Engineer, Products & Technologies Operations
Red Hat