Project

General

Profile

Tâche #15807

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

Le calcul de la variable vip_resource_if de Sphynx n'est pas validé par Tiramisu

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

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

100%

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

Description

root@sphynx:~# CreoleLint 

DTD Non valide (valid_dtd:ERROR:error)

Lint wrong_dicos_name désactivé (niveau info)
Traceback (most recent call last):
  File "/usr/bin/CreoleLint", line 60, in main
    validate(keyword, ansi, tmpl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1165, in validate
    ansi.process(cl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/ansiwriter.py", line 47, in process
    checks = linter.check()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1055, in check
    self.load_dics()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 165, in load_dics
    self._collect_vars_in_dicos()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 253, in _collect_vars_in_dicos
    for path in config.creole.make_dict():
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 505, in make_dict
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 525, in _make_sub_dict
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 505, in make_dict
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 525, in _make_sub_dict
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 505, in make_dict
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 516, in _make_sub_dict
    returns_raise=True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 315, in getattr
    index=index, returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 274, in _get_cached_value
    returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option/masterslave.py", line 136, in getitem
    session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option/masterslave.py", line 225, in _getslave
    returns_raise=True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 287, in _get_cached_value
    session=session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 324, in _get_validated_value
    with_meta, masterlen, session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 134, in _getvalue
    submulti_index, True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 69, in _getdefaultvalue
    returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/autolib.py", line 231, in carry_out_calculation
    "slave option ({0})").format(option.impl_getname()))
SlaveError: callback cannot return a list for a slave option (vip_resource_if)

History

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

  • Status changed from Nouveau to En cours

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

  • Assigned To set to Emmanuel GARETTE
  • Remaining (hours) changed from 1.0 to 0.1

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

  • Status changed from En cours to Nouveau

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

  • Remaining (hours) changed from 0.1 to 1.0

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

Malgré les modifs, on ne peut toujours pas enregistrer une config haute dispo sur gen_config de Sphynx.

2016-04-08 16:20:59,028: eolegenconfig - callback cannot return a list for a slave option (vip_resource_if)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/webapi.py", line 114, in tags
    return make_json_response(lib.get_tags(lib.get_id(), category_name))
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 650, in get_tags
    tag, variable = get_variable(id_, category_name, name, current_tag=old_tag)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 512, in get_variable
    force_permissive=force_permissive).__iter__(force_permissive=force_permissive) \
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 119, in __iter__
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 316, in getattr
    index=index, returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 274, in _get_cached_value
    returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option/masterslave.py", line 136, in getitem
    session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option/masterslave.py", line 225, in _getslave
    returns_raise=True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 287, in _get_cached_value
    session=session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 324, in _get_validated_value
    with_meta, masterlen, session)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 134, in _getvalue
    submulti_index, True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 69, in _getdefaultvalue
    returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/autolib.py", line 231, in carry_out_calculation
    #            ret = ret[index]
SlaveError: callback cannot return a list for a slave option (vip_resource_if)

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

  • Parent task changed from #15610 to #15859

#7 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#8 Updated by Emmanuel GARETTE over 5 years ago

  • Subject changed from CreoleLint plante sur la variable vip_resource_if de Sphynx to Le calcul de la variable vip_resource_if de Sphynx n'est pas validé par Tiramisu
  • Status changed from En cours to Nouveau
  • Assigned To deleted (Emmanuel GARETTE)

#9 Updated by Scrum Master over 5 years ago

  • Assigned To set to Fabrice Barconnière

#10 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

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

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

Tout semble OK :

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