So maybe the fix is to not remove /var/log/puppet upon package removal.
/var/log/puppet could still be removed if empty upon package purge.

** Summary changed:

- package installation should create /var/log/puppet
+ logrotate can't find /var/log/puppet if package was removed and that 
directory was empty

** Description changed:

- The puppet package should create /var/log/puppet. Otherwise, we get this
- from cron due to /etc/logrotate.d/puppet:
+ The puppet package should not remove /var/log/puppet upon package
+ removal. Otherwise, we get this from cron due to
+ /etc/logrotate.d/puppet:
  
- /etc/cron.daily/logrotate:                                                    
                                                        
- error: error accessing /var/log/puppet: No such file or directory             
                                                        
- error: puppet:1 glob failed for /var/log/puppet/*log                          
                                                        
+ /etc/cron.daily/logrotate:
+ error: error accessing /var/log/puppet: No such file or directory
+ error: puppet:1 glob failed for /var/log/puppet/*log
  error: found error in /var/log/puppet/*log , skipping
  
  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: puppet (not installed)
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
  Uname: Linux 3.0.0-12-generic-pae i686
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  Date: Mon Dec 19 21:54:06 2011
  ProcEnviron:
-  PATH=(custom, user)
-  LANG=en_US.UTF-8
-  SHELL=/bin/sh
+  PATH=(custom, user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/sh
  SourcePackage: puppet
  UpgradeStatus: Upgraded to oneiric on 2011-10-14 (66 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to puppet in Ubuntu.
https://bugs.launchpad.net/bugs/906735

Title:
  logrotate can't find /var/log/puppet if package was removed and that
  directory was empty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/906735/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to