[Openstack] Kilo Devstack - DCHP is not assigning IPs to the VMs

Neil Jerram neil at tigera.io
Mon Jun 20 09:10:55 UTC 2016


I'm afraid I am stuck now.  I don't think you need a similar rule for the
other direction, for two reasons:

1. You have already seen (with tcpdump) that there are DHCP replies being
sent from Dnsmasq.  Therefore Dnsmasq must be receiving the DHCP requests.
2. The need for CHECKSUM filling is, I believe, a specific issue when
Dnsmasq sends on an interface that is (or is bridged to) a hypervisor-guest
VM TAP interface.  I believe the same issue does not affect the VM's
sending of the DHCP request.

Also, the fact that you can ping, after setting the IP manually inside the
VM instance, indicates that there is no problem in the data path between
your ping host and the VM.

Perhaps the DHCP reply is being dropped for some other reason, somewhere
along that data path?  But in an OVS-based setup I'm afraid I don't know
how to investigate that further.

   Neil


On Mon, Jun 20, 2016 at 9:45 AM Ahmed Medhat <a.medhat.h at gmail.com> wrote:

> i add it but it is not working also.
> May be This  iptables rule for traffic reaching the dhcp port but there
> should be one in the other direction and be dport 67 ?
>
> Best regards,
> Ahmed
>
> On Monday, June 20, 2016, Neil Jerram <neil at tigera.io> wrote:
>
>> In that case I guess you are somehow missing the iptables rule that fills
>> in the CHECKSUM properly on DHCP replies.  Is the problem fixed if you add
>> the following iptables rule in the DHCP namespace on the network node?
>>
>> iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM
>> --checksum-fill
>>
>>     Neil
>>
>>
>>
>>
>> On Mon, Jun 20, 2016 at 9:30 AM Ahmed Medhat <a.medhat.h at gmail.com>
>> wrote:
>>
>>> Hi Neil,
>>>
>>> Thanks for your reply.
>>>
>>> I have done tcpdump on dhcp port of the private network in Openstack and
>>> I saw the received dhcp request and replies. It seems tgat the replies are
>>> not received to the VM.
>>> I want to add tgat if I adjusted the ip manually inside the VM instance
>>> , it works fine and I can ping the dhcp ip 11.0.0.2 in my case.
>>>
>>> I hope this info shows you where could be the problem I have.
>>>
>>> Best regards,
>>> Ahmed
>>>
>>>
>>> On Monday, June 20, 2016, Neil Jerram <neil at tigera.io> wrote:
>>>
>>>> Hi Ahmed,
>>>>
>>>> Unfortunately there are many possible reasons - and different ones
>>>> depending on your setup.
>>>>
>>>> I will guess, though, that you're using a default OVS setup, without
>>>> DVR.  In that case DHCP should be provided by Dnsmasq running on your
>>>> network node, and I would start by checking for that process and looking at
>>>> its logs (which could be in /var/log/syslog, /var/log/messages, journalctl,
>>>> ...) to see if there is any sign of DHCP requests being received, and then
>>>> whether Dnsmasq sends any DHCP responses.
>>>>
>>>> Regards,
>>>>      Neil
>>>>
>>>>
>>>> On Sat, Jun 18, 2016 at 1:34 PM Ahmed Medhat <a.medhat.h at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have installed kilo devstack and have a problem with dhcp, it is not
>>>>> assigning IPs to the VMs.
>>>>> What are the reasons for that ?
>>>>>
>>>>> Best regards,
>>>>> Ahmed
>>>>> _______________________________________________
>>>>> Mailing list:
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>> Post to     : openstack at lists.openstack.org
>>>>> Unsubscribe :
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160620/524a6ad6/attachment.html>


More information about the Openstack mailing list