Project

General

Profile

Tâche #18877

Scénario #18876: Projet AD - tester la dernière version du paquet seth-ecologie - scripts d'imports et groupes autos

Projet AD - Vérifier le fonctionnement correct des groupes autos

Added by Emmanuel IHRY over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/23/2017
Due date:
% Done:

100%

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

History

#1 Updated by Emmanuel IHRY over 4 years ago

  • Estimated time set to 6.00 h
  • Remaining (hours) set to 6.0

#2 Updated by Michel BALLY over 4 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Michel BALLY over 4 years ago

  • % Done changed from 0 to 30

Le lancement de ce script est intégré dans gen_config
Une tache cron est ajoutée pour être lancée à l'intervalle fixé dans la conf
La définition des règles de "décryptage" des DN des comptes est également paramétrable et génère un fichier /etc/eole/extract-groups.conf
Le lancement du script plante

/usr/share/eole/sbin/manageGroups.py -c /etc/eole/extract-groups.conf 

Traceback (most recent call last):
  File "/usr/share/eole/sbin/manageGroups.py", line 588, in <module>
    conf.load()
  File "/usr/share/eole/sbin/manageGroups.py", line 56, in load
    data = load(infile)
  File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
    return loader.get_single_data()
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 111, in compose_sequence_node
    node.value.append(self.compose_node(node, index))
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
    "expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
  in "/etc/eole/extract-groups.conf", line 6, column 3
expected <block end>, but found ','
  in "/etc/eole/extract-groups.conf", line 8, column 13

sans doute

#4 Updated by Emmanuel IHRY over 4 years ago

  • Status changed from En cours to Fermé
  • % Done changed from 30 to 100
  • Remaining (hours) changed from 6.0 to 0.0

Also available in: Atom PDF