move docker systemd stuff into docker/systemd
ClosedPublic

Authored by adamwill on Sep 6 2015, 3:33 PM.

Details

Summary

In testing the scheduler systemd stuff, I realized there's a
conflict problem. When you install fedora-openqa-schedule on a
non-Docker openQA setup (i.e. directly onto an openSUSE system
running openQA), it replaces openQA's own openqa-webui.service
and openqa-worker@.service. Obviously we want to be able to
deploy the scheduler without doing that, so this moves all the
systemd services that are useful only on the host of a Docker
deployment into docker/. It also moves the instructions for
enabling them into the docker/README.md, which is clearly where
they belong anyway: this is part of deploying the Docker
openQA, not part of installing the scheduler at all.

This also removes the scheduler services' requirement for
openqa-webui.service, which I've always thought is bogus.
Nothing about the scheduler requires it to run on the same
system where openQA is running. At the moment it does need to
run on a box that shares /var/lib/openqa/factory/iso with the
one where openQA is running, but that's not quite the same
thing, and I'm trying to get rid of that requirement anyhow.

Test Plan

Make sure python setup.py install no longer stomps
on openQA's services, check the README changes for accuracy.

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to move docker systemd stuff into docker/systemd.Sep 6 2015, 3:33 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
garretraziel accepted this revision.Sep 7 2015, 7:09 AM

Yeah, it makes more sense now.

This revision is now accepted and ready to land.Sep 7 2015, 7:09 AM

We could probably do a more comprehensive revision of how stuff's laid out, really, but this works for now. When I was first working on the 'schedule' stuff I put it all in a subdirectory, I changed that later, but maybe it needs to go back that way, not sure. It depends if we want to add other modules handled by the same setup.py (e.g. a 'deploy' module or something), I guess.

This revision was automatically updated to reflect the committed changes.