summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjekader <jekader@gmail.com>2014-05-03 17:54:19 +0200
committerjekader <jekader@gmail.com>2014-05-03 17:54:19 +0200
commitcb8fdb988f80139f29ba3fe188a96f0c9657cb72 (patch)
treec46751198ed220e5db2c002afc44bafe187ac66c
parent26393db20b023950e1c97718c562befab346c6e9 (diff)
downloadfake_ilo-cb8fdb988f80139f29ba3fe188a96f0c9657cb72.tar.gz
Update README.md
-rw-r--r--README.md29
1 files changed, 28 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9cb155a..4be172a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,31 @@
fake_ilo
========
-iLO emulator which can power cycle libvirt VMs
+iLO emulator which can power cycle libvirt VMs. It was written by me to perform tests of oVirt/RHEV Power Management features by installing hosts as libvirt VMs and querying/fencing them using this script for demo purposes.
+
+DISCLAIMER:
+-----------
+This script was made for testing purposes only with no security in mind. The quality of code may be dangerous for mental health of the observer. Use at your own risk.
+
+INSTALL:
+--------
+
+1. copy ilo.py to /usr/local/bin/ and make it executable
+2. copy fake_ilo to /etc/init.d/ and make it executable
+3. create configuration directory:
+
+ `# mkdir /etc/fake_ilo/`
+
+4. go into the config directory and generate a self-signed certificate by running this command. Data provided in the requested fields is not important: oVirt does not verify certificates:
+
+ `# cd /etc/fake_ilo/`
+
+ `# openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -nodes -days 9999`
+5. register the init script (Debian):
+
+ `update-rc.d fake_ilo enable`
+
+USAGE:
+------
+
+ The script starts listening on port 1234 and uses the username sent from the oVirt fencing agent as the name of the VM to query/fence. The password is not important. When a username is not equal to any VM name on the machine, "NaN" is returned, which should produce an error on oVirt side.