createhdds: add a disk image for use by a 'support server'
ClosedPublic

Authored by adamwill on Jun 8 2016, 7:06 AM.

Details

Summary

this will be used for tests like iSCSI and NFS which need a
server end, but where (unlike e.g. FreeIPA) we don't want set
up of the server end to be considered a test and run on the
compose being tested, but instead we just consider the server
end a 'test asset' and expect it to be as reliable as possible.

For now we just set it up to provide an iSCSI target, as that's
what I want to write a test for first.

Note: I was initially writing the actual iSCSI target config
file as part of image creation, but that turns out to be a bit
tricky because we can't safely write a relative or absolute path
for the source file into the commands file. We'd have to instead
allow specifying file injections in the JSON, similar to how we
do for guestfs images, then construct an absolute path in the
Python code using SCRIPTDIR, but it was easier to just write the
file in the openQA test instead, so I did that.

Test Plan

check that creating the support image works (and if
you're being really thorough, boot it and check the package is
there).

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 createhdds: add a disk image for use by a 'support server'.Jun 8 2016, 7:06 AM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: garretraziel, jskladan.
garretraziel accepted this revision.Jun 8 2016, 12:01 PM

Sure, looks OK.

This revision is now accepted and ready to land.Jun 8 2016, 12:01 PM
This revision was automatically updated to reflect the committed changes.