Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358359 - sys-cluster/ganglia-3.1.7-r2: incomplete initialization for python modules
Summary: sys-cluster/ganglia-3.1.7-r2: incomplete initialization for python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 09:09 UTC by Carlo Marcelo Arenas Belon
Modified: 2011-05-06 23:27 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 Carlo Marcelo Arenas Belon 2011-03-11 09:09:11 UTC
as shown by :

Mar 11 00:55:35 dell /usr/sbin/gmond[1274]: [PYTHON] Can't open the python module 
path /usr/lib64/ganglia/python_modules.  
Mar 11 00:55:35 dell /usr/sbin/gmond[1274]: Module python_module failed to initialize.  

but which still leaves a not working python module and python library loaded in memory which won't be of any use.

since modpython.conf is included would make more sense to also include the /usr/lib/ganglia/python_modules directory as part of the package so that this error could be avoided.

if the intention is not to have python support enabled by default (most other modules are only available as examples anyway) then would be better to also not include modpython.conf IMHO

Reproducible: Always

Steps to Reproduce:
1. emerge -DNvu ganglia (for ~amd64)
2. /etc/init.d/gmond start
3. tail -2 /var/log/daemon.log
Actual Results:  
errors reported at startup

Expected Results:  
clean logs
Comment 1 Carlo Marcelo Arenas Belon 2011-03-11 09:50:11 UTC
an alternative to consider (if you would like to keep the modpython.conf configuration file as part of the package) would be to mark this module as disabled by using the "enabled = no" setting as shown by :

  # cat /etc/ganglia/conf.d/modpython.conf 
  /*
    params - path to the directory where mod_python
             should look for python metric modules

    the "pyconf" files in the include directory below
    will be scanned for configurations for those modules
  */
  modules {
    module {
      name = "python_module"
      enabled = no
      path = "modpython.so"
      params = "/usr/lib64/ganglia/python_modules"
    }
  }

  include ('/etc/ganglia/conf.d/*.pyconf')
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-14 16:04:39 UTC
Please add your emerge --info as a comment and attach the complete build.log to this bug report.
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2011-05-06 23:27:23 UTC
+  06 May 2011; Justin Bronder <jsbronder@gentoo.org> ganglia-3.1.7-r2.ebuild:
+  Disable modpython by default, add python module directory (#358359). Remove
+  unnecessary postrm cleanup.

Thanks for reporting.