Project

General

Profile

Tâche #9747

Distribution EOLE - Scénario #13756: Assistance aux utilisateurs (45-47)

Dans certains cas, le lock Creole est généré avec "None" au lieu d'un "PID"

Added by Joël Cuissinat almost 9 years ago. Updated almost 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/20/2014
Due date:
% Done:

100%

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

Description

Toujours reproductible avec bareos :

root@scribe:~# bareosconfig.py --lock
root@scribe:~# Maj-Auto -C
Mise à jour le lundi 09 novembre 2015 15:42:05
Maj-Auto - A system lock is already set: /var/lock/eole/eole-system/eolesauvegarde.None

J'aurais bien protégé les lignes qui écrasent le PID original par le numéro de JOB avec le test suivant :

if options.job_id is not None:
    pyeole.lock.PID = options.job_id

Cependant, je m'interroge sur la pertinence des 3 lignes (quel intérêt au niveau du "unlock" et ligne appelée deux fois : avant le if options.director != None: et dans le elif not locks:)

Associated revisions

Revision d62042ab (diff)
Added by Joël Cuissinat almost 8 years ago

Le lock Bareos nécessite l'id du job

  • scripts/bareosconfig.py : erreur si --lock ou --unlock sans --jobID

Ref: #9747 @1h

History

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

  • Tracker changed from Anomalie to Tâche
  • Parent task set to #9927
  • Remaining (hours) set to 1.5

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

  • Description updated (diff)

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

  • Parent task deleted (#9927)

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

  • Tracker changed from Tâche to Demande
  • Project changed from Distribution EOLE to eole-bareos

#5 Updated by Scrum Master almost 8 years ago

  • Assigned To set to Joël Cuissinat

#6 Updated by Joël Cuissinat almost 8 years ago

  • Tracker changed from Demande to Tâche
  • Status changed from Nouveau to En cours
  • Parent task set to #13756

#7 Updated by Joël Cuissinat almost 8 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 1.5 to 0.15

Commité dans master + paquet unstable : eole-bareos 2.5.2-2

#8 Updated by Scrum Master almost 8 years ago

  • Status changed from En cours to Résolu

#9 Updated by Bruno Boiget almost 8 years ago

testé sur amon-2.5.1 mis à jour en Dev (2.5.2)

  • avant mise à jour :
root@amon:~# bareosconfig.py --lock
root@amon:~# Maj-Auto -C
Mise à jour le jeudi 19 novembre 2015 12:20:08
Maj-Auto - A system lock is already set: /var/lock/eole/eole-system/eolesauvegarde.None
  • après mise à jour :
root@amon:~# bareosconfig.py --lock
Erreur : l'option --lock nécessite l'identifiant du job

#10 Updated by Bruno Boiget almost 8 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.15 to 0.0

Also available in: Atom PDF