Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294304 - app-admin/puppet RRD feature doesn't work
Summary: app-admin/puppet RRD feature doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL: http://groups.google.com/group/puppet...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 21:28 UTC by Daniel Kerwin
Modified: 2010-03-02 12:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kerwin 2009-11-23 21:28:23 UTC
I tested several puppet version (USE flag rrdtool) and installed dev-ruby/ruby-rrd and rrdtool with ruby use flag in several combinations but it never works as expected. 

Hers's the output from puppetmasterd:

debug: Failed to load library 'RRDtool' for feature 'rrd'
warning: RRD library is missing; cannot store metrics
warning: RRD library is missing; cannot graph metrics
warning: RRD library is missing; cannot store metrics
warning: RRD library is missing; cannot graph metrics
warning: RRD library is missing; cannot store metrics
warning: RRD library is missing; cannot graph metrics


Reproducible: Always

Steps to Reproduce:
1. enable rrd in puppet
2. start puppetd
3.

Actual Results:  
debug: Failed to load library 'RRDtool' for feature 'rrd'
warning: RRD library is missing; cannot store metrics
warning: RRD library is missing; cannot graph metrics
warning: RRD library is missing; cannot store metrics
warning: RRD library is missing; cannot graph metrics
warning: RRD library is missing; cannot store metrics

Expected Results:  
Should create RRD's
Comment 1 Wormo (RETIRED) gentoo-dev 2009-11-29 01:16:51 UTC
Please provide the following additional information:
* emerge --info
* emerge -pv rrdtool
* emerge -pv ruby-rrd
Comment 2 Daniel Kerwin 2009-11-30 16:50:00 UTC
syslog x86_64 # emerge --info

Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8-BackEnd-Build x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-BackEnd-Build-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 26 Nov 2009 13:00:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.4.4-r4, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache confcache distlocks emerge fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

syslog x86_64 # emerge -pv rrdtool

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD] net-analyzer/rrdtool-1.3.8 [1.4.2] USE="nls%* perl python -doc -rrdcgi -ruby* -tcl (-lua%)" 0 kB

Total: 1 package (1 downgrade), Size of downloads: 0 kB

syslog x86_64 # ACCEPT_KEYWORDS="~amd64" emerge -pv ruby-rrd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-ruby/ruby-rrd-1.1  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

I traced the problem to the wrong library. Puppet requires RRDtool.so but anything except the Gem installs RRD.so. The gem needs patching to install. When i finished that Puppt can use RRD data.

Currently there's no ebuild to install RRDtool.so

Comment 3 Wormo (RETIRED) gentoo-dev 2009-12-01 01:59:13 UTC
Thanks for reporting back your findings; assigning to maintainer who can decide what to do about missing dependency (new ebuild, or not claim rrdtool support...)
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2010-02-28 03:05:51 UTC
Fixed in cvs 0.25.4
Comment 5 Dan Carley 2010-03-01 16:58:59 UTC
The additional require line to metric.rb breaks puppetd when RRD is not available or desired:

/usr/lib/ruby/site_ruby/1.8/puppet/util/metric.rb:3:in `require': no such file to load -- RRD (LoadError)
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/metric.rb:3
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:3:in `require'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:3
        from /usr/lib/ruby/site_ruby/1.8/puppet.rb:168:in `require'
        from /usr/lib/ruby/site_ruby/1.8/puppet.rb:168
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:1:in `require'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:1
        from /usr/sbin/puppetd:158:in `require'
        from /usr/sbin/puppetd:158

Does it make sense to wrap the patch with the rrdtool USE flag?
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2010-03-02 12:12:56 UTC
Its my mistake. Fixed in 0.25.4-r1.