Re: Virtual Router: DHCP and 2-second DNS outages

2013-07-11 Thread Jayapal Reddy Uradi
cloudstack.apache.org> Subject: RE: Virtual Router: DHCP and 2-second DNS outages I changed the system to hup a while back. I was having the same problems. At that time I never ran into the leases problem, but recently I did have problem with it as well. The workaround I'm testing right now is to

Re: Virtual Router: DHCP and 2-second DNS outages

2013-07-04 Thread Jayapal Reddy Uradi
2 PM To: dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org> Subject: RE: Virtual Router: DHCP and 2-second DNS outages I changed the system to hup a while back. I was having the same problems. At that time I never ran into the leases problem, but recently I did have problem with it as well.

RE: Virtual Router: DHCP and 2-second DNS outages

2013-07-03 Thread Jayapal Reddy Uradi
t; > Dennis' solution looks a lot nicer. > > Cheers, > > Hugo > > > -Original Message- > > From: Marcus Sorensen [mailto:shadow...@gmail.com] > > Sent: Wednesday, May 01, 2013 10:51 PM > > To: dev@cloudstack.apache.org > > Subject: Re:

RE: Virtual Router: DHCP and 2-second DNS outages

2013-05-02 Thread Hugo Trippaers
Marcus Sorensen [mailto:shadow...@gmail.com] > Sent: Wednesday, May 01, 2013 10:51 PM > To: dev@cloudstack.apache.org > Subject: Re: Virtual Router: DHCP and 2-second DNS outages > > What is scripts/network/exdhcp/dnsmasq_edithosts.sh ? > > I noticed that master is already

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
What is scripts/network/exdhcp/dnsmasq_edithosts.sh ? I noticed that master is already patched to hup, but it's missing the dhcp_release that dennis just put in a review for. On Wed, May 1, 2013 at 1:43 PM, Marcus Sorensen wrote: > oops, minus my two 'echo' debugging lines in there > > > > On

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
oops, minus my two 'echo' debugging lines in there On Wed, May 1, 2013 at 1:41 PM, Marcus Sorensen wrote: > I'm not sure how we'd handle older versions if they don't have the > dhcp_release util, but how about this going forward? > > diff --git a/patches/systemvm/debian/config/root/edithosts.s

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
I'm not sure how we'd handle older versions if they don't have the dhcp_release util, but how about this going forward? diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh index 9f21f20..f6e09d6 100755 --- a/patches/systemvm/debian/confi

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Chip Childers
On Wed, May 01, 2013 at 12:29:32PM -0600, Marcus Sorensen wrote: > How do we go about requesting that dnsmasq-utils be installed on the new > system VM? The code to create system VMs is in the repo now. You should be able to just make the change and / or submit a patch suggesting the change. See

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Chiradeep Vittal
The set of packages installed is here: http://s.apache.org/0c. If you change it, it should get picked up in the next Jenkins build. HOWEVER, note that the VMWare systemvm build is not fully automated (and probably cannot be) On 5/1/13 11:29 AM, "Marcus Sorensen" wrote: >How do we go about requ

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Dennis Lawler
Something like this: --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -99,6 +99,10 @@ wait_for_dnsmasq () { logger -t cloud "edithosts: update $1 $2 $3 to hosts" +#release previous dhcp lease if present +dhcp_release eth0 $ip $(gre

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
How do we go about requesting that dnsmasq-utils be installed on the new system VM? On Wed, May 1, 2013 at 11:15 AM, Marcus Sorensen wrote: > I think on new system VM edithosts should preemptively expire lease for > the passed ip and then sighup. That avoids complications in having to put > in s

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
I think on new system VM edithosts should preemptively expire lease for the passed ip and then sighup. That avoids complications in having to put in separate calls to the router VM in each agent resource just to expire. On May 1, 2013 9:10 AM, "Dennis Lawler" wrote: > It does reconfigure the avai

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Marcus Sorensen
Ah. I think this is a pretty big issue, especially in VPC, people could miss getting an address if the router's service goes out. It may be the root cause of CLOUDSTACK-2110. We are looking into it. On May 1, 2013 9:10 AM, "Dennis Lawler" wrote: > It does reconfigure the available leases for new

Re: Virtual Router: DHCP and 2-second DNS outages

2013-05-01 Thread Dennis Lawler
It does reconfigure the available leases for new IP allocations. It just doesn't expire the leases it has already handed out. If you replace the "service dnsmasq restart" in edithosts.sh with "kill -s 1" on the router VM, you'll start seeing these log messages when a VM is destroyed and re-alloca

Re: Virtual Router: DHCP and 2-second DNS outages

2013-04-30 Thread Marcus Sorensen
that's strange, because the dnsmasq man page explicitly calls out the SIGHUP as a way to reconfigure DHCP hosts entries from a --dhcp-hostsfile parameter. Or are these not the same thing? On Tue, Apr 30, 2013 at 5:52 PM, Chiradeep Vittal < chiradeep.vit...@citrix.com> wrote: > > > On 4/30/13 3:2

Re: Virtual Router: DHCP and 2-second DNS outages

2013-04-30 Thread Chiradeep Vittal
On 4/30/13 3:26 PM, "Dennis Lawler" wrote: >Every time a new VM is started up, there is a 2 second outage in DNS >services that can cause problems in guest VMs that use the router VM for >DNS. > > > >For Cloudstack configurations using both DHCP and DNS services on the >router >VM (both implem