
Change-Id: Ic1d7117144ff12a4a8276a8b3c9ba1a95a56b806
Compass
A Deoployment Automation System. See Wiki page at https://wiki.openstack.org/wiki/Compass.
Porject homepage: http://www.syscompass.org/
How to use in production environments: http://www.syscompass.org/install.html
Try compass out: http://www.syscompass.org/user.html
Quick Guide
How to install Compass?
- Run
git clone -b dev/exeperimental git://git.openstack.org/stackforge/compass-core.git
- Run
cd compass
to the Compass project directory. - Run
./install/install.sh
to setup compass environment. Please note that before you executeinstall.sh
, you may setup your environment variables ininstall/install.conf
, explanations and examples of those variables can be found ininstall.conf
. - Run
./bin/refresh.sh
to initialize database. - Run
service compass-celeryd start
to start compass celery daemon service. - Run
service compass-progress-updated start
to start compass progress update daemon service.
How to play Compass?
- Make sure your host is one of: mac/ubuntu trusty/ubuntu precise.
- Make sure your OS and CPU architecture are both 64-bit.
- Make sure you have virtualbox installed.
- Make sure you have virtualbox extension pack installed to support pxe.
- Run
git clone -b dev/experimental git://git.openstack.org/stackforge/compass-core.git
- Go to directory
compass-core/vagrant
- Run
./launch.sh
Note: all the vboxnet interfaces and compass related vms should be removed prior to another launch.
FAQ
- Why doesn't celery start? What should I do if I get
celery died but pid file exists
message after runningservice compassd status
?
- Simply remove celery pid file (
/var/run/celery.pid
). - Try running
export C_FORCE_ROOT=1
- Restart Compass celery daemon.
- How to check if the compass services run properly?
- Run
service compass-celeryd status
andcompass-progress-updated status
to check compass services status. - Run
service httpd status
to check web service status.
-
How to troubleshoot if
compassd
can not start the services?- Try to remove /var/run/celeryd.pid to release the celeryd lock
- Try to remove /var/run/progress_update.pid to release the progress_update lock.
-
How to use compass to install distributed systems?
Access http://<server_ip>. http://www.syscompass.org/install.html
has some UI instructions.
-
How to run unittest?
. ~/.virtualenvs/compass-core/bin/activate
to activate compass python venv- go to compass-core directory
- make sure you have dependency packages installed, if you used compass install scripts to install compass, they are already installed
- run
tox -epy26
ortox -pey27
depending on your python version.
-
Where to find the log file?
/var/log/compass/compass.log
is the compass web log./var/log/compass/celery.log
is the celery log, celery logs contain most important debugging information.- The redirected celeryd stdout/stderr is at
/tmp/celeryd.log
. - The redirected progress_update.py stdout/stderr is at
/tmp/progress_update.log
- The web server (httpd) log files are under
/var/log/httpd/
.
-
Where to find the compass config file?
- the compass setting file is at /etc/compass/setting.
- the default global config file for installing distributed system is at /etc/compass/setting
- the default celery config file is at /etc/compass/celeryconfig
- adapters, templates and flavor configs are at /etc/compass/ as well.
-
Where are the utility scripts for compass? They are at
/opt/compass/bin/
Description
Languages
Python
84.1%
RAML
7.7%
Shell
5.6%
Jinja
2.3%
JavaScript
0.2%