OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003945 [syslog_ng] packaging major always 2009-10-07 19:04 2009-11-08 19:25
Reporter japester View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0003945: cswsyslog-ng is not zone friendly - syslog.ctl file is on inherited & read only filesystem
Description the statistics control file is configured to be stored at /opt/csw/var/syslog.ctl.
on non-global zones this is a read only filesystem.

It should be stored at /var/opt/csw/syslog.ctl
Additional Information the fix.
update /opt/csw/lib/svc/method/svc-cswsyslog_ng
to have :

OPTIONS="-f /etc/opt/csw/syslog-ng.conf -p /var/run/syslog-ng.pid -R /var/opt/csw/syslog-ng.ctl"

and remove the "-f /etc/opt/csw/syslog-ng.conf" from the line $DAEMON $OPTIONS
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006811)
japester (reporter)
2009-10-07 19:07

Oops.
managed to get this submitted to the wrong package. should be in syslog-ng, not bacula.
(0006817)
skayser (administrator)
2009-10-08 08:45

Moved this bug to the syslog_ng package.
(0006818)
maciej (reporter)
2009-10-08 09:56

Thanks for the report. I'll publish a testing package later today.
(0006820)
maciej (reporter)
2009-10-09 01:35

After recompiling syslog-ng with the correct localstatedir setting, these are the defaults:

Application Options:
  -f, --cfgfile=<config> Set config file name, default=/etc/opt/csw/syslog-ng.conf
  -R, --persist-file=<fname> Set the name of the persistent configuration file, default=/var/opt/csw/syslog-ng.persist

Are you sure the .ctl file is the right one? There's also the question of which version of syslog-ng you're using. For now, I'll try to stick with the syslog-ng default and let syslog-ng use /var/opt/csw/syslog-ng.persist (as opposed to /var/opt/csw/syslog-ng.ctl).

The updated package is in OpenCSW testing catalog.

http://mirror.opencsw.org/testing.html [^]
(0006827)
maciej (reporter)
2009-10-11 09:25

Still waiting for feedback.
(0006828)
japester (reporter)
2009-10-11 09:53

there is the .ctl file, and a persist file. Two different files for two purposes.
Both have a run time option.

I will spin up a non-sparse zone this evening and test.
(0006829)
maciej (reporter)
2009-10-11 10:36

My testing showed that the file /var/opt/csw/syslog-ng.ctl has been created on both the global zone and a sparse zone. I don't have non-sparse zones for testing at the moment.

syslog_ng-3.0.4,REV=2009.10.09 has been compiled with localstatedir=/var/opt/csw.

Let me know if it works for you too.
(0006842)
japester (reporter)
2009-10-12 02:02

Testing a clean install of openCSW, then an upgrade has the new config file and updated locations function correctly.

Testing an upgrade of a global zone and two sparse zones also worked.

Both tests left the previous version of the control and persist files, not a major issue, but it might be worth adding in a cleanup script to remove these files in /opt/csw/var with appropriate warnings to the user, if that's feasible?

I also noticed that the svc manifest gets installed into /var/opt/csw/svc/method/svc-cswsyslog_ng.
Is that deliberate? The method scripts will be identical on every container, so they could be installed into /opt/csw/var/<dir> ?
I haven't been able to find any opencsw documentation which defines a directory standard for SMF manifest and method files, unfortunately.
(0006845)
maciej (reporter)
2009-10-12 11:23

The updated syslog-ng package () is in testing. It removes the obsolete .ctl and .persist files from /opt/csw/var during the preinstall stage.

Not sure what the warnings for the user should be. A message is being printed to the screen during installation.

Re: /var/opt/csw/svc/method/svc-cswsyslog_ng -- I'm pretty sure it's deliberate. This belongs to the cswclassutils package. In practice, all the containers are going to use the same file, but in principle, you could want different content of /var/opt/csw/svc/method/svc-cswsyslog_ng in each zone. Current setup is more flexible.

The documentation for cswclassutils is here: http://wiki.opencsw.org/cswclassutils-package#toc0 [^]

...and it in fact doesn't tell about the design decisions. Feel free to file an issue with the cswclassutils package about documenting it.
(0006869)
maciej (reporter)
2009-10-18 09:26

japester, are you happy with syslog_ng-3.0.4,REV=2009.10.12?
(0006872)
japester (reporter)
2009-10-18 13:43

yes, thank you.
(0006873)
maciej (reporter)
2009-10-18 14:23

Cool. I've sent it to the release manager.
(0006964)
maciej (reporter)
2009-11-08 19:25

The updated package is available from the mirrors. Closing the bug.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker