Project

General

Profile

Demande #1222

surveillance d'un service web

Added by Loïc Dachary over 10 years ago. Updated about 4 years ago.

Status:
Fermé
Priority:
Normale
Category:
Task
Target version:
Start date:
02/17/2013
Due date:
% Done:

100%

Estimated time:
Spent time:
Difficulté:
2 Facile

Description

Utiliser cucumber nagios pour vérifier le déploiement spip en ajoutant une classe puppet dans le module nagios sur le meme style que class april_nagios::check_ssh_port pour que ce soit utilisé dans le manifest de déploiement de libreenfete au lieu de class { 'april_nagios::check_http': }

Le déploiement spip peut être réputé correct si ( par difficulté croissante, a minima la premiere étape ):

  • la page de garde affiche le mot spip
  • la zone adminstrative est accessible
  • un utilisateur peut se connecter dans la zonne administrative
  • un utilisateur authentifié peut modifier une page et le résultat se voit depuis l'utilisateur non connecté

Le workflow puppet / nagios est expliqué étape par étape

Associated revisions

Revision c8985571 (diff)
Added by Quentin CHERGUI about 10 years ago

add cucumber-nagios for Libre-en-Fête, add a ssh_config for fix HostKey problems refs #1222

Revision 47f1b607 (diff)
Added by Quentin CHERGUI about 10 years ago

Separation between cucumber install and cucumber tests install refs #1222

Revision 1b029b43 (diff)
Added by Quentin CHERGUI about 10 years ago

Correction dépendances des scripts d'installation et du nom de domaine de SPIP pour qu'il corresponde à l'environnement de test refs #1222

Revision 817c83ac (diff)
Added by Loïc Dachary about 10 years ago

add the public fqdn for spip.libre-en-fete.org as well as the internal names refs #1222

Revision 879d2f52 (diff)
Added by Loïc Dachary about 10 years ago

Because define april_nagios::check_cucumber_generate_spip is going to be instantiated multiple times, each resource it creates must be named using the arguments otherwise it will create duplicates. Protect the resources that are purposedly singletons from being duplicated. refs #1222

History

#1

Updated by Loïc Dachary about 10 years ago

  • Target version changed from Février 2013 to Mars 2013
#2

Updated by Loïc Dachary about 10 years ago

  • Category set to Task
  • Assignee set to Quentin CHERGUI
#3

Updated by Quentin CHERGUI about 10 years ago

Premiers tests effectués.

Tombé sur ce bug : https://github.com/auxesis/cucumber-nagios/issues/86 (code patché comme l'indique varunwy en #2, ça fonctionne).
Avec ce patch, les 2 premiers cas sont testables, s'il n'y a pas de redirection 30x (auquel cas les mots sur les pages ne sont plus reconnus).

#4

Updated by Quentin CHERGUI about 10 years ago

  • Status changed from Nouveau to En cours de traitement
  • % Done changed from 0 to 70
#5

Updated by Quentin CHERGUI about 10 years ago

Correction du script de lancement des tests de Jenkins pour lui ajouter un ssh_config pour régler les problèmes de clés.

#6

Updated by Loïc Dachary about 10 years ago

Faire un check_spip qui remplace check_lef et qui prend en argument le nom de domaine. On supprime ainsi les références à un nom de domaine particulier dans le module april_nagios.

#7

Updated by Loïc Dachary about 10 years ago

  • Target version changed from Mars 2013 to Avril 2013
#8

Updated by Loïc Dachary about 10 years ago

L'utilisation du nom interne pose problème parceque spip route uniquement sur le fqdn externe

(01:31:14 PM) dachary: hostname spip.libre-en-fete.org
(01:31:14 PM) dachary: root@spip:~# echo spip.libre-en-fete.org > /etc/hostname 
(01:32:03 PM) dachary: root@puppet:~# puppetca list --all | grep libre
(01:32:03 PM) dachary: + "spip.libre-en-fete.vm.april-int" (92:4F:98:C3:51:8D:82:39:86:35:0E:A8:E2:93:6C:3E)
(01:32:52 PM) dachary: puppet agent -vt
(01:32:52 PM) dachary: info: Creating a new SSL key for spip.libre-en-fete.org
(01:32:52 PM) dachary: info: Creating a new SSL certificate request for spip.libre-en-fete.org
(01:32:52 PM) dachary: info: Certificate Request fingerprint (md5): 9F:0A:06:F0:D9:8B:4C:8F:EB:31:F7:89:E1:6C:A5:EE
(01:33:07 PM) dachary: root@puppet:~# puppetca list
(01:33:07 PM) dachary:   "spip.libre-en-fete.org" (9F:0A:06:F0:D9:8B:4C:8F:EB:31:F7:89:E1:6C:A5:EE)

#9

Updated by Quentin CHERGUI about 10 years ago

  • Status changed from En cours de traitement to Résolu
  • % Done changed from 70 to 100

Terminé.

#10

Updated by Quentin Gibeaux about 4 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF