From 5bd815bf41927793df47b26b997615b48a355f2c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 8 Jun 2016 15:45:54 -0700 Subject: [PATCH] createhdds: add a disk image for use by a 'support server' 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). Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D883 --- hdds.json | 6 ++++++ support.commands | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 support.commands diff --git a/hdds.json b/hdds.json index 6fa7256..af7911c 100644 --- a/hdds.json +++ b/hdds.json @@ -156,6 +156,12 @@ }, "size" : "20G", "imgver": "2" + }, + { + "name" : "support", + "releases" : { + "-1" : ["x86_64"] + } } ], "renames" : [] diff --git a/support.commands b/support.commands new file mode 100644 index 0000000..ec8177a --- /dev/null +++ b/support.commands @@ -0,0 +1,4 @@ +root-password password:weakpassword +update +selinux-relabel +install scsi-target-utils