Merge ~powersj/ubuntu/+source/logcheck:xenial-1357880 into ~usd-import-team/ubuntu/+source/logcheck:ubuntu/xenial-devel

Proposed by Joshua Powers on 2017-07-20
Status: Merged
Merge reported by: Nish Aravamudan
Merged at revision: 8861f4bb8f34585e2670aa1a0e521787b8f17a1d
Proposed branch: ~powersj/ubuntu/+source/logcheck:xenial-1357880
Merge into: ~usd-import-team/ubuntu/+source/logcheck:ubuntu/xenial-devel
Diff against target: 74 lines (+23/-27)
3 files modified
debian/changelog (+6/-0)
debian/control (+2/-1)
rulefiles/linux/ignore.d.server/dhclient (+15/-26)
Reviewer Review Type Date Requested Status
Nish Aravamudan 2017-08-04 Approve on 2017-08-07
Andreas Hasenack (community) 2017-07-20 Approve on 2017-07-20
Canonical Server Team 2017-07-24 Pending
Review via email: mp+327810@code.launchpad.net

This proposal supersedes a proposal from 2017-07-19.

To post a comment you must log in.
Andreas Hasenack (ahasenack) wrote : Posted in a previous version of this proposal

Could you please re-target this against ubuntu/xenial-devel?

Joshua Powers (powersj) wrote :

Resubmitted against xenial-devel

8861f4b... by Joshua Powers on 2017-07-20

Update maintainer

Andreas Hasenack (ahasenack) wrote :

Looks good. Verified:
- one commit per change, plus changelog and metadata (maintainer)
- same fix is upstream (https://anonscm.debian.org/cgit/logcheck/logcheck.git/tree/rulefiles/linux/ignore.d.server/dhclient)
- fix works as expected (followed the SRU test case)
- also induced dhclient errors, to see if they would be let through and show up in the logcheck report, and they were
- checked SRU package version and that it will upgrade to Xenial+1

+1

review: Approve
Joshua Powers (powersj) wrote :

Thanks @ahasenack

Need a sponsor now, please :)

Nish Aravamudan (nacc) wrote :

$ git ubuntu lint powersj/xenial-1357880 --target-branch=pkg/ubuntu/xenial-devel
E: Version (1.3.17ubuntu0.1) does not match expected version (1.3.17ubuntu0.16.04.1)
Some lint checks failed. Please investigate.

This is a false positive because "vivid" shows up in the active series list.

@Robie, do we want to hardcode that "vivid" is not active in our series functions?

Robie Basak (racb) wrote :

AIUI, Vivid was active because of the phone. In the past, I've asked for accommodation for Vivid in calculating version numbers in SRUs because otherwise we'd be giving (minor) trouble to phone developers who may want to SRU the same package in Vivid.

This seems unlikely for the phone now, particularly for logcheck. But I don't see a particular reason for the lint to make an exception here. It's being consistent, and that consistency is easier to teach new developers. It's also easier to review: I'm not sure I'd reject 1.3.17ubuntu0.1 in an SRU review, but 1.3.17ubuntu0.16.04.1 would save me having to go through the exercise of considering edge cases in order to conclude that 1.3.17ubuntu0.1 is OK.

Nish Aravamudan (nacc) wrote :

On Wed, Aug 2, 2017 at 4:01 PM, Robie Basak <email address hidden> wrote:
> AIUI, Vivid was active because of the phone. In the past, I've asked for accommodation for Vivid in calculating version numbers in SRUs because otherwise we'd be giving (minor) trouble to phone developers who may want to SRU the > same package in Vivid.

This is a good point, it's consistent to require the 16.04.1 since
vivid version == xenial version.
>
> This seems unlikely for the phone now, particularly for logcheck. But I don't see a particular reason for the lint to make an exception here. It's being consistent, and that consistency is easier to teach new developers. It's also easier to
> review: I'm not sure I'd reject 1.3.17ubuntu0.1 in an SRU review, but 1.3.17ubuntu0.16.04.1 would save me having to go through the exercise of considering edge cases in order to conclude that 1.3.17ubuntu0.1 is OK.

Yep, so maybe it's *not* a false positive :)

Joshua Powers (powersj) wrote :

> > review: I'm not sure I'd reject 1.3.17ubuntu0.1 in an SRU review, but
> 1.3.17ubuntu0.16.04.1 would save me having to go through the exercise of
> considering edge cases in order to conclude that 1.3.17ubuntu0.1 is OK.
>
> Yep, so maybe it's *not* a false positive :)

Would you like me to update the version such that lint works or is this good to go?

Nish Aravamudan (nacc) :
review: Approve
Nish Aravamudan (nacc) wrote :

Upload tagged and sponsored.

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 106fb5b..634d1e5 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+logcheck (1.3.17ubuntu0.1) xenial; urgency=medium
7+
8+ * ignore.d.server/dhclient: rewrite rules (Closes LP: #1357880)
9+
10+ -- Joshua Powers <josh.powers@canonical.com> Wed, 19 Jul 2017 15:58:35 -0700
11+
12 logcheck (1.3.17) unstable; urgency=low
13
14 [ Hannes von Haugwitz ]
15diff --git a/debian/control b/debian/control
16index 808dec5..22ca4d1 100644
17--- a/debian/control
18+++ b/debian/control
19@@ -1,7 +1,8 @@
20 Source: logcheck
21 Section: admin
22 Priority: optional
23-Maintainer: Debian logcheck Team <logcheck-devel@lists.alioth.debian.org>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25+XSBC-Original-Maintainer: Debian logcheck Team <logcheck-devel@lists.alioth.debian.org>
26 Uploaders: Todd Troxell <ttroxell@debian.org>, Eric Evans <eevans@debian.org>, martin f. krafft <madduck@debian.org>, Marc Haber <mh+debian-packages@zugschlus.de>, maximilian attems <maks@debian.org>, Hanspeter Kunz <hkunz@ifi.uzh.ch>, Hannes von Haugwitz <hannes@vonhaugwitz.com>
27 Standards-Version: 3.9.6
28 Build-Depends: debhelper (>= 9)
29diff --git a/rulefiles/linux/ignore.d.server/dhclient b/rulefiles/linux/ignore.d.server/dhclient
30index c7b98e9..b96ac71 100644
31--- a/rulefiles/linux/ignore.d.server/dhclient
32+++ b/rulefiles/linux/ignore.d.server/dhclient
33@@ -1,26 +1,15 @@
34-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Internet (Software|Systems) Consortium DHCP Client [.[:alnum:]-]+$
35-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Copyright [-0-9]+ Internet Systems Consortium\.$
36-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: All rights reserved\.$
37-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: For info, please visit http(://www\.isc\.org/(products/DHCP|sw/dhcp/)|s://www\.isc\.org/software/dhcp/)$
38-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: There is already a pid file /var/run/dhclient\.[[:alnum:]]+\.pid with pid [[:digit:]]+$
39-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: killed old client process, removed PID file$
40-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?:$
41-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Listening on [^[:space:].]+$
42-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Sending on[[:space:]]+[^[:space:]]+$
43-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: DHCPDISCOVER on [[:alnum:].-]+ to [.0-9]{7,15} port 67 interval [0-9]+$
44-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: DHCP(NAK|ACK|OFFER) (of [.0-9]{7,15} )?from [.0-9]{7,15}$
45-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: DHCP(REQUEST|RELEASE) (of [.0-9]{7,15} )?on [[:alnum:].-]+ to [.0-9]{7,15} port 67$
46-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: bound(:| to [.0-9]{7,15} --) renewal in [0-9]+ seconds\.$
47-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: [[:lower:]]+[0-9]: unknown hardware address type [0-9]+$
48-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Trying recorded lease [.0-9]{7,15}$
49-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: No working leases in persistent database( - sleeping)?\.$
50-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: send_packet: Network is unreachable$
51-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: send_packet: please consult README file regarding broadcast address\.$
52-# dhcp-client 2.0
53-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Copyright (199[5-9],? ){5}(The )?Internet Software Consortium\.$
54-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Please contribute if you find this software useful\.$
55-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: For info, please visit http://www.isc.org/dhcp-contrib.html$
56-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: No DHCPOFFERS received\.$
57-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?: Sleeping\.$
58-# 3.0
59-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient: parse_option_buffer: option [-[:alnum:]]+ \([[:digit:]]+\) larger than buffer\.$
60+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: Internet Systems Consortium DHCP Client [.[:alnum:]-]+$
61+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: Copyright 2004-20[[:digit:]]{2} Internet Systems Consortium\.$
62+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: All rights reserved\.$
63+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: For info, please visit https://www\.isc\.org/software/dhcp/$
64+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]:$
65+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\] Trying recorded lease [.0-9]{7,15}$
66+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: DHCP(NAK|ACK|OFFER) (of [.0-9]{7,15} )?from [.0-9]{7,15}( \(xid=0x[0-9a-f]{8}\))?$
67+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: DHCP(REQUEST|RELEASE) (of [.0-9]{7,15} )?on [[:alnum:].-]+ to [.0-9]{7,15} port 67( \(xid=0x[0-9a-f]{8}\))?$
68+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: DHCPDISCOVER on [[:alnum:].-]+ to [.0-9]{7,15} port 67 interval [0-9]+( \(xid=0x[0-9a-f]{8}\))?$
69+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: Killed old client process$
70+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: Listening on [^[:space:].]+$
71+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: No DHCPOFFERS received\.$
72+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: No working leases in persistent database - sleeping\.$
73+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: Sending on[[:space:]]+[^[:space:]]+$
74+^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dhclient\[[[:digit:]]+\]: bound to [.0-9]{7,15} -- renewal in [0-9]+ seconds\.$

Subscribers

People subscribed via source and target branches