Project

General

Profile

Tâche #11044

Distribution EOLE - Scénario #11040: Demandes d'évolution sur les règles ESU

remote_service_start plante si plusieurs nouvelles machines démarrent

Added by Klaas TJEBBES about 8 years ago. Updated almost 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/26/2015
Due date:
% Done:

100%

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

Description

Le problème est que "netbios" sert de clé dans la base de donnée, table "log" et que "netbios" n'est pas renseigné au service_start mais au dyn-logon (netlogon/pre-exec).

Quand un poste démarre (controlevnc/remote_service_start) pour la première fois, son nom netbios est renseigné à vide ('').
Quand un second poste démarre pour la première fois et que controlevnc essaye d'ajouter ce poste (toujours avec netbios=''), ça plante avec :

2015/03/26 11:32:46 CET [Broker,3,192.168.230.173] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.7/dist-packages/twisted/spread/banana.py", line 153, in gotItem
            self.callExpressionReceived(item)
          File "/usr/lib/python2.7/dist-packages/twisted/spread/banana.py", line 116, in callExpressionReceived
            self.expressionReceived(obj)
          File "/usr/lib/python2.7/dist-packages/twisted/spread/pb.py", line 584, in expressionReceived
            method(*sexp[1:])
          File "/usr/lib/python2.7/dist-packages/twisted/spread/pb.py", line 896, in proto_message
            self._recvMessage(self.localObjectForID, requestID, objectID, message, answerRequired, netArgs, netKw)
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/twisted/spread/pb.py", line 910, in _recvMessage
            netResult = object.remoteMessageReceived(self, message, netArgs, netKw)
          File "/usr/share/eole/controlevnc/controle_vnc_serveur.py", line 67, in remoteMessageReceived
            return pb.Root.remoteMessageReceived(self, broker, message, args, kw)
          File "/usr/lib/python2.7/dist-packages/twisted/spread/flavors.py", line 114, in remoteMessageReceived
            state = method(*args, **kw)
          File "/usr/share/eole/controlevnc/controle_vnc_serveur.py", line 315, in remote_service_start
            return Connexions().service_start(self.ip)
          File "/usr/share/eole/controlevnc/connexions.py", line 135, in service_start
            % ip)
          File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
            self.errorhandler(self, exc, value)
          File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
            raise errorclass, errorvalue
        _mysql_exceptions.IntegrityError: (1062, "Duplicate entry '' for key 'netbios'")

Associated revisions

Revision 08f92af3 (diff)
Added by Klaas TJEBBES almost 8 years ago

modification de la gestion du netbios REF #11044

Revision c61ad2d3 (diff)
Added by Klaas TJEBBES almost 8 years ago

modification de la gestion du netbios REF #11044

Revision 1794d83d (diff)
Added by Klaas TJEBBES almost 8 years ago

controlevnc*.sql : Suppression de l'attribut INDEX de "netbios" FIXES #11044

Revision a95ea20a (diff)
Added by Klaas TJEBBES almost 8 years ago

mise à jour de la BDD si existante pour supprimer l'index FIXES #11044

History

#1 Updated by Klaas TJEBBES about 8 years ago

  • connexions.py
  • login.py (pyshared)
  • format de la BDD (enlever key à netbios)

#2 Updated by Klaas TJEBBES about 8 years ago

Ajouter des tests en cas de réponse vide pour éviter des boucles infinies.

#3 Updated by Klaas TJEBBES almost 8 years ago

  • Parent task set to #11040

#4 Updated by Klaas TJEBBES almost 8 years ago

  • Status changed from Nouveau to En cours

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

  • Estimated time set to 2.00 h
  • Remaining (hours) set to 1.0

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

  • Assigned To set to Klaas TJEBBES

#7 Updated by Klaas TJEBBES almost 8 years ago

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

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

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 1.0 to 0.0
  • Distribution changed from EOLE 2.4 to EOLE 2.5

Concerne uniquement la version EOLE 2.5

Also available in: Atom PDF