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 8F727D67C for ; Tue, 16 Oct 2012 21:01:03 +0000 (UTC) Received: (qmail 98250 invoked by uid 500); 16 Oct 2012 21:01:03 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 98210 invoked by uid 500); 16 Oct 2012 21:01:03 -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 98198 invoked by uid 99); 16 Oct 2012 21:01:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 21:01:03 +0000 Date: Tue, 16 Oct 2012 21:01:02 +0000 (UTC) From: "edison su (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: <161515123.53414.1350421263197.JavaMail.jiratomcat@arcas> In-Reply-To: <74080913.53069.1350416463645.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CLOUDSTACK-361) Wrong creation of guest networks on a KVM host in Multiple Physical Networks with guest traffic MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-361?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] edison su updated CLOUDSTACK-361: --------------------------------- Fix Version/s: (was: pre-4.0.0) 4.1.0 =20 > Wrong creation of guest networks on a KVM host in Multiple Physical Netwo= rks with guest traffic > -------------------------------------------------------------------------= ---------------------- > > Key: CLOUDSTACK-361 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-361 > Project: CloudStack > Issue Type: Bug > Components: Management Server > Affects Versions: pre-4.0.0 > Reporter: Chandan Purushothama > Assignee: Marcus Sorensen > Fix For: 4.1.0 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Steps to Reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Deploy an Advanced Zone Setup with Two Physical Networks and Ubuntu 12= .04 KVM Host. > 2. Physical Network 1 carries management, storage, guest and public Traff= ic while Physical Network 2 carries guest traffic only. > 3. On Physical Network 1, provide the KVM Labels for all the traffic type= s such that they refer to the asfbr0 (bridge on KVM Host) while on Physical= Network 2, provide the KVM Labels for the guest traffic type such that the= y refer to the asfbr1 (bridge on KVM Host) > 4. Create the corresponding bridges on the Ubuntu 12.04 KVM Host which ha= s two physical nics. > bridge name bridge id STP enabled interfaces > asfbr0 8000.bc305bd41c36 no eth0 > asfbr1 8000.bc305bd41c37 no eth1 > 5. Add the host to the Setup. > 6. Create tags to the guest traffics of the physical networks=20 > 7. Create Two Network Offerings with the corresponding tags given for the= guest traffics. > 8. Create two networks using the two network offerings and deploy a VM on= it. > 9. Observe the KVM host bridges information and notice the wrong creation= of the guest networks. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Observations: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > **Note that the Management Server mentioned that the VLAN be created on a= sfbr1 bridge to which eth1 is plugged into** > "nics":[{"deviceId":0,"networkRateMbps":453,"defaultNic":true,"uuid":"b1c= 3f1bf-e34d-46b4-8ad6-00080325b7ce","ip":"10.1.1.117","netmask":"255.255.255= .0","gateway":"10.1.1.1","mac":"02:00:60:aa:00:05","dns1":"72.52.126.11","d= ns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"v= lan://2491","isolationUri":"vlan://2491","isSecurityGroupEnabled":false,"na= me":"asfbr1"} > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > StartCommand Log: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 2012-10-16 11:30:36,165 DEBUG [agent.transport.Request] (Job-Executor-1:j= ob-66) Seq 6-431292454: Sending { Cmd , MgmtId: 206915885077153, via: 6, V= er: v1, Flags: 100111, [{"StartCommand":{"vm":{"id":21,"name":"i-3-21-ASFUB= UADV","type":"User","cpus":1,"speed":100,"minRam":134217728,"maxRam":134217= 728,"arch":"x86_64","os":"CentOS 5.5 (64-bit)","bootArgs":"","rebootOnCrash= ":false,"enableHA":false,"limitCpuUse":false,"vncPassword":"ee4db38ca18cd8a= b","params":{},"uuid":"fd4b8415-1e72-4d2e-8748-3371dd2dad28","disks":[{"id"= :23,"name":"/export/home/chandan/ubuntusecondoss/primarykvm","mountPoint":"= e4ff54c1-7cda-4d72-a290-2b16beb710b9","path":"e4ff54c1-7cda-4d72-a290-2b16b= eb710b9","size":8589934592,"type":"ROOT","storagePoolType":"NetworkFilesyst= em","storagePoolUuid":"7ffe5b81-047d-3fbf-93b8-2afcb480f8af","deviceId":0},= {"id":21,"name":"CentOS 5.5(64-bit) no GUI (KVM)","size":0,"type":"ISO","st= oragePoolType":"ISO","deviceId":3}],"nics":[{"deviceId":0,"networkRateMbps"= :453,"defaultNic":true,"uuid":"b1c3f1bf-e34d-46b4-8ad6-00080325b7ce","ip":"= 10.1.1.117","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:60:= aa:00:05","dns1":"72.52.126.11","dns2":"72.52.126.12","broadcastType":"Vlan= ","type":"Guest","broadcastUri":"vlan://2491","isolationUri":"vlan://2491",= "isSecurityGroupEnabled":false,"name":"asfbr1"},{"deviceId":1,"networkRateM= bps":563,"defaultNic":false,"uuid":"c20964d8-1b13-4738-816d-6fb58e180413","= ip":"10.1.1.174","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:0= 0:62:ee:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12","broadcastType":= "Vlan","type":"Guest","broadcastUri":"vlan://2494","isolationUri":"vlan://2= 494","isSecurityGroupEnabled":false,"name":"asfbr1"},{"deviceId":2,"network= RateMbps":458,"defaultNic":false,"uuid":"fcdf0a0a-e7d8-47fc-b6fe-0ac7439a5d= 55","ip":"10.1.1.186","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":= "02:00:7b:ac:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12","broadcastT= ype":"Vlan","type":"Guest","broadcastUri":"vlan://2488","isolationUri":"vla= n://2488","isSecurityGroupEnabled":false,"name":"asfbr0"},{"deviceId":3,"ne= tworkRateMbps":458,"defaultNic":false,"uuid":"940a312b-425b-4042-b201-ab152= 566a049","ip":"10.1.1.11","netmask":"255.255.255.0","gateway":"10.1.1.1","m= ac":"02:00:19:69:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12","broadc= astType":"Vlan","type":"Guest","broadcastUri":"vlan://2483","isolationUri":= "vlan://2483","isSecurityGroupEnabled":false,"name":"asfbr0"},{"deviceId":4= ,"networkRateMbps":458,"defaultNic":false,"uuid":"42280c6a-2bd8-426c-b69c-5= 1230d42a535","ip":"10.1.1.114","netmask":"255.255.255.0","gateway":"10.1.1.= 1","mac":"02:00:1e:b4:00:05","dns1":"72.52.126.11","dns2":"72.52.126.12","b= roadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2484","isolation= Uri":"vlan://2484","isSecurityGroupEnabled":false,"name":"asfbr0"},{"device= Id":5,"networkRateMbps":458,"defaultNic":false,"uuid":"1f35235f-9649-43bd-b= b38-87353522b91e","ip":"10.1.1.74","netmask":"255.255.255.0","gateway":"10.= 1.1.1","mac":"02:00:70:7a:00:06","dns1":"72.52.126.11","dns2":"72.52.126.12= ","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2482","isola= tionUri":"vlan://2482","isSecurityGroupEnabled":false,"name":"asfbr0"},{"de= viceId":6,"networkRateMbps":458,"defaultNic":false,"uuid":"f54892fe-1631-46= 80-b6df-e2444518c93a","ip":"10.1.1.240","netmask":"255.255.255.0","gateway"= :"10.1.1.1","mac":"02:00:4c:c7:00:06","dns1":"72.52.126.11","dns2":"72.52.1= 26.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2489","= isolationUri":"vlan://2489","isSecurityGroupEnabled":false,"name":"asfbr0"}= ,{"deviceId":7,"networkRateMbps":458,"defaultNic":false,"uuid":"e7a9aa8b-f9= 80-4116-be72-7dc29a3308e9","ip":"10.1.1.22","netmask":"255.255.255.0","gate= way":"10.1.1.1","mac":"02:00:58:c9:00:06","dns1":"72.52.126.11","dns2":"72.= 52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://248= 6","isolationUri":"vlan://2486","isSecurityGroupEnabled":false,"name":"asfb= r0"},{"deviceId":8,"networkRateMbps":458,"defaultNic":false,"uuid":"cad1787= 7-d442-4391-841d-e181d0e006f0","ip":"10.1.1.168","netmask":"255.255.255.0",= "gateway":"10.1.1.1","mac":"02:00:66:9b:00:06","dns1":"72.52.126.11","dns2"= :"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan:= //2481","isolationUri":"vlan://2481","isSecurityGroupEnabled":false,"name":= "asfbr0"},{"deviceId":9,"networkRateMbps":458,"defaultNic":false,"uuid":"b4= 758bcd-bf27-481a-9562-e07a3b7b77b2","ip":"10.1.1.247","netmask":"255.255.25= 5.0","gateway":"10.1.1.1","mac":"02:00:11:30:00:06","dns1":"72.52.126.11","= dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"= vlan://2485","isolationUri":"vlan://2485","isSecurityGroupEnabled":false,"n= ame":"asfbr0"},{"deviceId":10,"networkRateMbps":458,"defaultNic":false,"uui= d":"e62bf6bd-1b3a-4a71-9ea9-95e35a3aca13","ip":"10.1.1.135","netmask":"255.= 255.255.0","gateway":"10.1.1.1","mac":"02:00:2b:e4:00:06","dns1":"72.52.126= .11","dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcast= Uri":"vlan://2490","isolationUri":"vlan://2490","isSecurityGroupEnabled":fa= lse,"name":"asfbr0"},{"deviceId":11,"networkRateMbps":458,"defaultNic":fals= e,"uuid":"b681aa7b-1ccf-440d-b080-8d5a2e05553d","ip":"10.1.1.239","netmask"= :"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2f:18:00:07","dns1":"72.= 52.126.11","dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","bro= adcastUri":"vlan://2487","isolationUri":"vlan://2487","isSecurityGroupEnabl= ed":false,"name":"asfbr0"}]},"wait":0}}] } > 2012-10-16 11:30:39,296 DEBUG [agent.transport.Request] (AgentManager-Han= dler-1:null) Seq 6-431292454: Processing: { Ans: , MgmtId: 206915885077153= , via: 6, Ver: v1, Flags: 110, [{"StartAnswer":{"vm":{"id":21,"name":"i-3-2= 1-ASFUBUADV","type":"User","cpus":1,"speed":100,"minRam":134217728,"maxRam"= :134217728,"arch":"x86_64","os":"CentOS 5.5 (64-bit)","bootArgs":"","reboot= OnCrash":false,"enableHA":false,"limitCpuUse":false,"vncPassword":"ee4db38c= a18cd8ab","params":{},"uuid":"fd4b8415-1e72-4d2e-8748-3371dd2dad28","disks"= :[{"id":23,"name":"/export/home/chandan/ubuntusecondoss/primarykvm","mountP= oint":"e4ff54c1-7cda-4d72-a290-2b16beb710b9","path":"e4ff54c1-7cda-4d72-a29= 0-2b16beb710b9","size":8589934592,"type":"ROOT","storagePoolType":"NetworkF= ilesystem","storagePoolUuid":"7ffe5b81-047d-3fbf-93b8-2afcb480f8af","device= Id":0},{"id":21,"name":"CentOS 5.5(64-bit) no GUI (KVM)","size":0,"type":"I= SO","storagePoolType":"ISO","deviceId":3}],"nics":[{"deviceId":0,"networkRa= teMbps":453,"defaultNic":true,"uuid":"b1c3f1bf-e34d-46b4-8ad6-00080325b7ce"= ,"ip":"10.1.1.117","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02= :00:60:aa:00:05","dns1":"72.52.126.11","dns2":"72.52.126.12","broadcastType= ":"Vlan","type":"Guest","broadcastUri":"vlan://2491","isolationUri":"vlan:/= /2491","isSecurityGroupEnabled":false,"name":"asfbr1"},{"deviceId":1,"netwo= rkRateMbps":563,"defaultNic":false,"uuid":"c20964d8-1b13-4738-816d-6fb58e18= 0413","ip":"10.1.1.174","netmask":"255.255.255.0","gateway":"10.1.1.1","mac= ":"02:00:62:ee:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12","broadcas= tType":"Vlan","type":"Guest","broadcastUri":"vlan://2494","isolationUri":"v= lan://2494","isSecurityGroupEnabled":false,"name":"asfbr1"},{"deviceId":2,"= networkRateMbps":458,"defaultNic":false,"uuid":"fcdf0a0a-e7d8-47fc-b6fe-0ac= 7439a5d55","ip":"10.1.1.186","netmask":"255.255.255.0","gateway":"10.1.1.1"= ,"mac":"02:00:7b:ac:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12","bro= adcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2488","isolationUr= i":"vlan://2488","isSecurityGroupEnabled":false,"name":"asfbr0"},{"deviceId= ":3,"networkRateMbps":458,"defaultNic":false,"uuid":"940a312b-425b-4042-b20= 1-ab152566a049","ip":"10.1.1.11","netmask":"255.255.255.0","gateway":"10.1.= 1.1","mac":"02:00:19:69:00:04","dns1":"72.52.126.11","dns2":"72.52.126.12",= "broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2483","isolati= onUri":"vlan://2483","isSecurityGroupEnabled":false,"name":"asfbr0"},{"devi= ceId":4,"networkRateMbps":458,"defaultNic":false,"uuid":"42280c6a-2bd8-426c= -b69c-51230d42a535","ip":"10.1.1.114","netmask":"255.255.255.0","gateway":"= 10.1.1.1","mac":"02:00:1e:b4:00:05","dns1":"72.52.126.11","dns2":"72.52.126= .12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2484","is= olationUri":"vlan://2484","isSecurityGroupEnabled":false,"name":"asfbr0"},{= "deviceId":5,"networkRateMbps":458,"defaultNic":false,"uuid":"1f35235f-9649= -43bd-bb38-87353522b91e","ip":"10.1.1.74","netmask":"255.255.255.0","gatewa= y":"10.1.1.1","mac":"02:00:70:7a:00:06","dns1":"72.52.126.11","dns2":"72.52= .126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2482"= ,"isolationUri":"vlan://2482","isSecurityGroupEnabled":false,"name":"asfbr0= "},{"deviceId":6,"networkRateMbps":458,"defaultNic":false,"uuid":"f54892fe-= 1631-4680-b6df-e2444518c93a","ip":"10.1.1.240","netmask":"255.255.255.0","g= ateway":"10.1.1.1","mac":"02:00:4c:c7:00:06","dns1":"72.52.126.11","dns2":"= 72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://= 2489","isolationUri":"vlan://2489","isSecurityGroupEnabled":false,"name":"a= sfbr0"},{"deviceId":7,"networkRateMbps":458,"defaultNic":false,"uuid":"e7a9= aa8b-f980-4116-be72-7dc29a3308e9","ip":"10.1.1.22","netmask":"255.255.255.0= ","gateway":"10.1.1.1","mac":"02:00:58:c9:00:06","dns1":"72.52.126.11","dns= 2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri":"vla= n://2486","isolationUri":"vlan://2486","isSecurityGroupEnabled":false,"name= ":"asfbr0"},{"deviceId":8,"networkRateMbps":458,"defaultNic":false,"uuid":"= cad17877-d442-4391-841d-e181d0e006f0","ip":"10.1.1.168","netmask":"255.255.= 255.0","gateway":"10.1.1.1","mac":"02:00:66:9b:00:06","dns1":"72.52.126.11"= ,"dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcastUri"= :"vlan://2481","isolationUri":"vlan://2481","isSecurityGroupEnabled":false,= "name":"asfbr0"},{"deviceId":9,"networkRateMbps":458,"defaultNic":false,"uu= id":"b4758bcd-bf27-481a-9562-e07a3b7b77b2","ip":"10.1.1.247","netmask":"255= .255.255.0","gateway":"10.1.1.1","mac":"02:00:11:30:00:06","dns1":"72.52.12= 6.11","dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","broadcas= tUri":"vlan://2485","isolationUri":"vlan://2485","isSecurityGroupEnabled":f= alse,"name":"asfbr0"},{"deviceId":10,"networkRateMbps":458,"defaultNic":fal= se,"uuid":"e62bf6bd-1b3a-4a71-9ea9-95e35a3aca13","ip":"10.1.1.135","netmask= ":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2b:e4:00:06","dns1":"72= .52.126.11","dns2":"72.52.126.12","broadcastType":"Vlan","type":"Guest","br= oadcastUri":"vlan://2490","isolationUri":"vlan://2490","isSecurityGroupEnab= led":false,"name":"asfbr0"},{"deviceId":11,"networkRateMbps":458,"defaultNi= c":false,"uuid":"b681aa7b-1ccf-440d-b080-8d5a2e05553d","ip":"10.1.1.239","n= etmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2f:18:00:07","dns= 1":"72.52.126.11","dns2":"72.52.126.12","broadcastType":"Vlan","type":"Gues= t","broadcastUri":"vlan://2487","isolationUri":"vlan://2487","isSecurityGro= upEnabled":false,"name":"asfbr0"}]},"result":true,"wait":0}}] } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > On the KVM Host: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Observe that VLAN 2491,2494 should be created on eth1 but got created on = eth0 instead. > root@Rack3Host17:~# brctl show > bridge name bridge id STP enabled interfaces > asfbr0 8000.bc305bd41c36 no eth0 > asfbr1 8000.bc305bd41c37 no eth1 > cloud0 8000.000000000000 no > cloudVirBr2481 8000.bc305bd41c36 no eth0.2481 > vnet20 > vnet8 > cloudVirBr2482 8000.bc305bd41c36 no eth0.2482 > vnet17 > vnet5 > cloudVirBr2483 8000.bc305bd41c36 no eth0.2483 > vnet15 > vnet3 > cloudVirBr2484 8000.bc305bd41c36 no eth0.2484 > vnet16 > vnet4 > cloudVirBr2485 8000.bc305bd41c36 no eth0.2485 > vnet21 > vnet9 > cloudVirBr2486 8000.bc305bd41c36 no eth0.2486 > vnet19 > vnet7 > cloudVirBr2487 8000.bc305bd41c36 no eth0.2487 > vnet11 > vnet23 > cloudVirBr2488 8000.bc305bd41c36 no eth0.2488 > vnet14 > vnet2 > cloudVirBr2489 8000.bc305bd41c36 no eth0.2489 > vnet18 > vnet6 > cloudVirBr2490 8000.bc305bd41c36 no eth0.2490 > vnet10 > vnet22 > cloudVirBr2491 8000.bc305bd41c36 no eth0.2491 > vnet0 > vnet12 > cloudVirBr2494 8000.bc305bd41c36 no eth0.2494 > vnet1 > vnet13 > virbr0 8000.000000000000 yes > root@Rack3Host17:~# > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Build Information: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > This is the version information for the manifests in the JAR files. > Implementation_Version: 2.2.20121012230921 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira