Project

General

Profile

Tâche #15953

Distribution EOLE - Scénario #16058: Traitement express (19-21)

Si /home/p/pnom/.ftp/perso n'existe pas dynlogon plante

Added by Vincent Febvre over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/21/2016
Due date:
% Done:

100%

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

Description

Test effectué sur un scribe 2.5.1 (pas de problème en 2.4.2)

python /usr/share/eole/fichier/dyn-logon.py --user="pnom" --os="WinXP" --machine="toto" --ip="1.1.1.1" --pid="1" 
Traceback (most recent call last):
  File "/usr/share/eole/fichier/dyn-logon.py", line 70, in main
    logon(user, ostype, machine, adresse_ip, pid)
  File "/usr/lib/python2.7/dist-packages/scribe/login.py", line 123, in logon
    gen_ftpdir(uid, homedir, shares)
  File "/usr/lib/python2.7/dist-packages/scribe/login.py", line 213, in gen_ftpdir
    rmtree(join(ftpdir, 'perso'))
  File "/usr/lib/python2.7/shutil.py", line 239, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 237, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/home/p/pnom/.ftp/perso'
None
[Errno 2] No such file or directory: '/home/p/pnom/.ftp/perso'

Un patch est en attachement.

patch.txt View (751 Bytes) Vincent Febvre, 04/21/2016 10:29 AM

Associated revisions

Revision bc6b4d78 (diff)
Added by Klaas TJEBBES over 3 years ago

scribe/login.py : correction de la gestion de "perso" dans gen_ftpdir REF #15953 @1h

Revision c6ddc174 (diff)
Added by Klaas TJEBBES over 3 years ago

scribe/login.py : correction de la gestion de "perso" dans gen_ftpdir (correction traceback si "perso" existe) REF #15953 @1h

Revision 8fbfcdd0 (diff)
Added by Klaas TJEBBES over 3 years ago

Revert "scribe/login.py : correction de la gestion de "perso" dans gen_ftpdir (correction traceback si "perso" existe) REF #15953 @1h"

This reverts commit c6ddc1742522a88d91716dcbe536196075d44caf.

Revision edcf51e9 (diff)
Added by Klaas TJEBBES over 3 years ago

scribe/login.py : correction de la gestion de "perso" dans gen_ftpdir (correction traceback si "perso" existe) REF #15953 @1h

Revision adb1a89d (diff)
Added by Joël Cuissinat over 3 years ago

tests unitaires supplémentaires sur dyn-logon

Ref: #15953 @20m

History

#1 Updated by Scrum Master over 3 years ago

  • Tracker changed from Demande to Tâche
  • Estimated time set to 2.00 h
  • Parent task set to #16058
  • Remaining (hours) set to 2.0

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

À Corriger sur 2.5.1 et supérieur

#3 Updated by Scrum Master over 3 years ago

  • Status changed from Nouveau to En cours

#4 Updated by Scrum Master over 3 years ago

  • Assigned To set to Klaas TJEBBES

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

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#6 Updated by Scrum Master over 3 years ago

  • Status changed from En cours to Résolu

#7 Updated by Lionel Morin over 3 years ago

  • Remaining (hours) changed from 0.25 to 0.0

#8 Updated by Lionel Morin over 3 years ago

  • Status changed from Résolu to Fermé

test effectué :
- déploiement d'un etb1 2.5.2 (amon, scribe avec import, pc-eleve10.1 joint au domaine)
- sur le scribe, "rm /home/c/c31e1/.ftp/perso"
- sur le pc eleve, connexion avec le compte c31e1
- le lien symbolique /home/c/c31e1/.ftp/perso est récréé

Also available in: Atom PDF