cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Weber <terbol...@gmail.com>
Subject Re: [VR] Usage of /etc/dhcpopts.txt
Date Wed, 06 May 2015 08:34:56 GMT
On Wed, May 6, 2015 at 10:26 AM, Erik Weber <terbolous@gmail.com> wrote:

> On Wed, May 6, 2015 at 10:20 AM, Erik Weber <terbolous@gmail.com> wrote:
>
>> I'm troubleshooting an issue where the guest vms does not receive default
>> gateway nor dns servers.
>>
>> And it seems to be due to the following lines in /etc/dhcpopts.txt:
>> 10_125_2_150,3
>> 10_125_2_150,6
>>
>> Does anyone know why we insert those lines, and/or where it comes from?
>>
>>
>
> I also see these two lines in the log:
> messages:May  6 07:25:38 r-158-VM cloud: /opt/cloud/bin/edithosts.sh:
> unset default router for 10.125.2.150
> messages:May  6 07:25:38 r-158-VM cloud: /opt/cloud/bin/edithosts.sh:
> unset dns server for 10.125.2.150
>
> which seems to come from
> https://github.com/apache/cloudstack/blob/aae393dcd5bb5d96267ada1f6ed142b63a39f685/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh#L196
>
> But why do we do this? seems like a wicked thing to do, to unset default
> router and dns server..?
>
>
I like answering myself today, but I believe I solved it.

What I came to think about is that I did some NIC shuffling on this VM.

Here's how to (hopefully) reproduce:

1) Create a VM on Network 1
2) Add a NIC on Network 2
3) Set Network 2 as default
4) Remove Network 1


If you reproduced it, then the dhcpopts on the VR for Network 2 will have
occurences to not send default gateway and dns for the VM.

Not sending default gateway and dns servers for additional NICs make sense,
but it's a bug that it isn't cleaned up/fixed when set as default NIC.


I'll file a bug later if I don't hear anything that should point in the
direction that I'm doing something wrong.

-- 
Erik

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message