Project

General

Profile

Tâche #25547

Scénario #25310: Le script synchro_zephir plante avec un traceback - SCRIBE-T12-002 - AAF - Mode manuel en maj et en annuel (2.7.0-b1)

Déboguer l'agent Zéphir Bareos

Added by Joël Cuissinat almost 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/27/2018
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

==> /var/log/rsyslog/local/zephiragents/zephiragents.alert.log <==
2018-10-12T14:44:32.812600+02:00 horus.domadmin.etb1.lan zephiragents: [-] Unhandled error in Deferred:
2018-10-12T14:44:32.813317+02:00 horus.domadmin.etb1.lan zephiragents: [-] Unhandled Error
2018-10-12T14:44:32.813928+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011Traceback (most recent call last):
2018-10-12T14:44:32.814957+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/protocol.py", line 638, in childDataReceived
2018-10-12T14:44:32.815479+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    self.errReceived(data)
2018-10-12T14:44:32.815987+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/utils.py", line 81, in errReceivedIsBad
2018-10-12T14:44:32.817048+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    self.deferred.errback(failure.Failure(err))
2018-10-12T14:44:32.817550+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 500, in errback
2018-10-12T14:44:32.818192+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    self._startRunCallbacks(fail)
2018-10-12T14:44:32.822014+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
2018-10-12T14:44:32.822577+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    self._runCallbacks()
2018-10-12T14:44:32.823003+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011--- <exception caught here> ---
2018-10-12T14:44:32.823456+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
2018-10-12T14:44:32.823981+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    current.result = callback(current.result, *args, **kw)
2018-10-12T14:44:32.824639+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/agent.py", line 341, in <lambda>
2018-10-12T14:44:32.825226+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    lambda m: self.save_measure(Measure(now, m)),
2018-10-12T14:44:32.825819+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/agent.py", line 355, in save_measure
2018-10-12T14:44:32.826423+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    self.update_status()
2018-10-12T14:44:32.826938+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/agent.py", line 297, in update_status
2018-10-12T14:44:32.827509+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    new_status = self.check_status()
2018-10-12T14:44:32.828021+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/monitor/agents/bareos.py", line 68, in check_status
2018-10-12T14:44:32.828597+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011    for service in self.last_measure.value['services']:
2018-10-12T14:44:32.829005+02:00 horus.domadmin.etb1.lan zephiragents: [-] #011exceptions.TypeError: 'NoneType' object has no attribute '__getitem__'

==> /var/log/rsyslog/local/zephiragents/zephiragents.info.log <==
2018-10-12T14:44:32.861910+02:00 horus.domadmin.etb1.lan zephiragents[19758]: 2018-10-12T14:44:32+0200 [-] KernelMaintenance : le noyau est maintenu par Ubuntu.
2018-10-12T14:44:32.863034+02:00 horus.domadmin.etb1.lan zephiragents: [-] KernelMaintenance : le noyau est maintenu par Ubuntu.
2018-10-12T14:44:32.885877+02:00 horus.domadmin.etb1.lan zephiragents[19758]: 2018-10-12T14:44:32+0200 [-] Erreur remontée par /usr/lib/nagios/plugins/check_bareos :
2018-10-12T14:44:32.886613+02:00 horus.domadmin.etb1.lan zephiragents: [-] Erreur remontée par /usr/lib/nagios/plugins/check_bareos :
2018-10-12T14:44:32.887234+02:00 horus.domadmin.etb1.lan zephiragents[19758]: 2018-10-12T14:44:32+0200 [-] got stderr: 'Unknown option: H\nUnknown option: D\nUnknown option: M\nUnknown option: K\n'
2018-10-12T14:44:32.887665+02:00 horus.domadmin.etb1.lan zephiragents: [-] got stderr: 'Unknown option: H\nUnknown option: D\nUnknown option: M\nUnknown option: K\n'
2018-10-12T14:44:32.889423+02:00 horus.domadmin.etb1.lan zephiragents[19758]: 2018-10-12T14:44:32+0200 [twisted.internet.defer#critical] Unhandled error in Deferred:

Related issues

Related to eole-bareos - Scénario #25552: Mettre à niveau les scripts de supervision de Bareos en 2.7 Terminé (Sprint) 10/15/2018 10/26/2018

Associated revisions

Revision 0ee89e1b (diff)
Added by Joël Cuissinat almost 2 years ago

Bareos agents errors should not crash zephir-client

Ref: #25547

Revision 677dd32c (diff)
Added by Joël Cuissinat almost 2 years ago

Cosmetic fixes on KernelMaintenance agent

Ref: #25547

History

#1 Updated by Joël Cuissinat almost 2 years ago

  • Parent task changed from #25310 to #25552

#2 Updated by Joël Cuissinat almost 2 years ago

  • Status changed from Nouveau to En cours
  • Parent task changed from #25552 to #25310

#3 Updated by Joël Cuissinat almost 2 years ago

  • Related to Scénario #25552: Mettre à niveau les scripts de supervision de Bareos en 2.7 added

#4 Updated by Joël Cuissinat almost 2 years ago

  • Status changed from En cours to Résolu
  • Assigned To set to Joël Cuissinat
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 4.0 to 0.25

Le service ne plante plus mais la supervision de Bareos reste à corriger => #25552

#5 Updated by Gérald Schwartzmann almost 2 years ago

  • Remaining (hours) changed from 0.25 to 0.0

#6 Updated by Gérald Schwartzmann almost 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF