[Bug 594778] New: include tmpwatch in a pattern
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c0 Summary: include tmpwatch in a pattern Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 3 Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: coolo@novell.com ReportedBy: prusnak@novell.com QAContact: qa@suse.de CC: crrodriguez@novell.com Found By: --- Blocker: --- Today I found out that files /tmp/Flash* take more than 2GB on my laptop. That's nearly 20% of / partition size. I suggest to include package tmpwatch in Base pattern. (Package is already in Factory for more than 2 years). It removes files from /tmp (with some exceptions) that were not touched for more than 10 days and from /var/tmp that were not touched for more than 30 days. (For details see /etc/cron.daily/tmpwatch). If this behaviour is not wanted for servers I suggest to include it at least in X11 pattern. PS: I would send a patch directly to patterns git repo, but I want to discuss this first. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c1 --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2010-04-09 08:04:58 UTC --- The /var/tmp/osbuild-packagecache/ should be skipped in any case - it's OK that rpms are old and not touched for some period of the time. Reading source code and manual page [1] I did not find any way how to setup excludes. So I vote for yes, but skip /var/tmp deletion, until this will not be solved. [1] http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c2 --- Comment #2 from Stephan Kulow <coolo@novell.com> 2010-04-13 13:16:15 UTC --- sorry, if something is in /var/tmp, it can be deleted. the packagecache belongs in /var/cache and _osc_ should fix that. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c3 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |crrodriguez@novell.com --- Comment #3 from Stephan Kulow <coolo@novell.com> 2010-04-13 13:40:26 UTC --- Cristian, what's your oppion? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c4 Cristian Rodríguez <crrodriguez@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|crrodriguez@novell.com | --- Comment #4 from Cristian Rodríguez <crrodriguez@novell.com> 2010-04-13 15:45:21 UTC --- There is no problem making this package part of the default install, it is actively supported by RH as well. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c5 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Release Notes AssignedTo|coolo@novell.com |ke@novell.com QAContact|qa@suse.de |coolo@novell.com Severity|Minor |Normal --- Comment #5 from Stephan Kulow <coolo@novell.com> 2010-04-14 06:38:56 UTC --- ok, as I use it myself on all machines I think it's a good change. But this should be documented in the release notes. Pavol or Cristian, please provide a doc snippet what it means to have it enabled. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |prusnak@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c6 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|prusnak@novell.com |crrodriguez@novell.com --- Comment #6 from Pavol Rusnak <prusnak@novell.com> 2010-04-14 08:56:35 CEST --- Cristian might know better ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c7 --- Comment #7 from Michal Vyskocil <mvyskocil@novell.com> 2010-04-14 09:47:35 UTC --- (In reply to comment #2)
sorry, if something is in /var/tmp, it can be deleted. the packagecache belongs in /var/cache and _osc_ should fix that.
That's true - filled bug#596510 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c8 --- Comment #8 from Karl Eichwalder <ke@novell.com> 2010-04-14 14:45:34 UTC --- Also please consider what will happen when upgrading a system (e.g., from 11.2 to 11.3). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c9 Cristian Rodríguez <crrodriguez@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|crrodriguez@novell.com | --- Comment #9 from Cristian Rodríguez <crrodriguez@novell.com> 2010-04-15 22:46:42 UTC --- (In reply to comment #5)
ok, as I use it myself on all machines I think it's a good change. But this should be documented in the release notes. Pavol or Cristian, please provide a doc snippet what it means to have it enabled.
"Since openSUSE 11.3 tmpwatch package is installed and enabled by default, it runs daily via the cron daemon deleting : a) all files in /tmp which are not accessed in 10 days excluding /tmp/.X11-unix, /tmp/.XIM-unix, /tmp/.font-unix , /tmp/.ICE-unix, /tmp/.Test-unix directories b) All files in /var/cache/man/* which are not accessed in 30 days File deletion policy is implemented by looking at the file access time,modification time or inode change time. You can disable this feature removing package tmpwatch from your system " -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Summary|include tmpwatch in a |RN: include tmpwatch in a |pattern |pattern -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c10 Robin Knapp <robin.knapp@ts.fujitsu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.knapp@ts.fujitsu.com --- Comment #10 from Robin Knapp <robin.knapp@ts.fujitsu.com> 2010-05-03 12:52:39 CEST --- What about /etc/cron.daily/suse.de-clean-tmp? This seems to duplicate some features of tmpwatch... and tmpwatch does not honour the variables set in /etc/sysconfig/cron -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c11 Michal Seben <mseben@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |crrodriguez@novell.com --- Comment #11 from Michal Seben <mseben@novell.com> 2010-05-03 14:04:38 UTC --- I think we should drop old /etc/cron.daily/suse.de-clean-tmp and use instead of this tmpwatch - which has upstream, it is used also by other distros and has more features about sysconfig options : we could rework /etc/cron.daily/tmpwatch to read sysconfig options (from /etc/sysconfig/cron) used by suse.de-clean-tmp Cristian what do you think about using option from /etc/sysconfig/cron by /etc/cron.daily/tmpwatch script ? (maybe move options to /etc/sysconfig/tmpwatch would be better) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c12 Michael Matz <matz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz@novell.com --- Comment #12 from Michael Matz <matz@novell.com> 2010-05-03 16:08:47 UTC --- At the very minimum tmpwatch should honor the existing sysconfig variables. In particular it should honor the MAX_DAYS_IN_TMP variable, that if set to zero should disable the deletion of files. I don't think it's okay at all to change this long-living default by introduction of a new package into patterns. And no, I don't think either that a simple release note entry is enough to make people aware of this change in policy. Unsuspecting users will be hit by surprise with data loss which never is okay. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c13 Guido Berhörster <guido+opensuse.org@berhoerster.name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guido+opensuse.org@berhoers | |ter.name --- Comment #13 from Guido Berhörster <guido+opensuse.org@berhoerster.name> 2010-05-03 17:18:33 UTC --- (In reply to comment #11)
I think we should drop old /etc/cron.daily/suse.de-clean-tmp and use instead of this tmpwatch - which has upstream, it is used also by other distros and has more features
about sysconfig options : we could rework /etc/cron.daily/tmpwatch to read sysconfig options (from /etc/sysconfig/cron) used by suse.de-clean-tmp
The list of exceptions should also not be hardcoded in the cron script. Furthermore, it is missing the sockets for tmux (in a subdirectory named /tmp/tmux-*) and possibly screen (not sure since I don't use it). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c14 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lrupp@novell.com InfoProvider|crrodriguez@novell.com |coolo@novell.com --- Comment #14 from Lars Vogdt <lrupp@novell.com> 2010-05-03 22:10:37 UTC --- As reply to comment #11: /etc/cron.daily/suse.de-clean-tmp is here at least since 2003 and has _direct_ upstream support as it is developed by openSUSE developers. You want to change the default behavior of openSUSE and risk a data loss for old openSUSE users - just because somebody can't read /etc/sysconfig/cron? Please tell me that this is just a late April joke... Can anyone tell me something about the big benefit tmpwatch has in opposite to the current situation? You are aware of the fact that people just read he docu once something get wrong (means: tmpwatch has deleted their files)? You want to follow upstream and also want to patch tmpwatch to use /etc/sysconfig/cron instead the default config (Wow: not plain upstream, but also not openSUSE any more) ? BTW: I can't install software via "apt get" - so please delete zypper and put apt in the pattern... Please close this as wontfix and/or point people ot use openFATE for feature requests. Alternatively: place a README in the Release Notes about "You can install tmpwatch if you don't like the default behavior of openSUSE or if you can not understand the meaning of $MAX_DAYS_IN_TMP". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c15 --- Comment #15 from Pavol Rusnak <prusnak@novell.com> 2010-05-04 00:26:50 CEST --- The whole idea behind the change was to behave more like other distributions (Fedora and Mandriva in this case). Also Michal suggested to use separate /etc/sysconfig/tmpwatch which makes sense to me instead of configuring 3+ tools in one sysconfig file. (I'm sure honoring this config would be gladly accepted by upstream if it isn't already there). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c16 --- Comment #16 from Pavol Rusnak <prusnak@novell.com> 2010-05-04 00:36:07 CEST --- Also there is a feature that suggests to change MAX_DAYS_IN_TMP to another value than 0. This would cause "data loss" in your terms as well. https://features.opensuse.org/307510 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c17 --- Comment #17 from Guido Berhörster <guido+opensuse.org@berhoerster.name> 2010-05-04 08:05:17 UTC --- And lets not forget that the default install puts /tmp on the root fs and has MAX_DAYS_IN_TMP=0 which is a timebomb for those users not aware of it (see the above feature request). I also wonder who stores his valuable data in /tmp which might then be lost, openSUSE is about the only UNIX-like OS which does not clear /tmp regularly or at least on boot. Nevertheless this bug is about documenting the changed behavior in the release notes, isn't it? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c18 --- Comment #18 from Michal Vyskocil <mvyskocil@novell.com> 2010-05-04 09:00:06 UTC --- There are several different problems included in one, which needs to be discussed separately. I created a FATE request about a change of the default SUSE behavior - https://fate.novell.com/309448 Feel free to express your opinion here. Please note that this is not about a concrete technical solution, just about if SUSE community wants it or not. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c19 --- Comment #19 from Pavol Rusnak <prusnak@novell.com> 2010-05-04 11:10:35 CEST --- (In reply to comment #18)
Feel free to express your opinion here. Please note that this is not about a concrete technical solution, just about if SUSE community wants it or not.
That's why you created a FATE request in internal tool? :-) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c20 --- Comment #20 from Michal Vyskocil <mvyskocil@novell.com> 2010-05-04 09:24:54 UTC --- (In reply to comment #19)
That's why you created a FATE request in internal tool? :-)
No that was because there are three different interfaces to one system, which is little bit chaotic - especially if the webinterface is not feature complete for a long time. Changed the stakeholder to openSUSE.org -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c21 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED URL| |https://features.opensuse.o | |rg/309448 Found By|--- |Community User InfoProvider|coolo@novell.com | --- Comment #21 from Lars Vogdt <lrupp@novell.com> 2010-05-04 09:56:30 UTC --- Thanks Michal for putting this into a Fate entry where it belongs to. Karl: please close the bug here (as FEATURE) - maybe someone wants to file bugreports for the other problems mentioned earlier - but those should be handled individually. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c22 --- Comment #22 from Michal Vyskocil <mvyskocil@novell.com> 2010-05-04 10:04:25 UTC --- Before close I'd recommend to remote the tmpwatch from default pattern first. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c23 --- Comment #23 from Michael Matz <matz@novell.com> 2010-05-04 11:47:16 UTC --- Indeed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c24 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ke@novell.com AssignedTo|ke@novell.com |coolo@novell.com --- Comment #24 from Karl Eichwalder <ke@novell.com> 2010-05-05 05:44:45 UTC --- Assigning to coolo for clarification. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c25 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #25 from Stephan Kulow <coolo@novell.com> 2010-05-18 13:23:00 CEST --- ok, I moved it to suggested packages now - for those that look for it from other distributions. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594778 http://bugzilla.novell.com/show_bug.cgi?id=594778#c26 --- Comment #26 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (594778) was mentioned in https://build.opensuse.org/request/show/37893 Factory / patterns-openSUSE -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com