Project

General

Profile

Scénario #8644

bacularestore.py --ls_folder : traceback si bacula parle français en 2.3

Added by Joël Cuissinat over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
08/01/2014
% Done:

100%

Estimated time:
1.50 h
Spent time:
Story points:
-
Velocity based estimate:
Release relationship:
Auto

Description

Si on redémarre manuellement "bacula-director" (/etc/init.d/bacula-director restart) sur un module disposant d'une sauvegarde, on peut obtenir :

root@horus:~# /usr/share/eole/bacula/bacularestore.py --ls_folder /pouet
liste du contenu de /pouet
Traceback (most recent call last):
  File "/usr/share/eole/sbin/bacularestore.py", line 137, in <module>
    main()
  File "/usr/share/eole/sbin/bacularestore.py", line 131, in main
    parser.parse_args()
  File "/usr/lib/python2.6/optparse.py", line 1394, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.6/optparse.py", line 1434, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.6/optparse.py", line 1509, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.6/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.6/optparse.py", line 808, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/share/eole/bacula/restore/ls_folder.py", line 17, in execute
    job(option, jobid)
  File "/usr/share/eole/bacula/restore/ls_folder.py", line 31, in job
    bacula_ls_one_folder(foldername, jobid)
  File "/usr/lib/pymodules/python2.6/pyeole/bacularestore.py", line 64, in bacula_ls_one_folder
    if cd_result.groupdict()['invalide'] == None:
AttributeError: 'NoneType' object has no attribute 'groupdict'

Ce bug a déjà été corrigé sur 2.4 : #7464 !

Associated revisions

Revision 5f1be3d4 (diff)
Added by Joël Cuissinat over 6 years ago

"regex" en français et anglais pour --ls_folder

Fixes #8644 @1h

History

#1 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat over 6 years ago

  • Description updated (diff)

#3 Updated by Joël Cuissinat over 6 years ago

  • Due date changed from 07/31/2014 to 08/01/2014

#4 Updated by Joël Cuissinat over 6 years ago

for var in $(env | awk -F'=' '/^LC_/ { print $1 }'); do unset $var; done
export LANG=C

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

  • Status changed from Résolu to Fermé

OK testé sur 2.3, en passant bconsole en anglais :

root@scribe:~# /usr/share/eole/bacula/bacularestore.py --ls_folder /pouet
liste du contenu de /pouet
Le repertoire /pouet n'existe pas.
liste du contenu du repertoire parent / :
etc/
home/
root/
usr/
var/

#6 Updated by Luc Bourdot over 6 years ago

  • Tracker changed from Anomalie to Tâche
  • Release set to Mises à jour 2.3.14
  • Distribution changed from EOLE 2.4 to EOLE 2.3

#7 Updated by Luc Bourdot over 6 years ago

  • Tracker changed from Tâche to Anomalie

#8 Updated by Redmine Admin over 6 years ago

  • Tracker changed from Anomalie to Scénario

Also available in: Atom PDF