Bug #15875
hobo_notify: ne rien faire si la migration sql n'est pas faite
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
13 avril 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
pour éviter la trace ci-dessous, hobo_notify ne devrait pas tenter les actions qui mettent en jeu SQL (disons toutes)
LINE 1: ...ntifiers, verified_fields, lasso_dump, last_seen, ascii_name... ^ ) Exception: type = '<class 'psycopg2.ProgrammingError'>', value = 'column "ascii_name" does not exist LINE 1: ...ntifiers, verified_fields, lasso_dump, last_seen, ascii_name... ^ ' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/sql.py", line 1597, in get_users_with_name_identifier 1595 + cls.get_data_fields()), 1596 cls._table_name) > 1597 cur.execute(sql_statement, {'value': name_identifier}) 1598 objects = cls.get_objects(cur) 1599 conn.commit() ... File "/usr/lib/python2.7/dist-packages/wcs/qommon/ctl.py", line 160, in run 158 command_class = self.get_commands()[command] 159 cmd = command_class() > 160 return cmd.run(args, options) 161 locals: cmd = <wcs.ctl.hobo_notify.CmdHoboNotify object at 0x7f2fcab1d510> args = ['-'] self = <wcs.qommon.ctl.Ctl object at 0x7f2fcc399050> command_class = <class 'wcs.ctl.hobo_notify.CmdHoboNotify'> command = 'hobo_notify' cmd_prefix = 'wcs.ctl' options = <Values at 0x7f2fcab27b00: {'configfile': '/etc/wcs/wcs-au-quotidien.cfg'}> File "/usr/sbin/wcsctl", line 8, in <module> 6 7 ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl']) > 8 ctl.run(sys.argv[1:]) 9 locals: wcs = <module 'wcs' from '/usr/lib/python2.7/dist-packages/wcs/__init__.pyc'> __builtins__ = <module '__builtin__' (built-in)> __file__ = '/usr/sbin/wcsctl' __package__ = None sys = <module 'sys' (built-in)> ctl = <wcs.qommon.ctl.Ctl object at 0x7f2fcc399050> __name__ = '__main__' __doc__ = None
Historique
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Nouveau à Fermé
- Planning mis à Non