You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "shweta agarwal (JIRA)" <ji...@apache.org> on 2013/12/02 10:05:35 UTC

[jira] [Created] (CLOUDSTACK-5326) Create private gateway command doesnt fails on non upgraded vpc router

shweta agarwal created CLOUDSTACK-5326:
------------------------------------------

             Summary: Create private gateway command doesnt fails on non upgraded  vpc router
                 Key: CLOUDSTACK-5326
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5326
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Upgrade, Virtual Router
    Affects Versions: 4.3.0
            Reporter: shweta agarwal
            Priority: Critical
             Fix For: 4.3.0


epro steps:
1. On 3.0.7 setup create a VPC network
2. upgrade to 4.3
3.CreatePrivateGateway on vpc network when router is not upgraded

Bug:
CreatePrivateGatewayCmd command will succeed

Exception :
CreatePrivateGatewayCmd command should fail sating router needs upgrade:
MS log shows : 
: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":35,"_loadInfo":"{\n  \"connections\": []\n}","wait":0}}] }
2013-12-02 14:24:38,447 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-13:null) SeqA 7-43654: Sending Seq 7-43654:  { Ans: , MgmtId: 233845177509765, via: 7, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-12-02 14:24:42,434 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-51f64ba2) ===START===  10.146.0.132 -- GET  command=createPrivateGateway&sourcenatsupported=true&response=json&sessionkey=ddX%2Ft0njp20uMoPQpDyeHCV%2F4ns%3D&physicalnetworkid=8b22e636-7774-44cb-b670-63f75c2fd157&vpcid=a53580fe-719d-4113-b7f8-2b5819e60efd&ipaddress=10.147.51.99&gateway=10.147.51.1&netmask=255.255.255.0&vlan=51&aclid=05f7d01e-5809-11e3-b771-1db63afd4974&_=1385974543623
2013-12-02 14:24:42,463 DEBUG [c.c.n.v.VpcManagerImpl] (catalina-exec-17:ctx-51f64ba2 ctx-f2edd8ff) Creating Private gateway for VPC [VPC [4-vpc4]
2013-12-02 14:24:42,463 INFO  [c.c.n.v.VpcManagerImpl] (catalina-exec-17:ctx-51f64ba2 ctx-f2edd8ff) creating new network for vpc [VPC [4-vpc4] using broadcast uri: 51
2013-12-02 14:24:42,474 DEBUG [c.c.u.d.T.Transaction] (catalina-exec-17:ctx-51f64ba2 ctx-f2edd8ff) Rolling back the transaction: Time = 10 Name =  catalina-exec-17; called by -TransactionLegacy.rollback:896-TransactionLegacy.removeUpTo:839-TransactionLegacy.close:663-Transaction.execute:41-NetworkServiceImpl.createPrivateNetwork:3924-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:57-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:622-AopUtils.invokeJoinpointUsingReflection:317-ReflectiveMethodInvocation.invokeJoinpoint:183-ReflectiveMethodInvocation.proceed:150
2013-12-02 14:24:42,565 INFO  [c.c.a.ApiServer] (catalina-exec-17:ctx-51f64ba2 ctx-f2edd8ff) Network with vlan vlan://51 already exists in zone 1
2013-12-02 14:24:42,566 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-51f64ba2 ctx-f2edd8ff) ===END===  10.146.0.132 -- GET  command=createPrivateGateway&sourcenatsupported=true&response=json&sessionkey=ddX%2Ft0njp20uMoPQpDyeHCV%2F4ns%3D&physicalnetworkid=8b22e636-7774-44cb-b670-63f75c2fd157&vpcid=a53580fe-719d-4113-b7f8-2b5819e60efd&ipaddress=10.147.51.99&gateway=10.147.51.1&netmask=255.255.25

DB shows vpc id router not upgraded


"id" "element_id" "public_mac_address" "public_ip_address" "public_netmask" "guest_netmask" "guest_ip_address" "is_redundant_router" "priority" "is_priority_bumpup" "redundant_state" "stop_pending" "role" "template_version" "scripts_version" "vpc_id"
"11" "2" "06:98:6e:00:00:2c" "10.147.51.13" "255.255.255.0" "" "" "0" "0" "0" "UNKNOWN" "0" "VIRTUAL_ROUTER" "Cloudstack Release 3.0 Mon Feb 6 15:10:04 PST 2012" "973c0565a2fe991f0903902588d4d52e" "1"
"12" "2" "06:8f:e4:00:00:39" "10.147.51.26" "255.255.255.0" "" "" "0" "0" "0" "UNKNOWN" "0" "VIRTUAL_ROUTER" "Cloudstack Release 3.0 Mon Feb 6 15:10:04 PST 2012" "973c0565a2fe991f0903902588d4d52e" "2"
"13" "2" "06:b0:ee:00:00:78" "10.147.51.89" "255.255.255.0" "" "" "0" "0" "0" "UNKNOWN" "0" "VIRTUAL_ROUTER" "Cloudstack Release 3.0 Mon Feb 6 15:10:04 PST 2012" "973c0565a2fe991f0903902588d4d52e" "3"
"14" "2" "06:85:fc:00:00:2b" "10.147.51.12" "255.255.255.0" "" "" "0" "0" "0" "UNKNOWN" "0" "VIRTUAL_ROUTER" "Cloudstack Release 3.0 Mon Feb 6 15:10:04 PST 2012" "973c0565a2fe991f0903902588d4d52e" "4" 






--
This message was sent by Atlassian JIRA
(v6.1#6144)