Project

General

Profile

Tâche #24462

Scénario #24122: Traitement express MEN (26-28)

Sur AmonEcole, si un répertoire est présent dans /etc/ssl/certs, le reconfigure échoue

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
07/12/2018
Due date:
% Done:

100%

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

Description

Cela peut arriver si on a l'idée d'installer du java sur le maître (exemple : apt-eole install guacamole-tomcat) mais la commande suivante suffit pour reproduire l'erreur :

root@amonecole:~# mkdir /etc/ssl/certs/toto
root@amonecole:~# reconfigure -d
   [ ... ]
Copie des certificats dans reseau                                                                                                                                                                                   
reconfigure - [Errno 21] Is a directory: '/etc/ssl/certs/toto'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 970, in main
    certificates()
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 746, in certificates
    copyDirectoryContent(src, dst)
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 176, in copyDirectoryContent
    shutil.copy2(os.path.join(src, fic), dst)
  File "/usr/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 21] Is a directory: '/etc/ssl/certs/toto'


Related issues

Copied from creole - Tâche #16856: [AmonEcole 2.5.2] Problème de certificats au premier reconfigure Ne sera pas résolu 08/03/2016

Associated revisions

Revision cc525d32 (diff)
Added by Joël Cuissinat over 4 years ago

Ignore directories in /etc/ssl/certs

Ref: #24462

History

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

  • Copied from Tâche #16856: [AmonEcole 2.5.2] Problème de certificats au premier reconfigure added

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

  • Status changed from Nouveau to Résolu
  • Start date set to 07/12/2018
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 0.0 to 0.25

Corrigé sur EOLE >= 2.6.2

#3 Updated by Daniel Dehennin over 4 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Une fois le paquet généré en 2.6.2 (2.6.2-87) cela fonctionne.

Also available in: Atom PDF