This blog explains about my patches to the op-test-framework to improve/enable OS deployment on OpenPower boxes.
Introduction:op-test-framework is a python unittest based test suite for validating OpenPower boxes,
which comprises many tests including booting host with multiple configurations etc.
Patches that enabled the support:op-test-framework: *
4edece0 Add support for HostOS Installation
1b581fb Add support for RHEL OS installation
c2a96d4 Add install library and update Ubuntu install test
830a43c Add commandline params needed for OS deploy
403d141 Fallback to alternate method to determine ip for boxes with older nc utility
* Merged in upstream
Steps to deploy OS:Lets see how to deploy Fedora28 on IBM Power Host.
$git clone https://github.com/open-power/op-test-framework
create a machine.conf to match the host that you want to deploy like below
host_mac=98:be:94:06:de:95 -->change as per your host
host_submask=255.255.255.0 -->change as per your host
host_scratch_disk=/dev/disk/by-id/scsi-35000c50098a05d6f -->change as per your host
Running OS deploy test....
$./op-test -c machine.conf --run testcases.InstallRhel.InstallRhel
^[[32m[ 39.218896] ^[[0m^[[33mtg3 0005:09:00.0 net0^[[0m: EEE is disabled
^[[32m[ 39.218976] ^[[0m^[[33mIPv6^[[0m: ADDRCONF(NETDEV_CHANGE): net0: link becomes ready
Ran 1 test in 939.294s
Generating XML reports...
Output written to: /home/jenkins_data/sath/op-test-framework/test-reports/*20180517110439*
Now you have IBM Power system with Fedora28 installed!!
P:S:- osimages/rhel/rhel.ks has the template for kickstart file, you can tune based on the packages that you want to install, for installing fedora make sure java is removed as it does not available in fedora repository.
Hope this helps you in someways!!!!
Thanks for taking time in reading this blog......