bootstrap.sh script fails on yum install of graphite-web
Due to an RPM dependency change, graphite-web fails to install because the Django dependency can't be installed:
==> default: Error: Package: graphite-web-0.9.12-5.el6.noarch (epel)
==> default: Requires: Django >= 1.3
==> default: Error: Package: python-django-tagging-0.3.1-7.el6.noarch (epel)
==> default: Requires: Django
Looking at VM snapshots that were installed with this bootstrap script, the Django package installed was Django14, which no longer exists.
Without graphite-web installed, other errors occur:
==> default: sudo
==> default: :
==> default: /usr/lib/python2.6/site-packages/graphite/manage.py: command not found
==> default: sudo
==> default: :
==> default: /usr/lib/python2.6/site-packages/graphite/manage.py: command not found
==> default: carbon-cache: unrecognized service
==> default: error reading information on service carbon-cache: No such file or directory
==> default: sudo
==> default: :
==> default: pip: command not found
...
==> default: Traceback (most recent call last):
==> default: File "/usr/share/jmxtrans/tools/yaml2jmxtrans.py", line 20, in <module>
==> default: import yaml
==> default: ImportError: No module named yaml
==> default: cp:
==> default: cannot stat `kafka_prod.json'
==> default: : No such file or directory
I poked around for several hours trying to install different versions in different ways (eg, pip instead of yum), but didn't get anywhere. To make matters worse, newer versions of Django and graphite-web require Python 2.7, which is cumbersome to install in CentOS because yum's shebang is hardcoded to /usr/bin/python and yum requires Python 2.6. As such, the right approach to fixing this may be to start fresh with a new way to install graphite, or consider using grafana instead.
These are the versions that were installed in the older VM snapshot:
Django14
graphite-web 0.9.12
python-pip 7.1.0
python-carbon 0.9.12