Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB9B8E28E for ; Tue, 12 Mar 2013 20:39:33 +0000 (UTC) Received: (qmail 6363 invoked by uid 500); 12 Mar 2013 20:39:33 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 6312 invoked by uid 500); 12 Mar 2013 20:39:33 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 6300 invoked by uid 99); 12 Mar 2013 20:39:33 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 20:39:33 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2B9B71C018A; Tue, 12 Mar 2013 20:39:33 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8926645296962425948==" MIME-Version: 1.0 Subject: Re: Review Request: fix /etc/hosts error in virtual router From: "Chip Childers" To: "Chip Childers" , "cloudstack" , "Wei Zhou" Date: Tue, 12 Mar 2013 20:39:33 -0000 Message-ID: <20130312203933.1180.76077@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Chip Childers" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/9882/ X-Sender: "Chip Childers" References: <20130312202510.1181.65946@reviews.apache.org> In-Reply-To: <20130312202510.1181.65946@reviews.apache.org> Reply-To: "Chip Childers" --===============8926645296962425948== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On March 12, 2013, 8:25 p.m., Chip Childers wrote: > > patches/systemvm/debian/config/root/edithosts.sh, line 92 > > > > > > I'm not familiar enough with the script to know why this fixes the = issue. Can you explain the fix please? > = > Wei Zhou wrote: > Chip, = > I add a space after $host, so that the last sentence (sed -i /"$hos= t "/d $HOSTS) will remove the line which includes "$host " (please notice = there is a space after $host). > Currently it can not remove it because no space after $host and no li= nes will match "$host ". Ah! Brittle scripts are fun. Thanks for explaining the fix. - Chip ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/9882/#review17749 ----------------------------------------------------------- On March 12, 2013, 7:33 p.m., Wei Zhou wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/9882/ > ----------------------------------------------------------- > = > (Updated March 12, 2013, 7:33 p.m.) > = > = > Review request for cloudstack. > = > = > Description > ------- > = > When create the instance with the name same to previous instances, the /e= tc/hosts in virtual router has an error. = > = > For example: > 192.168.0.1 r-148-VM > 192.168.0.1 r-148-VM > 192.168.0.99 test-w006-001 > 192.168.0.138 test-w006-002 > 192.168.0.37 test-w006-003 > 192.168.0.33 test-w006-004 > 192.168.0.1 r-148-VM > 192.168.0.235 test-w006-001 > 192.168.0.17 test-w006-002 > = > It should be: > 192.168.0.37 test-w006-003 = > 192.168.0.33 test-w006-004 = > 192.168.0.1 r-148-VM = > 192.168.0.235 test-w006-001 = > 192.168.0.17 test-w006-002 = > = > = > This addresses bug CLOUDSTACK-1652. > = > = > Diffs > ----- > = > patches/systemvm/debian/config/root/edithosts.sh 3c6102d = > = > Diff: https://reviews.apache.org/r/9882/diff/ > = > = > Testing > ------- > = > Testing manually ok. > = > = > Thanks, > = > Wei Zhou > = > --===============8926645296962425948==--