IPMI
Example of writing new IPMI tests via checkbox
This example was created for an Open Compute ipmi test.
- Creating an ipmi test job
- Download checkbox source via lp:opencompute/checkbox
- Create a job file name ipmi.txt.in in the jobs directory.
- Add the following job definition for your IPMI test (script or command line).
plugin: shell name: ipmi/admin/dcmi_info requires: package.name == 'ipmiutil' user: root environ: OC_IPMI_TARGET OC_IPMI_ADMIN OC_IPMI_ADMIN_PASSWORD command: ipmiutil dcmi -N $OC_IPMI_TARGET $OC_IPMI_ADMIN $OC_IPMI_ADMIN_PASSWORD _description: Get DCMI capabilities with Admin User
- Add the ipmi.txt.in job file to local.txt.in.
- Make a copy of the default whitelist in data/whitelist and name it opencompute.whitelist.
- Edit the whitelist including the new job and test with the following syntax:
__ipmi__ ipmi/admin/dcmi_info
- Build the package and add it to your ppa
- Install your ppa and install ipmituil, checkbox, and checkbox-cli
sudo add-apt-repository ppa:<your-launchpad-id>/opencompute sudo apt-get update sudo apt-get install checkbox checkbox-cli wget "http://ipmiutil.sourceforge.net/FILES/ipmiutil_2.9.0_ubuntu12_amd64.deb" sudo dpkg -i ipmiutil_2.9.0_ubuntu12_amd64.deb
- Run checkbox in "headless" mode while using the whitelist you created.
checkbox-cli -W /usr/share/checkbox/data/whitelists/opencompute.whitelist
OpenCompute/Testing/IPMI (last edited 2013-05-17 21:09:54 by pool-173-48-120-57)