** Description changed:

+ [ Impact ]
+ 
+ No particular impact on users but since for walinuxagent we always keep
+ all the supported series in sync, we want to SRU this change as well.
+ 
+ [ Test Case ]
+ 
+ Easiest way would be to install an ancient trusty walinuxagent package
+ and then upgrade to the latest proposed one and check if the old
+ logrotate configuration file is still present.
+ 
+  * Download walinuxagent 2.0.8-0ubuntu1~14.04.0
+  * Install the package through dpkg (possibly dpkg --force-all -i since 
otherwise the old version will not install)
+  * Check if /etc/logrotate.d/waagent is present
+  * Upgrade walinuxagent to 2.2.6
+  * Make sure that /etc/logrotate.d/waagent is gone and 
/etc/logrotate.d/waagent.logrotate is present
+ 
+ [ Regression Potential ]
+ 
+ The logrotate configuration can be lost or invalid - but if that would
+ happen then the bug will fail verification.
+ 
+ Original description:
+ 
  I am getting the following errors from cron after upgrading my VM to 
walinuxagent 2.2.2-0ubuntu0~14.04.1 (the previous version was 
2.0.8-0ubuntu1~14.04.0).
-     /etc/cron.daily/logrotate:
-     error: waagent.logrotate:1 duplicate log entry for /var/log/waagent.log
+     /etc/cron.daily/logrotate:
+     error: waagent.logrotate:1 duplicate log entry for /var/log/waagent.log
  
  Indeed, there are two duplicate logrotate files that both appear to belong to 
the walinuxagent package:
-     $ dpkg -S /etc/logrotate.d/waagent*
-     walinuxagent: /etc/logrotate.d/waagent
-     walinuxagent: /etc/logrotate.d/waagent.logrotate
-     $ cmp /etc/logrotate.d/waagent*
-     $ cat /etc/logrotate.d/waagent
-     /var/log/waagent.log {
-         compress
-         monthly
-         rotate 6
-         notifempty
-         missingok
-     }
+     $ dpkg -S /etc/logrotate.d/waagent*
+     walinuxagent: /etc/logrotate.d/waagent
+     walinuxagent: /etc/logrotate.d/waagent.logrotate
+     $ cmp /etc/logrotate.d/waagent*
+     $ cat /etc/logrotate.d/waagent
+     /var/log/waagent.log {
+         compress
+         monthly
+         rotate 6
+         notifempty
+         missingok
+     }
  
  I'm on 14.04 LTS:
-     $ lsb_release -rd
-     Description:    Ubuntu 14.04.5 LTS
-     Release:        14.04
+     $ lsb_release -rd
+     Description:    Ubuntu 14.04.5 LTS
+     Release:        14.04

** Description changed:

  [ Impact ]
  
- No particular impact on users but since for walinuxagent we always keep
- all the supported series in sync, we want to SRU this change as well.
+ We always keep all the supported series in sync, we want to SRU this
+ change as well. In certain cases, when upgrading from a very old
+ walinuxagent, the logrotate files are duplicate - which is never a good
+ thing.
  
  [ Test Case ]
  
  Easiest way would be to install an ancient trusty walinuxagent package
  and then upgrade to the latest proposed one and check if the old
  logrotate configuration file is still present.
  
-  * Download walinuxagent 2.0.8-0ubuntu1~14.04.0
-  * Install the package through dpkg (possibly dpkg --force-all -i since 
otherwise the old version will not install)
-  * Check if /etc/logrotate.d/waagent is present
-  * Upgrade walinuxagent to 2.2.6
-  * Make sure that /etc/logrotate.d/waagent is gone and 
/etc/logrotate.d/waagent.logrotate is present
+  * Download walinuxagent 2.0.8-0ubuntu1~14.04.0
+  * Install the package through dpkg (possibly dpkg --force-all -i since 
otherwise the old version will not install)
+  * Check if /etc/logrotate.d/waagent is present
+  * Upgrade walinuxagent to 2.2.6
+  * Make sure that /etc/logrotate.d/waagent is gone and 
/etc/logrotate.d/waagent.logrotate is present
  
  [ Regression Potential ]
  
  The logrotate configuration can be lost or invalid - but if that would
  happen then the bug will fail verification.
  
  Original description:
  
  I am getting the following errors from cron after upgrading my VM to 
walinuxagent 2.2.2-0ubuntu0~14.04.1 (the previous version was 
2.0.8-0ubuntu1~14.04.0).
      /etc/cron.daily/logrotate:
      error: waagent.logrotate:1 duplicate log entry for /var/log/waagent.log
  
  Indeed, there are two duplicate logrotate files that both appear to belong to 
the walinuxagent package:
      $ dpkg -S /etc/logrotate.d/waagent*
      walinuxagent: /etc/logrotate.d/waagent
      walinuxagent: /etc/logrotate.d/waagent.logrotate
      $ cmp /etc/logrotate.d/waagent*
      $ cat /etc/logrotate.d/waagent
      /var/log/waagent.log {
          compress
          monthly
          rotate 6
          notifempty
          missingok
      }
  
  I'm on 14.04 LTS:
      $ lsb_release -rd
      Description:    Ubuntu 14.04.5 LTS
      Release:        14.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1673152

Title:
  duplicate logrotate files/entries

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to