Tâche #7121
Scénario #9379: Consolidation CREOLE
Plantage CreoleLint sur calc_multi_condition
Status:
Ne sera pas résolu
Priority:
Normal
Assigned To:
Target version:
Remaining (hours):
0.0
Description
\-- /usr/share/eole/creole/distrib/piwik-envoleTrackeur.js.php ('/usr/share/eole/creole/distrib/piwik-envoleTrackeur.js.php', ':', Exception('Il manque une option', NotFound(u"cannot find 'serveur_stats_acad'",), 'avec le dictionnaire', {'libelle_etab': u'value', 'activer_stats_acad': u'oui', 'serveur_stats_nat': u'https://statenvole.ac-creteil.fr/piwik', 'stats_distantes': u'non', 'numero_etab': u'value', 'activer_apache': u'oui', 'web_url': u'value.lan', 'activer_piwik': u'oui', 'activer_stats_nat': 'non'}))
Pourtant dans 51_piwik.xml, on a :
<auto name='calc_multi_condition' target='stats_distantes'> <param>non</param> <param type='eole' name='condition_1'>activer_stats_acad</param> <param type='eole' name='condition_2'>activer_stats_nat</param> <param name='match'>non</param> <param name='mismatch'>oui</param> </auto>
Related issues
History
#1 Updated by Joël Cuissinat about 9 years ago
- Description updated (diff)
#2 Updated by Fabrice Barconnière about 9 years ago
idem sur un Sphynx:
CreoleLint -t corosync.conf Template Non valide (valid_parse_tmpl:ERROR:error) \-- /usr/share/eole/creole/distrib/corosync.conf ('/usr/share/eole/creole/distrib/corosync.conf', ':', Exception(('/usr/share/eole/creole/distrib/corosync.conf', ':', Exception('Il y a une erreur', AttributeError('option:', 'adresse_network_eth2', ':', RequirementError("option 'interface_2' has requirement's property error: creole.general.nombre_interfaces ['hidden']",)), 'avec le dictionnaire', {'corosync_mcastport': u'5405', 'corosync_dial_if': 'eth2', 'corosync_mcastaddr': u'226.94.1.1', 'nombre_interfaces': u'2', 'activer_haute_dispo': u'maitre'})),))
#3 Updated by Emmanuel GARETTE about 9 years ago
Le problème de corosync n'a rien a voir.
Dans corosync il est possible de renseigner "corosync_dial_if" à eth2 alors qu'on à que 2 interfaces (eth1 et eth2) dans ce cas le template ne se fera pas.
Il s'agit d'un vrai problème de template (qu'il n'est pas facile de corriger).
#4 Updated by Fabrice Barconnière about 9 years ago
Effectivement, avec cette modification dans corosync.conf :
%if %%activer_haute_dispo != 'non' %set %%corosync_dial_if_num=%%corosync_dial_if[-1] %if %%int(%%corosync_dial_if_num) < %%int(%%nombre_interfaces) bindnetaddr: %%getVar('adresse_network_' + %%corosync_dial_if) %else bindnetaddr: %%getVar('adresse_network_eth' + %%str(%%int(%%int(%%nombre_interfaces)-1))) %end if %else bindnetaddr:127.0.0.1 %end if
Creolint est OK :
CreoleLint -t corosync.conf Template Non valide (valid_parse_tmpl:ERROR:error) \-- /usr/share/eole/creole/distrib/corosync.conf
#5 Updated by Luc Bourdot over 8 years ago
- Parent task set to #9379
#6 Updated by Joël Cuissinat over 8 years ago
- Status changed from A étudier to Nouveau
- Remaining (hours) set to 0.75
#7 Updated by Joël Cuissinat over 8 years ago
- Assigned To deleted (
Emmanuel GARETTE)
#8 Updated by Emmanuel GARETTE over 8 years ago
- Status changed from Nouveau to En cours
- Start date set to 10/28/2014
#9 Updated by Emmanuel GARETTE over 8 years ago
- Due date set to 11/07/2014
- Status changed from En cours to Ne sera pas résolu
- Assigned To set to Emmanuel GARETTE
- Remaining (hours) changed from 0.75 to 0.0
Je ne reproduis pas :
root@amon:~# CreoleLint -t /usr/share/eole/creole/distrib/piwik-envoleTrackeur.js.php Template Non valide (valid_parse_tmpl:ERROR:error) \-- /usr/share/eole/creole/distrib/piwik-envoleTrackeur.js.php