Project

General

Profile

Tâche #19485

Scénario #19358: Après importation, le fichier /etc/samba/conf.d/eole.conf doit contenir les partages

Lancer la synchronisation des partages à la fin de l'importation

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/05/2017
Due date:
% Done:

100%

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

Description

Si on déploie l'image "etb1.scribe-2.6.1b3-instance-AvecImport", on s'aperçoit que le fichier /etc/samba/conf.d/eole.conf ne contient pas les partages qui ont été créés lors de l'import.

Un appel à /usr/share/eole/sbin/synchro_file.py ou un reconfigure peuple bien le fichier.

Problème découvert grâce au test : SCRIBE-T04-004 - Intégration manuelle d'un poste au domaine (2.6.1-b3)

Associated revisions

Revision 8a830a89 (diff)
Added by Joël Cuissinat over 6 years ago

Synchronisation des partages en fin d'importation

  • scribe/importation/writer.py : ajout de la fonction de synchronisation
  • bin/importation_scribe : utilisation de la fonction dans l'import en ligne de commande
  • bin/synchro_aaf : utilisation de la fonction dans l'import de fichiers synchronisés depuis AAF

Ref: #19485

Revision b15dbf6a (diff)
Added by Joël Cuissinat over 6 years ago

Synchronisation des partages en fin d'importation EAD

Ref: #19485

History

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

  • Status changed from Nouveau to En cours

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

  • Description updated (diff)
  • Assigned To set to Joël Cuissinat

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

Scripts potentiellement intéressés par cette évolution :
  • Import en ligne de commande : /usr/bin/importation_scribe
  • Import de fichiers synchronisés depuis AAF : /usr/bin/synchro_aaf
  • Import depuis l'EAD : /usr/share/ead2/backend/bin/importation.py

Code (non optimisé) à exécuter :

from scribe.eoleshare import Share
share = Share()
share.synchronize(True) # ou false si on ne veut pas redémarrer samba

NB : visiblement, il n'est plus nécessaire de redémarrer le service pour que le partage soit pris en compte...

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

Pour tester un montage en ligne de commande (exemple) :

mkdir /tmp/toto
mount -t cifs //$(CreoleGet container_ip_fichier)/c32 /tmp/toto  -o username=admin,password=eole

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

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.5

#6 Updated by Scrum Master over 6 years ago

  • Status changed from En cours to Résolu

#7 Updated by Gérald Schwartzmann over 6 years ago

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

Après importation /etc/samba/conf.d/eole.conf contient :

[c32]
        inherit permissions = yes
        inherit acls = yes
        read only = no
        preserve case = yes
        create mask = 644
        directory mask = 755
        Write list = @c32
        Valid Users = @c32 @DomainAdmins
        path = /home/workgroups/c32
        comment = c32
        Volume = c32

[profs-c32]
        inherit permissions = yes
        inherit acls = yes
        read only = no
        preserve case = yes
        create mask = 644
        directory mask = 755
        Write list = @profs-c32
        Valid Users = @profs-c32 @DomainAdmins
        path = /home/workgroups/profs-c32
        comment = profs-c32
        Volume = profs-c32

Also available in: Atom PDF