From
 bounces+848413-276d-plugins+github=monitoring-plugins....@sgmail.github.com 
 Mon Jun 16 14: 24:20 2014
Return-Path:
 <bounces+848413-276d-plugins+github=monitoring-plugins....@sgmail.github.com>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from o4.sgmail.github.com (o4.sgmail.github.com [192.254.112.99])
 by orwell.monitoring-plugins.org (Postfix) with ESMTPS id 382A620015AB for
 <[email protected]>; Mon, 16 Jun 2014 14:24:20 +0200
 (CEST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sgmail.github.com; 
 
h=from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe;
  s=smtpapi; bh=EvfkKDofA3XJ257EQXXnkh5EtCc=; b=McVjwVB0WC9vuvX3R0 
em0w6JhqmiTcv1FTOLRQmCvtfMWzmH9bIG8OfNMCfr1k5GFuemGbfKHUbMT5QjgY 
UvSPN0xkP16SxIM1gx5tjzIo8PgGlx4nMdd95b8so2WyLnVE3KN7zT4t6CDBM2mE 
yIQk5Wmhkxme4mn+EFWygrZxI=
Received: by mf190.sendgrid.net with SMTP id mf190.20927.539EE1F02 Mon, 16
 Jun 2014 12:24:16 +0000 (UTC)
Received: from github-smtp2a-ext-cp1-prd.iad.github.net
 (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by
 ismtpd-028.iad1.sendgrid.net (SG) with ESMTP id 146a4a291b9.57e7.190276 for
 <[email protected]>; Mon, 16 Jun 2014 12:24:16 +0000
 (GMT)
Date: Mon, 16 Jun 2014 05:24:15 -0700
From: basak <[email protected]>
To: Monitoring Plugins Development <[email protected]>
Message-ID: <monitoring-plugins/monitoring-plugins/pull/[email protected]>
Subject: check_apt: also check for HWE EOL status (#1260)
Mime-Version: 1.0
Content-Type: multipart/alternative; 
boundary="--==_mimepart_539ee1efef17d_383c3fdedf27b2a01208a8"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Recipient: monitoring-user
List-ID: monitoring-plugins/monitoring-plugins
 <monitoring-plugins.monitoring-plugins.github.com>
List-Archive: https://github.com/monitoring-plugins/monitoring-plugins
List-Post:
 
<mailto:reply+i-35791252-b2848ca603f0a89447f7f6df15df96c73178dbf6-5514...@reply.github.com>
List-Unsubscribe:
 
<mailto:unsub+i-35791252-b2848ca603f0a89447f7f6df15df96c73178dbf6-5514...@reply.github.com>,
 
<https://github.com/notifications/unsubscribe/5514713__eyJzY29wZSI6Ik5ld3NpZXM6TXV0ZSIsImV4cGlyZXMiOjE3MTg1NDA2NTUsImRhdGEiOnsiaWQiOjM0NzM4NzgwfX0=--921ec19d3881e777db36becebb24c8407e59679a>
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: [email protected]
X-SG-EID:
 
9g85I98B45owfP+p5gQnAu2U9KJoEjKej8w6VGaUYDkg5Bf+bkW+y/yibIu73T8SQhQlBov09OLMcMAp7Iv/IEi1BETZf1Bsd9y5z5AM4q7T7Vh9TLGSVxHfl9H0Z19wdq1YQH88g5PTSTlbjGAt88iT4PLZDwLebIJPS0BzCk0Pmiv5+lflqYazZuK9yM/4
X-Loop: [email protected]
X-Original-From:
 bounces+848413-276d-plugins+github=monitoring-plugins....@sgmail.github.com
X-MP-Filter: filter-github-emails
X-MP-Content: GitHub comment


----==_mimepart_539ee1efef17d_383c3fdedf27b2a01208a8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

In Ubuntu, LTS point releases ship with hardware enablement kernels and
X.org stacks backported from the latest corresponding non-LTS release by
default, so that users can continue to install and use the LTS release
on newer hardware.

These enablement packages have a shorter support lifetime than the LTS
release itself. The supported mechanism to continue with newer hardware
on LTS releases for the full LTS support lifetime period is to upgrade
to a newer hardware enablement package. This process must be manual,
however, since we do not want to risk regressing installations. We have
concluded that bumping the kernel and X.org versions is a major enough
change that it is not suitable for an automatic update.

Thus we must notify users of this need to update in any way we can, so
that they can take action.

We thought that the existing check_apt test is one appropriate place to
alert users that an update is available.

The underlying logic for the change to this plugin is:

0. Follow the existing behaviour to determine the number of updates and
critical updates available.

1. If /usr/bin/hwe-support-status does not exist, do nothing different.
This covers the case where users have not yet received the update that
makes it available, or are using a distribution that does not provide
HWE packs (eg. Debian currently).

2. Given that /usr/bin/hwe-support-status does exist, run it with
--quiet. If an update is required, it will exit with a non-zero status.

3. If an update is required, bump the number of &quot;critical updates&quot;
detected.

4. Report this as normal.

5. I expect a user who wants more information to run &quot;check_apt
-v&quot;. In
this case, /usr/bin/hwe-support-status is run with --verbose and its
output is printed. This prints a human-readable EOL notification
message with more information. On Ubuntu, this links to a wiki page
which we can update with any frequently asked questions.

Though the need for this patch comes from Ubuntu, I&#39;ve written it in a
way that Debian could use the same mechanism in future. There are no
Ubuntu-specific parts in this patch itself.

More information:

https://launchpad.net/bugs/1244438
https://wiki.ubuntu.com/HweStackEolNotifications
https://wiki.ubuntu.com/1204_HWE_EOL
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://blueprints.launchpad.net/ubuntu/+spec/core-1403-hwe-stack-eol-notifications
You can merge this Pull Request by running:

  git pull https://github.com/basak/monitoring-plugins master

Or you can view, comment on it, or merge it online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1260

-- Commit Summary --

  * check_apt: also check for HWE EOL status

-- File Changes --

    M plugins/check_apt.c (61)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1260
----==_mimepart_539ee1efef17d_383c3fdedf27b2a01208a8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>In Ubuntu, LTS point releases ship with hardware enablement kernels and<br>
X.org stacks backported from the latest corresponding non-LTS release by<br>
default, so that users can continue to install and use the LTS release<br>
on newer hardware.</p>

<p>These enablement packages have a shorter support lifetime than the LTS<br>
release itself. The supported mechanism to continue with newer hardware<br>
on LTS releases for the full LTS support lifetime period is to upgrade<br>
to a newer hardware enablement package. This process must be manual,<br>
however, since we do not want to risk regressing installations. We have<br>
concluded that bumping the kernel and X.org versions is a major enough<br>
change that it is not suitable for an automatic update.</p>

<p>Thus we must notify users of this need to update in any way we can, so<br>
that they can take action.</p>

<p>We thought that the existing check_apt test is one appropriate place to<br>
alert users that an update is available.</p>

<p>The underlying logic for the change to this plugin is:</p>

<ol class="task-list">
<li><p>Follow the existing behaviour to determine the number of updates and<br>
critical updates available.</p></li>
<li><p>If /usr/bin/hwe-support-status does not exist, do nothing different.<br>
This covers the case where users have not yet received the update that<br>
makes it available, or are using a distribution that does not provide<br>
HWE packs (eg. Debian currently).</p></li>
<li><p>Given that /usr/bin/hwe-support-status does exist, run it with<br>
--quiet. If an update is required, it will exit with a non-zero status.</p></li>
<li><p>If an update is required, bump the number of "critical updates"<br>
detected.</p></li>
<li><p>Report this as normal.</p></li>
<li><p>I expect a user who wants more information to run "check_apt -v". In<br>
this case, /usr/bin/hwe-support-status is run with --verbose and its<br>
output is printed. This prints a human-readable EOL notification<br>
message with more information. On Ubuntu, this links to a wiki page<br>
which we can update with any frequently asked questions.</p></li>
</ol><p>Though the need for this patch comes from Ubuntu, I've written it in 
a<br>
way that Debian could use the same mechanism in future. There are no<br>
Ubuntu-specific parts in this patch itself.</p>

<p>More information:</p>

<p><a 
href="https://launchpad.net/bugs/1244438";>https://launchpad.net/bugs/1244438</a><br><a
 
href="https://wiki.ubuntu.com/HweStackEolNotifications";>https://wiki.ubuntu.com/HweStackEolNotifications</a><br><a
 
href="https://wiki.ubuntu.com/1204_HWE_EOL";>https://wiki.ubuntu.com/1204_HWE_EOL</a><br><a
 
href="https://wiki.ubuntu.com/Kernel/LTSEnablementStack";>https://wiki.ubuntu.com/Kernel/LTSEnablementStack</a><br><a
 
href="https://blueprints.launchpad.net/ubuntu/+spec/core-1403-hwe-stack-eol-notifications";>https://blueprints.launchpad.net/ubuntu/+spec/core-1403-hwe-stack-eol-notifications</a></p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/basak/monitoring-plugins master</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a 
href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1260'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1260</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_apt: also check for HWE EOL status</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a 
href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1260/files#diff-0";>plugins/check_apt.c</a>
    (61)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a 
href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.patch</a></li>
  <li><a 
href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1260.diff</a></li>
</ul>

<p 
style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br><a 
href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1260";>Reply 
to this email on GitHub</a>.<img alt="" height="1" 
src="https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODU0MDY1NSwiZGF0YSI6eyJpZCI6MzQ3Mzg3ODB9fQ==--486859dca89eb5a16fe64822f35a0af31a95040d.gif";
 width="1" /></p>


----==_mimepart_539ee1efef17d_383c3fdedf27b2a01208a8--

Reply via email to