Commit Graph

8 Commits

Author SHA1 Message Date
pran1990 29cf50152b Store one engine cfg in git
Just easier to work on multiple machines this way.

Change-Id: I3546a0535615d53f3a1566145aff9ded07caf056
2014-05-30 20:08:57 +00:00
pran1990 e4fd9aa1f2 Make entropy suitable for pypi distribution, part 0
We need to separate out engine code and audit and repair scripts if
pypi distribution is reqd. This is handled in this commit.

Further commits will remove the two variables hardcoded currently,
and expose __main__ as a cmdline script on installation.

Use imp for module finding and loading, use full path to script in
audit and repair cfg files.

Move audit and repair scripts to examples. Make some changes to hardcoded
stuff to account for this

Update gitignore
Change-Id: I50831003c6f7272967dbeb5c558b76b0183c91be
2014-04-10 13:08:51 -07:00
pran1990 4b40b92a93 Modify gitignore
Ignore react and audit json files. vm_count.json will continue
to stays as an example but new files will be hidden

Change-Id: Ibdb700f1dbac44b96bf8f738400deae446c2cf21
2014-03-17 11:51:44 -07:00
pran1990 616e6c69d0 Move code into a scheduler class, part III
Remove usage of globals.py

Rewrite register-audit and register-repair to avoid using globals.
Get cfg file from engine name and script type instead.

Remove cfg files from git

Change-Id: I8ee119b4ebf55fa18ff4f6a83c0859ddc6699c5f
2014-03-16 23:09:24 -07:00
pran1990 bfd98c51a8 Modify gitignore, ignore cfg files
Don't want to include cfg files anymore. Want to store complete
paths to files, will print out username, etc. Will add a sample
cfg file in a future commit to make things clearer

Change-Id: I90ee3b6950475cafc4f031ff37c9e1d599c9a80c
2014-03-16 16:44:57 -07:00
pran1990 bffddde2f9 Add an example audit/repair script
vm_count.py gets number of vms running in a cluster,
react will throw an error if it's above a limit.

Not adding vm_count.json to git, similar to audit.json,
contains api and compute hostnames in addition.

Don't use extrapolation for every log message
Add audit conf files to gitignore

Remove stevedore stuff, not using now, can add back later if needed

Use libvirt bindings to talk to hypervisor. Only one hypervisor
for now, changes soon for multiple hypervisors.

Change-Id: I843e3600a62cb6698526b3498358e4b90121ba1a
2014-02-10 18:08:26 -08:00
pran1990 48b83513fb Introduce logging and streamline croniter calls
Introduce logging to replace print functions

Sleep time in start_audit() changed from fixed value to
time left for next call.

Change-Id: I8e60a0c689cd1efa80541466531072c5eca1ae06
2013-12-13 18:18:54 -08:00
pran1990 d3ae477176 Add code to stackforge/entropy
Because upstream wasn't mentioned when project was created, merge
existing upstream code manually. Current upstream is
https://github.com/pran1990/entropy

Add first draft of script in entropy/entropy.py. Utils used by the package are in entropy/utils.py

Added licenses to py scripts and LICENCE file

Added tox.ini, requirements.txt, and test-requirements.txt to setup
environments for gerrit's jenkins tests

Added sphinx docs in docs/. Instructions to build docs are in docs/README.rst

Change-Id: Ifff7cff38989e8c5509d3ecf4b34485893bfcfdb
2013-12-13 11:51:43 -08:00