Ask Your Question
1

Graphite issues on the Learning VM need help please

asked 2016-04-05 06:59:09 -0500

walshy690 gravatar image

I have started going through the Learning VM and run into an issue on the "Power of Puppet" module.

I have followed the guide to the letter and increased VM ram to 4GB at the start. I get through the first section and install graphite using the puppet command:

puppet module install dwerder-graphite

And this works fine. I create the class and change the parameters as it says:

Set the parameters, as follows:

    gr_web_server = none
    gr_django_pkg = django
    gr_django_provider = pip
    gr_django_ver = "1.5"

But the next part tells me to install graphite using puppet:

puppet agent --test

This is where it fails and I get the following errors:

root@learning:~ # puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, having $gr_web_server => 'wsgionly' requires use of $gr_web_user and $gr_web_group at /etc/puppetlabs/code/environments/production/modules/graphite/manifests/config.pp:65:9 on node learning.puppetlabs.vm
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Now if i remove the changes i made then run:

puppet agent -t

Then it runs through that process fine however with the changes in it fails.

Any help is really appreciated as I would like to continue with this Learning VM.

Kris

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2016-04-16 10:20:41 -0500

Hannah Shalev gravatar image

The new release of dwerder-graphite works a bit differently than what the creators of the Learning VM counted on. The best way to circumvent this is to uninstall the version you downloaded off the web, and 'install' (well, copy) the older version that comes with the learning machine, which is meant for users without internet access.

root@learning:~ # puppet module uninstall dwerder-graphite
root@learning:~ # rsync -r /usr/src/forge/graphite/* /etc/puppetlabs/code/modules/graphite/

Should look like this:

root@learning:~ # ll /etc/puppetlabs/code/modules/graphite/
total 64
-rw-r--r-- 1 root root  9627 Apr  8 02:28 CHANGELOG.md
-rw-r--r-- 1 root root  3197 Apr  8 02:28 checksums.json
-rw-r--r-- 1 root root  3084 Apr  8 02:28 DEVELOP.md
-rw-r--r-- 1 root root   367 Apr  8 02:28 Gemfile
-rw-r--r-- 1 root root   602 Apr  8 02:28 LICENSE
drwxr-xr-x 2 root root   139 Apr  8 02:28 manifests
-rw-r--r-- 1 root root  1427 Apr  8 02:28 metadata.json
-rw-r--r-- 1 root root   915 Apr  8 02:28 Rakefile
-rw-r--r-- 1 root root 26495 Apr  8 02:28 README.md
drwxr-xr-x 4 root root    90 Apr  8 02:28 spec
drwxr-xr-x 4 root root    26 Apr  8 02:28 templates

This version works. Do a Puppet run, and you're good to go.

edit flag offensive delete link more

Comments

I've just run this on a fresh version of the learning VM and it just re-installs dwerder-graphite 5.16.1, which seems to have issues. Not encouraging, this.

dogbot gravatar imagedogbot ( 2016-10-06 06:11:59 -0500 )edit
0

answered 2016-10-06 06:18:15 -0500

dogbot gravatar image

This is from the default build, following the instructions provided:

Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for learning.puppetlabs.vm
Info: Applying configuration version '1475781134'
Notice: /Stage[main]/Graphite::Install/Package[MySQL-python]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[pyOpenSSL]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[pycairo]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-crypto]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-ldap]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-memcached]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-psycopg2]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-zope-interface]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-tzlocal]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[python-sqlite3dbm]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[dejavu-fonts-common]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[dejavu-sans-fonts]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[twisted]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[carbon]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[django-tagging]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[graphite-web]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[txamqp]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/Package[whisper]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/File[carbon_hack]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Install/File[gweb_hack]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/webapp/graphite/local_settings.py]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/Exec[Initial django db creation]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/lists]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/log]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/log/webapp]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/rrd]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/run]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/whisper]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/log/carbon-cache]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/graphite.db]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/graphite.wsgi]: Dependency Package[django] has failures: true
Notice: /Stage[main]/Graphite::Config/File[/opt ...
(more)
edit flag offensive delete link more

Comments

I am having the same issue. Is it going to be addressed by Puppet team? It has been a while since it was reported.

pogutse gravatar imagepogutse ( 2016-11-17 14:41:07 -0500 )edit
0

answered 2017-03-19 07:46:22 -0500

gilbey gravatar image

I omitted the grdjangover = "1.5" parameter and was able to run the Puppet agent daemon with no issue.

edit flag offensive delete link more
0

answered 2016-05-09 20:45:20 -0500

blsaws gravatar image

This is the 3rd issue I've encountered in getting started with the learning VM. While I appreciate the advice so far, which has not been hard to find on this forum, I would recommend that the Puppet team update the learning VM guide to make it clearer that this is intended to be used without internet access, or to correct the guide for the current version of the dependencies. For example, the guidance for the Power of Puppet Task 2 has a box "Offline?" which implies that this should also work when online.

Also, when using the workaround noted, the "quest --progress" command shows that the step "_ Task 2: Install the dwerder-graphite module" was not completed. So I can't show as having completed all tasks in this Quest (not that this matters in the end perhaps, but it can be confusing as it's assumed all steps should be completed before moving on).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-04-05 06:59:09 -0500

Seen: 670 times

Last updated: Oct 06 '16