hi,

fyi :

since the commit  with distutils the "setup install" (& test_end_to_end) are
broken on my side :s

it's problems with mix of bad path apparently basically :

previously with "setup install --install-scripts=/usr/bin" (used by
test_end_to_end)  I ended with :

+ "default" cfg file in /etc/default/shinken
+ init scripts in /etc/init.d/
+ etc files in /etc/shinken/
+ var files in /var/lib/shinken/
+ bin files in /usr/bin/
+ shinken lib in /usr/local/lib/python2.6/dist-packages/Shinken-0.5.egg-info

now I get :

- "default" cfg file: do not see it anymore.. :/
- init scripts in /etc/shinken/init.d   :/
- var files in /usr/var/lib/shinken     :/
- some (*.ini  + shinken-specific*.cfg) etc files in /usr/etc/shinken/   :/

+ bin & others etc files (templates.cfg + others .cfg + objects/* ) &
shinken lib are correctly placed.

and that breaks the setup used by test_end_to_end for the REAL install :

...
>>>* /usr/etc/shinken*
copying build/etc/brokerd.ini -> /usr/etc/shinken
copying build/etc/schedulerd.ini -> /usr/etc/shinken
copying build/etc/pollerd.ini -> /usr/etc/shinken
copying build/etc/reactionnerd.ini -> /usr/etc/shinken
copying build/etc/resource.cfg -> /usr/etc/shinken
copying build/etc/nagios.cfg -> /usr/etc/shinken
copying build/etc/shinken-specific.cfg -> /usr/etc/shinken
copying build/etc/shinken-specific-high-availability.cfg -> /usr/etc/shinken
copying build/etc/shinken-specific-load-balanced-only.cfg ->
/usr/etc/shinken
Changing owner of /usr/etc/shinken/brokerd.ini to root:root
Changing owner of /usr/etc/shinken/schedulerd.ini to root:root
Changing owner of /usr/etc/shinken/pollerd.ini to root:root
Changing owner of /usr/etc/shinken/reactionnerd.ini to root:root
Changing owner of /usr/etc/shinken/resource.cfg to root:root
Changing owner of /usr/etc/shinken/nagios.cfg to root:root
Changing owner of /usr/etc/shinken/shinken-specific.cfg to root:root
Changing owner of /usr/etc/shinken/shinken-specific-high-availability.cfg to
root:root
Changing owner of /usr/etc/shinken/shinken-specific-load-balanced-only.cfg
to root:root
Real install OK
*Error : File /etc/shinken/nagios.cfg is missing!*

I can fix this first error by explicitly setting the --etc-path argument to
"/etc/shinken"  in the test_end_to_end :

> ETC=/etc/shinken
> sudo python setup.py install * --etc-path=$ETC* --install-scripts=/usr/bin

and then all the "etc" files are correctly placed but the init scripts are
still (badly imho) located in /etc/shinken/init.d

so after that the test_end_to_end fails to start the daemons with their init
script because it has not the good path for them by then..  again I
can workaround that in the test_end_to_end by using the path
"/etc/shinken/init.d"  instead of /etc/init.d for the path of the init
scripts but then after I get others errors because some others paths defined
in the etc files for the shinken daemons also are not good :

REAL INSTALL :
...
>>> */etc/shinken*
copying build/etc/brokerd.ini -> /etc/shinken
copying build/etc/schedulerd.ini -> /etc/shinken
copying build/etc/pollerd.ini -> /etc/shinken
copying build/etc/reactionnerd.ini -> /etc/shinken
copying build/etc/resource.cfg -> /etc/shinken
copying build/etc/nagios.cfg -> /etc/shinken
copying build/etc/shinken-specific.cfg -> /etc/shinken
copying build/etc/shinken-specific-high-availability.cfg -> /etc/shinken
copying build/etc/shinken-specific-load-balanced-only.cfg -> /etc/shinken
Changing owner of /etc/shinken/brokerd.ini to root:root
Changing owner of /etc/shinken/schedulerd.ini to root:root
Changing owner of /etc/shinken/pollerd.ini to root:root
Changing owner of /etc/shinken/reactionnerd.ini to root:root
Changing owner of /etc/shinken/resource.cfg to root:root
Changing owner of /etc/shinken/nagios.cfg to root:root
Changing owner of /etc/shinken/shinken-specific.cfg to root:root
Changing owner of /etc/shinken/shinken-specific-high-availability.cfg to
root:root
Changing owner of /etc/shinken/shinken-specific-load-balanced-only.cfg to
root:root
Real install OK
File /etc/shinken/nagios.cfg is present.
File /etc/shinken/shinken-specific.cfg is present.
cfg_file=servicegroups.cfg
The string servicegroups.cfg is in /etc/shinken/nagios.cfg
File /usr/bin/shinken-arbiter is present.
UID        PID  PPID  C STIME TTY          TIME CMD
Now we can test a real run guy
 * Starting scheduler

   [ OK ]
 * Starting poller

  [ OK ]
 * Starting reactionner

   [ OK ]
 * Starting broker

  [ OK ]
 * Starting arbiter

   [ OK ]
We will sleep again 5sec so every one is quite stable....
Check for 1 Scheduler
Ok, got 1 scheduler
*Error : File /var/lib/shinken/schedulerd.pid is missing!*
*greg@brutus:/usr/local/shinken$*
*
*
*## effectively :*
*
*
greg@brutus:/usr/local/shinken$ *head /etc/shinken/schedulerd.ini*
[daemon]
# Relative from this cfg file
workdir=*/usr/var/lib/shinken/lib/shinken*
pidfile=%(workdir)s/schedulerd.pid
port=7768
host=0.0.0.0
user=shinken
group=shinken
idontcareaboutsecurity=0
greg@brutus:/usr/local/shinken$


So I guess some adaptations are still required over there .. or am I missing
totally something ??

I tried to see how to correctly fix all that but I'm not fluent at all with
distutils .. :/


greg.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to