Project

General

Profile

Scénario #19828

Les utilisateurs doivent être avertis de l’état de support de leur noyau

Added by Daniel Dehennin about 6 years ago. Updated over 5 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
-
Category:
-
Start date:
03/23/2017
Due date:
03/24/2017
% Done:

100%

Estimated time:
4.00 h (Total: 10.00 h)
Spent time:
(Total: 5.50 h)
Story points:
2.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Problème

Voici l’état de la situation, tout va dépendre de ce qui a été installé à l’origine.

Depuis la Lucid Lynx, Ubuntu met en place le LTS Enablement Stacks.

Cela permet aux “point releases (12.04.1, 12.04.2, …)” de supporter du matériel récent en intégrant à l’ISO un rétroportage du dernier noyau.

Le problème est que ce noyau n’est jamais migré vers une version supérieure afin de ne pas « casser » la machine lors d’une mise à jour, un noyau plus récent pourrait mal supporter le matériel (si si, ça arrive).

L’outil hwe-support-status permet de connaître l’état du support pour le noyau.

Depuis la 16.04, les choses ont un peu changées, l’image d’installation d’un serveur n’installe que la version d’origine du noyau (la version de la 16.04.0), c’est à l’administrateur d’installer les versions plus récentes à la demande.

Propositions


Subtasks

eole-common - Tâche #19831: Créer un « agent » diagnose afin de rapporter l’état de maintenance du noyauFerméDaniel Dehennin

Tâche #19848: Créer un agent Zéphir pour rapporter l’état de maintenance du noyauFerméDaniel Dehennin

History

#1 Updated by Daniel Dehennin about 6 years ago

Pour l’agent diagnose, le patch suivant :

diff --git a/diagnose/03-packages b/diagnose/03-packages
index 05c5d04..5c58ac8 100755
--- a/diagnose/03-packages
+++ b/diagnose/03-packages
@@ -1,10 +1,5 @@
 #!/bin/bash

-if [ "$Verbose" != "yes" ]
-then
-    exit 0
-fi
-
 . /usr/lib/eole/ihm.sh

 Kernel=$(uname -sr)
@@ -13,8 +8,26 @@ tempfile=$(mktemp)
 EchoGras "*** Paquets installés" 

 echo
-echo "Noyau linux : $Kernel" 
+echo -n "Noyau linux : $Kernel => " 
+if command -v hwe-support-status > /dev/null
+then
+   if LANG=C hwe-support-status | grep -qs 'is supported'
+   then
+       EchoVert "supporté" 
+   else
+       NEW_KERNEL=$(hwe-support-status \
+            | sed -n -e '/apt-get install/ s,.*\(linux-image-generic[^[:space:]]*\).*,\1,p')
+
+       EchoRouge "non supporté => $(EchoVert "installer ${NEW_KERNEL}")" 
+   fi
+fi
 echo
+
+if [ "$Verbose" != "yes" ]
+then
+    exit 0
+fi
+
 echo -n "Vérification des paquets installés : " 
 dpkg -C > $tempfile
 if [ -s $tempfile ];then

Donne la sortie :

root@eolebase:~# /usr/share/eole/diagnose/03-packages 
*** Paquets installés

Noyau linux : Linux 3.11.0-26-generic => non supporté => installer linux-image-generic-lts-trusty

#2 Updated by Daniel Dehennin about 6 years ago

  • Due date set to 03/24/2017
  • Target version set to sprint 2017 10-12 Equipe MENSR
  • Start date set to 03/06/2017

#3 Updated by Daniel Dehennin about 6 years ago

  • Story points set to 2.0

#5 Updated by Joël Cuissinat about 6 years ago

  • Status changed from Nouveau to Terminé (Sprint)

#6 Updated by Daniel Dehennin about 6 years ago

  • Private changed from Yes to No

#7 Updated by Daniel Dehennin over 5 years ago

  • Release set to EOLE 2.5.2.2

Also available in: Atom PDF