Project

General

Profile

Tâche #13163

Scénario #12975: Exécuter les tests Scribe/Horus/Sauvegarde 2.5.1

SCRIBE-T009-004 : correction du traceback

Added by Gérald Schwartzmann about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/24/2015
Due date:
% Done:

100%

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

Description

bloqué - Gestion poste, blocage d'un poste

Lors du blocage d'un poste un message s'affiche :
Impossible d'appliquer le blocage
Connexions instance has no attribute 'get_user_from_ip'

tail -f /var/log/controle-vnc/main.log

2015/09/24 11:52:37  [Broker,136,10.1.2.50] Appel de la fonction remote_set_machine_bloc_mod par 10.1.2.50, Machines=[('pceleve', 1, 15)]
2015/09/24 11:52:37  [Broker,136,10.1.2.50] Peer will receive following PB traceback:
2015/09/24 11:52:37  [Broker,136,10.1.2.50] 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 565, in expressionReceived
        method(*sexp[1:])
      File "/usr/lib/python2.7/dist-packages/twisted/spread/pb.py", line 877, 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 891, 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 205, in remote_set_machine_bloc_mod
        return self.blocage.bloc_computers(machines)
      File "/usr/share/eole/controlevnc/blocage.py", line 277, in bloc_computers
        self.bloc_computer(computer, netmod, duree)
      File "/usr/share/eole/controlevnc/blocage.py", line 270, in bloc_computer
        return self.apply_from_machine(name, debloc=debloc)
      File "/usr/share/eole/controlevnc/blocage.py", line 359, in apply_from_machine
        username = computer.get_username()
      File "/usr/share/eole/controlevnc/blocage.py", line 177, in get_username
        return Connexions().get_user_from_ip(self.ip)
    exceptions.AttributeError: Connexions instance has no attribute 'get_user_from_ip'

2015/09/24 11:52:38  [Broker,137,10.1.2.50] Appel de la fonction remote_get_machines_blocmod par 10.1.2.50
2015/09/24 11:52:45  [Broker,138,10.1.2.50] Appel de la fonction remote_service_start par 10.1.2.50 : PCWIN7 (Vista), mac=02:00:0A:01:02:69
2015/09/24 11:52:51  [Broker,139,10.1.2.52] Appel de la fonction remote_service_start par 10.1.2.52 : PCELEVE (Vista), mac=02:00:0A:01:02:6A

Related issues

Copied to Distribution EOLE - Tâche #13363: Correction SCRIBE-T009-004 2.5.1 Fermé 09/24/2015

Associated revisions

Revision c2763ee5 (diff)
Added by Lionel Morin about 6 years ago

Ajout de la méthode manquante (ref #13163 @1h)

History

#1 Updated by Gérald Schwartzmann about 6 years ago

  • Parent task set to #12975

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

  • Subject changed from Test Scribe T009-004 bloqué - Gestion poste, blocage d'un poste to Correction Scribe T009-004 2.5.1
  • Description updated (diff)

#3 Updated by Gérald Schwartzmann about 6 years ago

  • Subject changed from Correction Scribe T009-004 2.5.1 to Correction SCRIEB-T009-004 2.5.1

#4 Updated by Gérald Schwartzmann about 6 years ago

  • Subject changed from Correction SCRIEB-T009-004 2.5.1 to Correction SCRIBE-T009-004 2.5.1

#5 Updated by Lionel Morin about 6 years ago

  • Status changed from Nouveau to En cours

#6 Updated by Lionel Morin about 6 years ago

  • Assigned To set to Lionel Morin

#7 Updated by Scrum Master about 6 years ago

  • Status changed from En cours to Résolu

#8 Updated by Lionel Morin about 6 years ago

  • % Done changed from 0 to 100

#9 Updated by Lionel Morin about 6 years ago

  • Remaining (hours) changed from 4.0 to 0.0

#10 Updated by Joël Cuissinat about 6 years ago

  • Subject changed from Correction SCRIBE-T009-004 2.5.1 to SCRIBE-T009-004 : correction du traceback
  • Status changed from Résolu to Fermé

La méthode manquante a été ajoutée. Un autre signalement a été ouvert concernant les autres corrections à apporter sur ce test #13363 :

root@scribe:/usr/share/eole/controlevnc# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from connexions import Connexions          
>>> Connexions.get_user_from_ip
<unbound method Connexions.get_user_from_ip>

Also available in: Atom PDF