Merge ~utkarsh/ubuntu/+source/rabbitmq-server:lp1921425-logrotate-issue-groovy into ubuntu/+source/rabbitmq-server:ubuntu/groovy-devel

Proposed by Utkarsh Gupta
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 608c657a51c90da43d682389fd119c4a081623c5
Merge reported by: Christian Ehrhardt 
Merged at revision: 608c657a51c90da43d682389fd119c4a081623c5
Proposed branch: ~utkarsh/ubuntu/+source/rabbitmq-server:lp1921425-logrotate-issue-groovy
Merge into: ubuntu/+source/rabbitmq-server:ubuntu/groovy-devel
Diff against target: 53 lines (+16/-11)
3 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/rabbitmq-server.logrotate (+6/-10)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server packageset reviewers Pending
Canonical Server Pending
Review via email: mp+400639@code.launchpad.net

Description of the change

Hello,

This MP intends to fix LP: #1921425, the logrotate issue.

Whilst there are no tests in this package, but the changes are trivial so I don't suspect any problem there.

PPA at https://launchpad.net/~utkarsh/+archive/ubuntu/experimental-dump.

Requesting you to please review and sponsor this. TIA! \o/

To post a comment you must log in.
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Also, in the SRU template, I've been a bit hesitant to change the "test plan" section and let the user's tests be there, as-is. I don't expect that to be a problem but I thought it's worth mentioning it once here for the reviewer.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Summary - Could you please:
- reduce the fix to just fix the double rotation
- if you want to add the #947873 fix add a LP bug to track/test/discuss about it

---

From the log:
   - Use logrotate daily instead of weekly, and do not override the
     number of logs, so we don't keep too much of them.

While I agree to this for Hirsute - and I agree to fix the double rotation, for the SRU shouldn't we keep weekly (as is) and the number of logs (as is) and only fix the double-rotation to no more happen?

---

Further another "potential regression" is increased disk space consumption as we formerly kept N/2 reasonable logs and now we will keep N. So the amount doubles.

---

While I see how https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947873 is important to logging I don't see a clear path from the bug you try to SRU-fix to that change. This would either need an update to that bug description or filing a new one. But the bug you have is already rather busy (a lot of text), so maybe a new bug would be better.

---

Finally the change will also change the place of the logs
New:
+StandardOutput=append:/var/log/rabbitmq/rabbitmq-server.log
+StandardError=append:/var/log/rabbitmq/rabbitmq-server.error.log
Old:
/usr/lib/rabbitmq/bin/rabbitmq-server "$@" > "/var/log/rabbitmq/startup_log" 2> "/var/log/rabbitmq/startup_err"
Which for an SRU I think is unwanted.

review: Needs Fixing
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hi Christian,

Thanks for the review. I tend to agree with your thoughts on this. So after looking at this again, I think it's best to keep this upload just for fixing the bug in question (double log rotation) and I've fixed this MP to echo that.

Could you please re-review and sponsor if it's OK now? TIA! \o/

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks for adapting, and with that change it only became a conffile-only change - which is good as admins will get prompted if they have applied hacks to fix the former issue.

I rechecked and this LGTM now
+1

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/rabbitmq-server
 * [new tag] upload/3.8.5-1ubuntu0.1 -> upload/3.8.5-1ubuntu0.1

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading rabbitmq-server_3.8.5-1ubuntu0.1.dsc: done.
  Uploading rabbitmq-server_3.8.5-1ubuntu0.1.debian.tar.xz: done.
  Uploading rabbitmq-server_3.8.5-1ubuntu0.1_source.buildinfo: done.
  Uploading rabbitmq-server_3.8.5-1ubuntu0.1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This is accepted in F/G-proposed and imported in git-ubuntu

 rabbitmq-server | 3.8.2-0ubuntu1.2 | focal-proposed | source, all
 rabbitmq-server | 3.8.5-1ubuntu0.1 | groovy-proposed | source, all

Closing the MP

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index eb96e01..7a56ce1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+rabbitmq-server (3.8.5-1ubuntu0.1) groovy; urgency=medium
7+
8+ [ Thomas Goirand ]
9+ * d/rabbitmq-server.logrotate: Do not use a sharedscripts, as
10+ rabbitmq-server detects the log rotation by itself. (LP: #1921425)
11+
12+ -- Utkarsh Gupta <utkarsh.gupta@canonical.com> Tue, 06 Apr 2021 16:24:40 +0530
13+
14 rabbitmq-server (3.8.5-1) unstable; urgency=medium
15
16 * New upstream release:
17diff --git a/debian/control b/debian/control
18index 80f9e8b..b52ebee 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,7 +1,8 @@
22 Source: rabbitmq-server
23 Section: net
24 Priority: optional
25-Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
28 Uploaders:
29 James Page <james.page@ubuntu.com>,
30 Thomas Goirand <zigo@debian.org>,
31diff --git a/debian/rabbitmq-server.logrotate b/debian/rabbitmq-server.logrotate
32index c786df7..86b696a 100644
33--- a/debian/rabbitmq-server.logrotate
34+++ b/debian/rabbitmq-server.logrotate
35@@ -1,12 +1,8 @@
36 /var/log/rabbitmq/*.log {
37- weekly
38- missingok
39- rotate 20
40- compress
41- delaycompress
42- notifempty
43- sharedscripts
44- postrotate
45- /etc/init.d/rabbitmq-server rotate-logs > /dev/null
46- endscript
47+ weekly
48+ missingok
49+ rotate 20
50+ compress
51+ delaycompress
52+ notifempty
53 }

Subscribers

People subscribed via source and target branches