Merge lp:~bkbox/ubuntu/maverick/munin/fix-for-699967 into lp:ubuntu/maverick/munin

Proposed by BK Box
Status: Merged
Merged at revision: 34
Proposed branch: lp:~bkbox/ubuntu/maverick/munin/fix-for-699967
Merge into: lp:ubuntu/maverick/munin
Diff against target: 47 lines (+28/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/upstream_bug_952.patch (+19/-0)
To merge this branch: bzr merge lp:~bkbox/ubuntu/maverick/munin/fix-for-699967
Reviewer Review Type Date Requested Status
Kees Cook Approve
Artur Rona (community) Approve
BK Box (community) Approve
Daniel Hahler (community) Approve
Ubuntu Stable Release Updates Team Pending
Review via email: mp+48984@code.launchpad.net

Description of the change

SRU: minimal patch for Maverick

This bug will affect anyone using uppercase letters in their hostname. Munin will not be able to collect any data at all until the hostname is changed to all lowercase, or this patch is applied.

When setting the node name, it is changed to lowercase, but is not checked against lowercase when getting a list of services:

http://munin-monitoring.org/changeset/3404#file19

TEST CASE:

Install a new machine with uppercase letters in the hostname (Maverick.example.com) and install munin-node then run the following commands:
# telnet localhost 4949
> nodes
> list Maverick.example.com

or run

# su - munin --shell=/bin/bash -c munin-cron

To post a comment you must log in.
Revision history for this message
Daniel Hahler (blueyed) wrote :

Pasting the comment from the bug:

The following issues have been found by ari-tczew looking at the patch (#ubuntu-motu):
 - debian/changelog should have maverick-proposed as pocket instead of maverick
 - you are patching node/lib/Munin/Node/Server.pm directly, instead of using the patch system (where you are referring to upstream_bug_952.patch, but not including it). Please add the patch instead of patching the source directly.

review: Needs Fixing
35. By BK Box

Updating the changelog

36. By BK Box

reverting the inline change

37. By BK Box

Added patch file

Revision history for this message
BK Box (bkbox) wrote :

I made the requested changes. Please review.

review: Needs Resubmitting
Revision history for this message
Artur Rona (ari-tczew) wrote :

Thank you for your time and efforts making Ubuntu better! However, there are some issues:

1) I'd like to see improved entry in debian/changelog, so I encourage to:
  * debian/patches/upstream_bug_952.patch:
    - Fix empty list of plugins/services. (LP: #699967)

2) Please add DEP3 tags.
https://wiki.ubuntu.com/PackagingGuide/PatchSystems#Patch%20Tagging%20Guidelines

review: Needs Fixing
38. By BK Box

debian/patches/upstream_bug_952.patch:
-Fix empty list of plugins/services (LP: #699967)

39. By BK Box

Added DEP-3 data

40. By BK Box

Wrong Authors

Revision history for this message
Daniel Hahler (blueyed) :
review: Approve
Revision history for this message
Artur Rona (ari-tczew) wrote :

As it's backported from natty, I encourage to update debian/changelog entry (you can copy it):
  * debian/patches/upstream_bug_952.patch:
    - Fix empty list of plugins/services. (LP: #699967)
      Patch is backported from natty.

Also DEP3 tags should be improved:
- update: Description: Fix empty list of plugins/services in munin-node. Patch is backported from natty.
- add next: Origin: upstream, http://munin-monitoring.org/changeset/3404#file19
- update: Bug-Ubuntu: https://launchpad.net/bugs/699967
- add blank line between DEP3 headers and code below, for pedantic look

review: Needs Fixing
Revision history for this message
BK Box (bkbox) wrote :

> As it's backported from natty, I encourage to update debian/changelog entry
> (you can copy it):
> * debian/patches/upstream_bug_952.patch:
> - Fix empty list of plugins/services. (LP: #699967)
> Patch is backported from natty.
>
> Also DEP3 tags should be improved:
> - update: Description: Fix empty list of plugins/services in munin-node. Patch
> is backported from natty.
> - add next: Origin: upstream, http://munin-
> monitoring.org/changeset/3404#file19
> - update: Bug-Ubuntu: https://launchpad.net/bugs/699967
> - add blank line between DEP3 headers and code below, for pedantic look

How about now?

41. By BK Box

    Patch is backported from natty

42. By BK Box

More changes to DEP3 and changelog

Revision history for this message
BK Box (bkbox) wrote :

This looks good to me, but then again, I submitted it.

review: Approve
Revision history for this message
Artur Rona (ari-tczew) wrote :

Beautiful, built fine. Give chance for core-dev.

review: Approve
Revision history for this message
Kees Cook (kees) wrote :

This looks good. I'll merge and upload it to -proposed. Thanks!

review: Approve
Revision history for this message
Kees Cook (kees) wrote :

Actually, I made an additional small change: the version number wasn't a SRU version. It should have been ubuntu2.1 instead of ubuntu3. But I just fixed it, no worries. :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-08-13 12:54:34 +0000
3+++ debian/changelog 2011-02-09 20:29:43 +0000
4@@ -1,3 +1,11 @@
5+munin (1.4.5-1ubuntu3) maverick-proposed; urgency=low
6+
7+ * debian/patches/upstream_bug_952.patch:
8+ - Fix empty list of plugins/services (LP: #699967)
9+ Patch is backported from natty
10+
11+ -- BK Box <bk@theboxes.org> Tue, 08 Feb 2011 14:22:37 -0600
12+
13 munin (1.4.5-1ubuntu2) maverick; urgency=low
14
15 * debian/rules: Remove sysvinit symlinks. (LP: #574704, LP: #616404)
16
17=== modified file 'debian/patches/series'
18--- debian/patches/series 2010-06-05 07:20:27 +0000
19+++ debian/patches/series 2011-02-09 20:29:43 +0000
20@@ -1,2 +1,3 @@
21+upstream_bug_952.patch
22 100-DejaVu-Fonts-Path.patch
23 237-hddtemp_smartctl-sata-detect.patch
24
25=== added file 'debian/patches/upstream_bug_952.patch'
26--- debian/patches/upstream_bug_952.patch 1970-01-01 00:00:00 +0000
27+++ debian/patches/upstream_bug_952.patch 2011-02-09 20:29:43 +0000
28@@ -0,0 +1,19 @@
29+Description: Fix empty list of plugins/services in munin-node.
30+ Patch is backported from natty.
31+Origin: upstream, http://munin-monitoring.org/changeset/3404#file19
32+Bug-Ubuntu: https://bugs.launchpad.net/bugs/699967
33+Last-Update: 2010-02-07
34+
35+Index: munin-1.4.5/node/lib/Munin/Node/Server.pm
36+===================================================================
37+--- munin-1.4.5.orig/node/lib/Munin/Node/Server.pm 2011-01-07 19:41:00.000000000 +0100
38++++ munin-1.4.5/node/lib/Munin/Node/Server.pm 2011-01-07 19:41:13.000000000 +0100
39+@@ -171,7 +171,7 @@
40+
41+ logger ("DEBUG: Running command \"$_\".") if $config->{DEBUG};
42+ if (/^list\s*([0-9a-zA-Z\.\-]+)?/i) {
43+- _list_services($session, $1);
44++ _list_services($session, lc($1));
45+ }
46+ elsif (/^cap\s?(.*)/i) {
47+ _negotiate_session_capabilities($session, $1);

Subscribers

People subscribed via source and target branches

to all changes: