Project

General

Profile

Anomalie #7403

valeurs de config.eol non prises en compte par creoled après création/modification du fichier

Added by Bruno Boiget over 10 years ago. Updated about 10 years ago.

Status:
Fermé
Priority:
Haut
Assigned To:
Category:
-
Start date:
02/13/2014
Due date:
02/21/2014
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

après enregistrement d'un scribe 2.4 mis à jour sur unstable sur Zéphir, et recopie du fichier descendu sur /etc.eole/config.eol, j'ai l'erreur suivante:

root@scribe:~# instance
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                 Début de configuration                                                                                  
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Creole error 3: Toutes les variables obligatoires ne sont pas renseignées, veuillez configurer votre système

si je lance gen_config, toutes les variables obligatoires semblent bien renseignées.

à la sauvegarde, le résumé m'indique un changement de 'owner' pour 3 variables ('zephir' -> 'genconfig'), mais sans changement de valeur.
la sauvegarde est validée dans genconfig, mais le contenu du fichier ne change pas.

- instance renvoie toujours la même erreur après avoir 'sauvegardé'
- une relance de creoled permet de résoudre le problème (oar contre le owner des variables en question n'a pas changé dans le fichier)
- si je relance instance (échoué à cause d'un problème d'appli web désactivée), le problème revient

Associated revisions

Revision 18af9266 (diff)
Added by Daniel Dehennin over 10 years ago

Corriger la validation des variables obligatoires

Les variables obligatoires désactivées étaient prises en compte.

  • creole/server.py (CreoleServer.reload_eol): Passage de la nouvelle
    configuration en lecture seule.
    (CreoleServer.valid_mandatory): Envoyer la liste des variables
    obligatoires au client.

Fixes: #7403 @30m

History

#1 Updated by Daniel Dehennin over 10 years ago

Pour reproduire:

root@eolebase:~# Maj-Auto -D
root@eolebase:~# invoke-rc.d creoled stop
root@eolebase:~# mv /etc/eole/config.eol /tmp
root@eolebase:~# invoke-rc.d creoled start
root@eolebase:~# mv /tmp/config.eol /etc/eole
root@eolebase:~# instance

Ça sort des logs creoled:

2014-02-13 15:40:45,446: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=mode_conteneur_actif HTTP/1.1" 200 32 "" "restkit/3.3.2" 
2014-02-13 15:40:45,461: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=ssl_default_key_bits HTTP/1.1" 200 31 "" "restkit/3.3.2" 
2014-02-13 15:40:45,462: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=ssl_default_cert_time HTTP/1.1" 200 31 "" "restkit/3.3.2" 
2014-02-13 15:40:45,465: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=eole_module HTTP/1.1" 200 37 "" "restkit/3.3.2" 
2014-02-13 15:40:45,467: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=mode_conteneur_actif HTTP/1.1" 200 32 "" "restkit/3.3.2" 
2014-02-13 15:40:45,519: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=eole_version HTTP/1.1" 200 32 "" "restkit/3.3.2" 
2014-02-13 15:40:45,520: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /get/creole?variable=module_instancie HTTP/1.1" 200 32 "" "restkit/3.3.2" 
2014-02-13 15:40:45,812: creoled -
['creole.general.proxy_client_adresse',
'creole.logs.adresses_ip_clients_logs_relp.adresses_ip_clients_logs_relp',
'creole.logs.adresses_ip_clients_logs_relp.netmask_client_logs_relp',
'creole.logs.adresses_ip_clients_logs_udp.adresses_ip_clients_logs_udp',
'creole.logs.adresses_ip_clients_logs_udp.netmask_client_logs_udp',
'creole.logs.adresses_ip_clients_logs_tcp.adresses_ip_clients_logs_tcp',
'creole.logs.adresses_ip_clients_logs_tcp.netmask_client_logs_tcp',
'creole.logs.adresse_ip_serveur_logs',
'creole.interface_0.pppoe_user', 'creole.interface_0.pppoe_passwd',
'creole.interface_0.ip_admin_eth0.ip_admin_eth0',
'creole.interface_0.ip_admin_eth0.netmask_admin_eth0',
'creole.interface_0.alias_ip_eth0.alias_ip_eth0',
'creole.interface_0.alias_ip_eth0.alias_netmask_eth0',
'creole.interface_0.vlan_id_eth0.vlan_id_eth0',
'creole.interface_0.vlan_id_eth0.vlan_ip_eth0',
'creole.interface_0.vlan_id_eth0.vlan_netmask_eth0',
'creole.interface_1.adresse_ip_eth1',
'creole.interface_1.ip_ssh_eth1.ip_ssh_eth1',
'creole.interface_1.ip_ssh_eth1.netmask_ssh_eth1',
'creole.interface_1.ip_admin_eth1.ip_admin_eth1',
'creole.interface_1.ip_admin_eth1.netmask_admin_eth1',
'creole.interface_1.alias_ip_eth1.alias_ip_eth1',
'creole.interface_1.alias_ip_eth1.alias_netmask_eth1',
'creole.interface_1.alias_ip_eth1.alias_network_eth1',
'creole.interface_1.alias_ip_eth1.alias_broadcast_eth1',
'creole.interface_1.vlan_id_eth1.vlan_id_eth1',
'creole.interface_1.vlan_id_eth1.vlan_ip_eth1',
'creole.interface_1.vlan_id_eth1.vlan_netmask_eth1',
'creole.interface_1.vlan_id_eth1.vlan_network_eth1',
'creole.interface_1.vlan_id_eth1.vlan_broadcast_eth1',
'creole.interface_2.adresse_ip_eth2',
'creole.interface_2.ip_ssh_eth2.ip_ssh_eth2',
'creole.interface_2.ip_ssh_eth2.netmask_ssh_eth2',
'creole.interface_2.ip_admin_eth2.ip_admin_eth2',
'creole.interface_2.ip_admin_eth2.netmask_admin_eth2',
'creole.interface_2.alias_ip_eth2.alias_ip_eth2',
'creole.interface_2.alias_ip_eth2.alias_netmask_eth2',
'creole.interface_2.alias_ip_eth2.alias_network_eth2',
'creole.interface_2.alias_ip_eth2.alias_broadcast_eth2',
'creole.interface_2.vlan_id_eth2.vlan_id_eth2',
'creole.interface_2.vlan_id_eth2.vlan_ip_eth2',
'creole.interface_2.vlan_id_eth2.vlan_netmask_eth2',
'creole.interface_2.vlan_id_eth2.vlan_network_eth2',
'creole.interface_2.vlan_id_eth2.vlan_broadcast_eth2',
'creole.interface_3.adresse_ip_eth3',
'creole.interface_3.ip_ssh_eth3.ip_ssh_eth3',
'creole.interface_3.ip_ssh_eth3.netmask_ssh_eth3',
'creole.interface_3.ip_admin_eth3.ip_admin_eth3',
'creole.interface_3.ip_admin_eth3.netmask_admin_eth3',
'creole.interface_3.alias_ip_eth3.alias_ip_eth3',
'creole.interface_3.alias_ip_eth3.alias_netmask_eth3',
'creole.interface_3.alias_ip_eth3.alias_network_eth3',
'creole.interface_3.alias_ip_eth3.alias_broadcast_eth3',
'creole.interface_3.vlan_id_eth3.vlan_id_eth3',
'creole.interface_3.vlan_id_eth3.vlan_ip_eth3',
'creole.interface_3.vlan_id_eth3.vlan_netmask_eth3',
'creole.interface_3.vlan_id_eth3.vlan_network_eth3',
'creole.interface_3.vlan_id_eth3.vlan_broadcast_eth3',
'creole.interface_4.adresse_ip_eth4',
'creole.interface_4.ip_ssh_eth4.ip_ssh_eth4',
'creole.interface_4.ip_ssh_eth4.netmask_ssh_eth4',
'creole.interface_4.ip_admin_eth4.ip_admin_eth4',
'creole.interface_4.ip_admin_eth4.netmask_admin_eth4',
'creole.interface_4.alias_ip_eth4.alias_ip_eth4',
'creole.interface_4.alias_ip_eth4.alias_netmask_eth4',
'creole.interface_4.alias_ip_eth4.alias_network_eth4',
'creole.interface_4.alias_ip_eth4.alias_broadcast_eth4',
'creole.interface_4.vlan_id_eth4.vlan_id_eth4',
'creole.interface_4.vlan_id_eth4.vlan_ip_eth4',
'creole.interface_4.vlan_id_eth4.vlan_netmask_eth4',
'creole.interface_4.vlan_id_eth4.vlan_network_eth4',
'creole.interface_4.vlan_id_eth4.vlan_broadcast_eth4',
'creole.reseau_avance.adresse_ip_hosts.adresse_ip_hosts',
'creole.reseau_avance.adresse_ip_hosts.nom_long_hosts',
'creole.reseau_avance.route_adresse.route_adresse',
'creole.reseau_avance.route_adresse.route_netmask',
'creole.reseau_avance.route_adresse.route_gw',
'creole.reseau_avance.route_adresse.route_int',
'creole.onduleur.nut_monitor_foreign_name',
'creole.onduleur.nut_monitor_foreign_host',
'creole.onduleur.nut_monitor_foreign_user',
'creole.onduleur.nut_monitor_foreign_password',
'creole.onduleur.nut_ups_name.nut_ups_name',
'creole.onduleur.nut_ups_name.nut_ups_port',
'containers.service_restrictions.service_restriction4.netmask',
'containers.service_restrictions.service_restriction5.netmask',
'containers.service_restrictions.service_restriction6.netmask',
'containers.service_restrictions.service_restriction7.netmask',
'containers.service_restrictions.service_restriction8.netmask',
'containers.service_restrictions.service_restriction9.netmask',
'containers.service_restrictions.service_restriction10.netmask',
'containers.service_restrictions.service_restriction11.netmask',
'containers.service_restrictions.service_restriction12.netmask',
'containers.service_restrictions.service_restriction13.netmask',
'containers.service_restrictions.service_restriction14.netmask',
'containers.service_restrictions.service_restriction15.netmask',
'containers.service_restrictions.service_restriction16.netmask',
'containers.service_restrictions.service_restriction17.netmask']
2014-02-13 15:40:45,813: cherrypy.access.23184336 - 127.0.0.1 - - [13/Feb/2014:15:40:45] "GET /valid_mandatory HTTP/1.1" 200 131 "" "restkit/3.3.2" 

#2 Updated by Daniel Dehennin over 10 years ago

  • Due date set to 02/21/2014
  • Assigned To set to Daniel Dehennin
  • Priority changed from Normal to Haut
  • Start date set to 02/13/2014

#3 Updated by Daniel Dehennin over 10 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat about 10 years ago

  • Status changed from Résolu to Fermé

Pas de problème en utilisant la suite suivante :

root@scribe:~# invoke-rc.d creoled stop
 * Stopping Creole daemon creoled         [ OK ] 
root@scribe:~# mv /etc/eole/config.eol /tmp
root@scribe:~# invoke-rc.d creoled start
 * Starting Creole daemon creoled         [ OK ] 
root@scribe:~# mv /tmp/config.eol /etc/eole
root@scribe:~# reconfigure

Also available in: Atom PDF