Rubick is a tool to analyze OpenStack installation for possible problems. It consists of two processes:
- Discovery - find all OpenStack components and collect information about them.
- Analyze - perform various checks of discovered data to ensure consistency and conformance to best practices.
- Install vagrant(MacOS, Windows, Ubuntu) - http://downloads.vagrantup.com/tags/v1.3.3 and latest version of Virtualbox
$ vagrant up && vagrant provision
- After that you can access application on http://host_machine_ip:8000/
- For testing purposes of your application you can install latest-devstack installation via vagrant. We strongly recommend you to use this repo: https://github.com/lorin/devstack-vm. There are a lot of choices for devstack installation for Rubick to validate: with or without neutron\swift\security_groups\tempest etc.
- After that you’ll get full worked environment with Rubick and OpenStack.
$ sudo apt-get install build-essential mongodb-server redis-server python-pip
$ sudo pip install -r requirements.txt
$ python webui.py &
$ celery worker --app=rubick.celery:app &
All steps for manual deployment and running the app you can find here: /vagrant/cookbooks/openstack-validator/recipes/default.rb
Open http://host_machine_ip:8000/ with web-browser, host_machine_ip - address your application is installed. Add new cluster by pushing the button “Add cluster” and fill the fields:
- “Cluster name” - with name of your cluster (e.g. local_devstack )
- “Description” - with description (e.g. VBox installation of devstack)
- “Ip Address“ - with username@host:port (e.g. [email protected])
- “SSH key“ - with ssh-key to access the virual machine (e.g. can be find in the directory ~/.vagrant.d/insecure_private_key for Vagrant nodes)
- Press “Create”
After that you can select your cluster to run validations or select the rulest before validation.
$ python rubick/cli.py -h
$ python rubick/cli.py -l -v http://<host>:8000
$ python rubick/cli.py -a -n 'New_cluster_name' -d 'New description' -H '[email protected]:2022' -k ~/.ssh/id_rsa http://<host>:8008
Note: Your public key must be without passphrase.
To check project on compliance to PEP8 run command use: tox -v.