Project

General

Profile

Tâche #15817

Scénario #15859: Corriger les derniers problèmes CreoleLint et Creole sur EOLE 2.6

Pb CreoleLint sur le template corosync.conf pour hautedispo

Added by Fabrice Barconnière over 5 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/26/2015
Due date:
% Done:

100%

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

Description

root@sphynx:/usr/share/tiramisu/tests# 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('Il y a une erreur', ConfigError("impossible d'effectuer le calcul, l'option adresse_ip_eth2 a les propri\xc3\xa9t\xc3\xa9s : ['mandatory'] pour : adresse_network_eth2",), 'avec le dictionnaire', {'corosync_mcastport': u'5405', 'corosync_dial_if': u'2', 'corosync_mcastaddr': u'226.94.1.1', 'activer_haute_dispo': u'maitre', 'nombre_interfaces': u'3'}))

Associated revisions

Revision 32d829b2 (diff)
Added by Emmanuel GARETTE over 5 years ago

CreoleLint : une variable peut etre marqué obligatoire alors que c'est une variable utilisée dans un calcul qui l'est (ref #15817 @1h)

Revision 531bfb55 (diff)
Added by Emmanuel GARETTE over 5 years ago

ne pas passer la config en 'read_write' (ref #15817)

Revision 8d68c050 (diff)
Added by Emmanuel GARETTE over 5 years ago

problème de propriété sur une variable utilisé via getVar (ref #15817 @1h)

Revision 2b5ed1f7 (diff)
Added by Emmanuel GARETTE over 5 years ago

les variables obligatoires dans un calcul font une ConfigError et non un AttributeError (ref #15817)

History

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

  • Parent task changed from #15610 to #15859

#2 Updated by Emmanuel GARETTE over 5 years ago

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

#3 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE

#4 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from En cours to Résolu

#5 Updated by Fabrice Barconnière over 5 years ago

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

Tout semble OK :

root@ubuntu:~# CreoleLint -t corosync.conf

Template Non valide (valid_parse_tmpl:ERROR:error)
 \-- /usr/share/eole/creole/distrib/corosync.conf
root@ubuntu:~# CreoleLint

DTD Non valide (valid_dtd:ERROR:error)

Lint wrong_dicos_name désactivé (niveau info)

Libellé de variable non valide dans un dictionnaire (valid_var_label:NAME:warning)
 \-- %%corosync_restricted_int : phrase sans majuscule

Libellé de séparateur non valide dans un dictionnaire (valid_separator_label:NAME:warning)
 \-- %%activer_exim_relay_smtp : Relai => relai

Variable d'activation sans balise d'aide (activation_var_without_help:NAME:warning)
 \-- activer_log_distant
 \-- activer_reception_logs_relp
 \-- activer_envoi_logs
 \-- activer_reception_logs_tcp
 \-- activer_firewall
 \-- activer_reception_logs_udp
 \-- activer_reception_logs
 \-- activer_antispoofing

Famille sans balise d'aide (family_without_help:NAME:warning)
 \-- containers
 \-- logs
 \-- interface_0
 \-- interface_1
 \-- interface_2
 \-- interface_3
 \-- interface_4
 \-- reseau_avance
 \-- certificats_ssl
 \-- eole_sso
 \-- clamav
 \-- arv
 \-- quagga

Famille sans icône spécifique (family_without_icon:NAME:warning)
 \-- eole_sso
 \-- clamav
 \-- arv
 \-- vpn_pki
 \-- quagga

Template Non valide (valid_parse_tmpl:ERROR:error)
 \-- template desactivé : /usr/share/eole/creole/distrib/zstats.cfg
 \-- /usr/share/eole/creole/distrib/ca-eole.conf
 \-- /usr/share/eole/creole/distrib/0000usepeerdns
pas de templating !
 \-- /usr/share/eole/creole/distrib/rsyslog.conf
 \-- /usr/share/eole/creole/distrib/10-console-messages.conf
 \-- /usr/share/eole/creole/distrib/upsmon.conf
 \-- /usr/share/eole/creole/distrib/haute_dispo.logrotate
 \-- /usr/share/eole/creole/distrib/rsyslog_default_dispatching.conf
 \-- /usr/share/eole/creole/distrib/nut.conf
 \-- /usr/share/eole/creole/distrib/eolerc.sh
 \-- /usr/share/eole/creole/distrib/ntpdate
 \-- /usr/share/eole/creole/distrib/40-icmp_static_rules
pas de templating !
 \-- /usr/share/eole/creole/distrib/pythonrc
 \-- /usr/share/eole/creole/distrib/ca-sphynx.conf
 \-- /usr/share/eole/creole/distrib/50-nat_rules
 \-- /usr/share/eole/creole/distrib/rsyslog.logrotate
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_haute-dispo.conf
 \-- /usr/share/eole/creole/distrib/ssh_config
 \-- /usr/share/eole/creole/distrib/zebra.conf
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_cron.conf
 \-- /usr/share/eole/creole/distrib/hostname
 \-- /usr/share/eole/creole/distrib/quagga-daemons
 \-- /usr/share/eole/creole/distrib/corosync
 \-- /usr/share/eole/creole/distrib/certif-eole.conf
 \-- /usr/share/eole/creole/distrib/rsyslog-request.tmpl
 \-- /usr/share/eole/creole/distrib/openssh-server
 \-- /usr/share/eole/creole/distrib/ntpd.apparmor.conf
 \-- /usr/share/eole/creole/distrib/rsyslog_templates.conf
 \-- /usr/share/eole/creole/distrib/10-help-text
 \-- /usr/share/eole/creole/distrib/DIR_COLORS
 \-- /usr/share/eole/creole/distrib/interfaces
 \-- /usr/share/eole/creole/distrib/02eoleapt
 \-- /usr/share/eole/creole/distrib/upsd.users
 \-- /usr/share/eole/creole/distrib/dsl-provider
pas de templating !
 \-- /usr/share/eole/creole/distrib/common-password
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_gpm.conf
 \-- /usr/share/eole/creole/distrib/ipsec_updown
 \-- fichier non présent dans un dictionnaire /usr/share/eole/creole/distrib/sources.list
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_rsyslog.conf
 \-- /usr/share/eole/creole/distrib/rsyslog_views_errors.conf
 \-- /usr/share/eole/creole/distrib/grub-eole.cfg
 \-- /usr/share/eole/creole/distrib/hosts
 \-- /usr/share/eole/creole/distrib/mailname
 \-- /usr/share/eole/creole/distrib/control-alt-delete.conf
 \-- /usr/share/eole/creole/distrib/rsyslog_aggregation.conf
 \-- /usr/share/eole/creole/distrib/rsyslog_views_auth.conf
 \-- /usr/share/eole/creole/distrib/persistent-net.cfg
 \-- /usr/share/eole/creole/distrib/rng-tools
 \-- /usr/share/eole/creole/distrib/ead.cfg
 \-- /usr/share/eole/creole/distrib/dhclient.conf
pas de templating !
 \-- /usr/share/eole/creole/distrib/ups.conf
 \-- /usr/share/eole/creole/distrib/ripd.conf
 \-- /usr/share/eole/creole/distrib/chap-secrets
pas de templating !
 \-- /usr/share/eole/creole/distrib/quagga.conf
 \-- /usr/share/eole/creole/distrib/timezone
 \-- fichier non présent dans un dictionnaire /usr/share/eole/creole/distrib/rsyslog.conf.container
 \-- /usr/share/eole/creole/distrib/eoleflask.conf
 \-- fichier non présent dans un dictionnaire /usr/share/eole/creole/distrib/ssmtp.conf
 \-- /usr/share/eole/creole/distrib/arv.conf
 \-- fichier non présent dans un dictionnaire /usr/share/eole/creole/distrib/00-container
 \-- /usr/share/eole/creole/distrib/certif-vpn.conf
 \-- /usr/share/eole/creole/distrib/ospfd.conf
 \-- /usr/share/eole/creole/distrib/60-Sphynx_rules
 \-- /usr/share/eole/creole/distrib/release
 \-- /usr/share/eole/creole/distrib/ntp.conf
 \-- /usr/share/eole/creole/distrib/upsd.conf
 \-- /usr/share/eole/creole/distrib/logrotate_global_options
 \-- /usr/share/eole/creole/distrib/pap-secrets
pas de templating !
 \-- /usr/share/eole/creole/distrib/revocation.conf
 \-- /usr/share/eole/creole/distrib/vimrc
 \-- /usr/share/eole/creole/distrib/10-chain_static_rules
 \-- /usr/share/eole/creole/distrib/test-rvp_more_ip
 \-- /usr/share/eole/creole/distrib/02eoleproxy
 \-- /usr/share/eole/creole/distrib/corosync.conf
 \-- /usr/share/eole/creole/distrib/blacklist-eole.conf
 \-- /usr/share/eole/creole/distrib/resolv.conf
 \-- /usr/share/eole/creole/distrib/ip_xfrm_policy
 \-- /usr/share/eole/creole/distrib/sshd_config
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_iptables.conf
 \-- fichier non présent dans un dictionnaire /usr/share/eole/creole/distrib/eole.cfg
 \-- /usr/share/eole/creole/distrib/rsyslog-ca.tmpl
 \-- /usr/share/eole/creole/distrib/charon-logging.conf
 \-- /usr/share/eole/creole/distrib/sudoers
 \-- /usr/share/eole/creole/distrib/bareos-mail.conf
pas de templating !
 \-- /usr/share/eole/creole/distrib/strongswan.conf
 \-- /usr/share/eole/creole/distrib/99-end_static_rules
 \-- /usr/share/eole/creole/distrib/sysctl.conf
 \-- /usr/share/eole/creole/distrib/00-header
 \-- /usr/share/eole/creole/distrib/starter.conf
 \-- /usr/share/eole/creole/distrib/container.lockfile
 \-- /usr/share/eole/creole/distrib/cron-schedule
 \-- /usr/share/eole/creole/distrib/issue
 \-- /usr/share/eole/creole/distrib/pacemaker
 \-- /usr/share/eole/creole/distrib/forteresse.sh
pas de templating !
 \-- /usr/share/eole/creole/distrib/hosts.deny
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_xmlrpc.conf
 \-- /usr/share/eole/creole/distrib/ouvre.firewall
 \-- /usr/share/eole/creole/distrib/charon.conf
 \-- /usr/share/eole/creole/distrib/static-routes
 \-- /usr/share/eole/creole/distrib/rsyslog_traps_zephir.conf
 \-- /usr/share/eole/creole/distrib/exim-vars.conf
 \-- /usr/share/eole/creole/distrib/hosts.allow
 \-- /usr/share/eole/creole/distrib/exim-rewrite.conf

Also available in: Atom PDF