<commit_before>
====
Igor
====

Igor is a small daemon to continous automated testing of pxe based linux
distributions with cobbler, libvirt and real hardware.
Intended to be combined with jenkins.


Ingredients
===========
- Working cobbler environment
- libvirt
- python
-- python-bottle (bottlepy)
-- libvirt-python


Overview
========
Basically a daemon prepares hosts and tells cobbler what profile to assign to 
them.
Afterwards it is expected that a client script is run by the host to run a 
number of testcases (structured into testsuites, testsets and testcases).


Pitfalls & Requirements
=======================
- It is currently expected that the images are on the host where VMs are 
  spawned.
- A working cobbler environment is expected
- shh-copy-id the keys to the cobbler server when Cobbler.Jenkins_Injection is
  used, as the ISO is scp'ed onto the cobbler server


Getting started
using Fedora 16 and libvirt
===========================
Ensure to install some common components::

    $ sudo yum -y groupinstall virtualization fedora-packager
    $ sudo yum -y install python-bottle libvirt-python python-lxml parted \
                          lvm2 openssh-clients

Now build and install igord::

    $ make install                              # Will build and install igord
    $ cp data/igord.cfg.example /etc/igord.d/igord.cfg
    $ edit /etc/igord.d/igord.cfg
    $ service igord start
    $ service igord status

Firewall and Cobbler API
------------------------
Considder opening the appropriate firewall port, e.g.:
$ sudo iptables -I INPUT -m tcp -p tcp --dport 8080 -j ACCEPT

Also note that Cobbler's API is just allowing local connections, you might
want to tunnel the daemons calls:
$ ssh $COBBLERSERVER -L25151:127.0.0.1:25151

Simple client
-------------
If the daemon is running you can use a small tool which can be found in data/ 
to submit new jobs::
<commit_msg>README: How to run w/o installing<commit_after>
====
Igor
====

Igor is a small daemon to continous automated testing of pxe based linux
distributions with cobbler, libvirt and real hardware.
Intended to be combined with jenkins.


Ingredients
===========
- Working cobbler environment
- libvirt
- python
-- python-bottle (bottlepy)
-- libvirt-python


Overview
========
Basically a daemon prepares hosts and tells cobbler what profile to assign to 
them.
Afterwards it is expected that a client script is run by the host to run a 
number of testcases (structured into testsuites, testsets and testcases).


Pitfalls & Requirements
=======================
- It is currently expected that the images are on the host where VMs are 
  spawned.
- A working cobbler environment is expected
- shh-copy-id the keys to the cobbler server when Cobbler.Jenkins_Injection is
  used, as the ISO is scp'ed onto the cobbler server


Getting started
using Fedora 16 and libvirt
===========================
Ensure to install some common components::

    $ sudo yum -y groupinstall virtualization fedora-packager
    $ sudo yum -y install python-bottle libvirt-python python-lxml parted \
                          lvm2 openssh-clients

Now run it::

    $ cp data/igord.cfg.example ~/igord.cfg
    $ edit ~/igord.cfg
    $ mkdir /srv/igord
    $ PYTHONPATH=. ./bin/igord

Or: Build and install igord::

    $ make install                              # Will build and install igord
    $ cp data/igord.cfg.example /etc/igord.d/igord.cfg
    $ edit /etc/igord.d/igord.cfg
    $ service igord start
    $ service igord status


Firewall and Cobbler API
------------------------
Considder opening the appropriate firewall port, e.g.:
$ sudo iptables -I INPUT -m tcp -p tcp --dport 8080 -j ACCEPT

Also note that Cobbler's API is just allowing local connections, you might
want to tunnel the daemons calls:
$ ssh $COBBLERSERVER -L25151:127.0.0.1:25151


Simple client
-------------
If the daemon is running you can use a small tool which can be found in data/ 
to submit new jobs::

{'fraction_non_alphanumeric': 0.10912298387096774, 'fraction_numerical': 0.011592741935483871, 'mean_word_length': 3.033536585365854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6379329', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1133, 'n_words': 495}