Scénario #29187
Si on active WPAD pour une zone DHCP sans le mettre en global le serveur DHCP ne démarre pas
100%
Description
Sur le serveur "etb1.scribe-2.7.1.1-instance-AvecImport" si je fais :
# CreoleSet --default global_domain_wpad_dhcp
Le serveur dhcp ne démarre pas.
oct. 23 09:24:08 scribe sh[5665]: No subnet declaration for addc_0 (no IPv4 addresses). oct. 23 09:24:08 scribe sh[5665]: ** Ignoring requests on addc_0. If this is not what oct. 23 09:24:08 scribe sh[5665]: you want, please write a subnet declaration oct. 23 09:24:08 scribe sh[5665]: in your dhcpd.conf file for the network segment oct. 23 09:24:08 scribe sh[5665]: to which interface addc_0 is attached. ** oct. 23 09:24:08 scribe sh[5665]: No subnet declaration for br0 (192.0.2.1). oct. 23 09:24:08 scribe sh[5665]: ** Ignoring requests on br0. If this is not what oct. 23 09:24:08 scribe sh[5665]: you want, please write a subnet declaration oct. 23 09:24:08 scribe dhcpd[5665]: No subnet declaration for addc_0 (no IPv4 addresses). oct. 23 09:24:08 scribe sh[5665]: in your dhcpd.conf file for the network segment oct. 23 09:24:08 scribe sh[5665]: to which interface br0 is attached. ** oct. 23 09:24:08 scribe dhcpd[5665]: ** Ignoring requests on addc_0. If this is not what oct. 23 09:24:08 scribe dhcpd[5665]: you want, please write a subnet declaration oct. 23 09:24:08 scribe dhcpd[5665]: in your dhcpd.conf file for the network segment oct. 23 09:24:08 scribe dhcpd[5665]: to which interface addc_0 is attached. ** oct. 23 09:24:08 scribe dhcpd[5665]: oct. 23 09:24:08 scribe dhcpd[5665]: oct. 23 09:24:08 scribe dhcpd[5665]: No subnet declaration for br0 (192.0.2.1). oct. 23 09:24:08 scribe dhcpd[5665]: ** Ignoring requests on br0. If this is not what oct. 23 09:24:08 scribe dhcpd[5665]: you want, please write a subnet declaration oct. 23 09:24:08 scribe dhcpd[5665]: in your dhcpd.conf file for the network segment oct. 23 09:24:08 scribe dhcpd[5665]: to which interface br0 is attached. **
De manière plus global je ne comprends pas bien la configuration DHCP sur cette machine :
root@scribe:~# CreoleGet --list|grep wpad domain_wpad_dhcp="etb1.lan etb1.lan" global_domain_wpad_dhcp="etb1.lan"
Pourquoi mettre en global la même configuration que pour un subnet DHCP ?
À faire¶
- EOLE >= 2.7.0
- Ajouter un test de non régression (test unitaire ou squash)
Subtasks
Related issues
History
#1 Updated by Joël Cuissinat about 3 years ago
- Parent task set to #29284
#2 Updated by Joël Cuissinat about 3 years ago
<gnunux> en fait le dico est ok <gnunux> la conf d'EOLE est bizarre <gnunux> mais il y un bug ... <gnunux> si on ne met pas la config de wpad en global ca plante <gnunux> (le DHCP ne démarre pas)
#3 Updated by Joël Cuissinat about 3 years ago
- Parent task changed from #29284 to #29336
#4 Updated by Joël Cuissinat about 3 years ago
- Parent task deleted (
#29336)
#5 Updated by Joël Cuissinat about 3 years ago
- Tracker changed from Tâche to Demande
- Target version deleted (
sprint 2019 51-03 Equipe MENSR)
#6 Updated by Joël Cuissinat almost 2 years ago
- Tracker changed from Demande to Scénario
- Due date set to 04/23/2021
- Target version set to Prestation Cadoles MEN 2021 14-16
- Release set to EOLE 2.7.0
- Story points set to 1.0
#7 Updated by Emmanuel GARETTE almost 2 years ago
- Assigned To set to Emmanuel GARETTE
#8 Updated by Emmanuel GARETTE almost 2 years ago
Voici la configuration qui fait planter :
root@scribe:~# CreoleGet --list|grep wpad domain_wpad_dhcp="etb1.lan etb1.lan" global_domain_wpad_dhcp=""
Dans ce cas, il manque la ligne :
option wpad-url code 252 = text;
#9 Updated by Joël Cuissinat almost 2 years ago
- Description updated (diff)
#10 Updated by Joël Cuissinat almost 2 years ago
- Related to Bac à idée #32034: Le projet eole-dhcp contient des tests unitaires EAD3 qui ne sont ni packagés ni joués added
#11 Updated by Emmanuel GARETTE almost 2 years ago
Tester sur le client linux¶
J'ai fait mes tests avec le client linux pour vérifier ce qu'il récupère.
Pour cela j'ai fait :
Ajouter à la fin de /etc/dhcp/dhclient.conf :
option wpad code 252 = text; also request wpad;
Créer le fichier /etc/dhcp/dhclient-exit-hooks.d/wpad :
#!/bin/bash echo $new_wpad > /tmp/wpad.txt
Relancer une requête DHCP :
dhclient -x; dhclient -v
Vous devriez avoir l'URL dans /tmp/wpad.txt
#12 Updated by Emmanuel GARETTE almost 2 years ago
- Status changed from Nouveau to Résolu
#13 Updated by Joël Cuissinat almost 2 years ago
- Related to Tâche #32072: Valider le scénario Si on active WPAD pour une zone DHCP sans le mettre en global le serveur DHCP ne démarre pas added
#14 Updated by Daniel Dehennin almost 2 years ago
Pour tester, j’ai fait :
root@scribe:~# CreoleSet --default global_domain_wpad_dhcp root@scribe:~# CreoleSet domain_wpad_dhcp "etb1.lan etb1.lan" root@scribe:~# CreoleGet --list|grep wpad domain_wpad_dhcp="etb1.lan etb1.lan" global_domain_wpad_dhcp="" root@scribe:~# reconfigure
J’obtiens ça sur le poste client en appliquant #29187#note-11 :
root@pcubuntumate:~# cat /tmp/wpad.txt http://wpad.etb1.lan/wpad.dat
#15 Updated by Daniel Dehennin almost 2 years ago
Je n’ai pas trouvé de test de non régression.
#16 Updated by Daniel Dehennin almost 2 years ago
- Status changed from Résolu to En cours
#17 Updated by Emmanuel GARETTE almost 2 years ago
- Status changed from En cours to Résolu
#18 Updated by Daniel Dehennin almost 2 years ago
- Status changed from Résolu to Terminé (Sprint)