[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kishan Kavala resolved CLOUDSTACK-5315.
---------------------------------------

    Resolution: Not A Problem

createvpngateway api does no send any commands to the router, so the vpn 
gateway creation does not fail. It only creates a DB entry.
createVpnConnection API sends the commands to router.

> CreateVPNGateway command doesnt fails on vpc non upgraded router
> ----------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5315
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5315
>             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
>         Environment: Upgraded from 3.0.7 to 4.3
>            Reporter: shweta agarwal
>            Assignee: Kishan Kavala
>            Priority: Blocker
>             Fix For: 4.3.0
>
>
> Repro steps:
> 1. On 3.0.7 setup create a VPC network 
> 2. upgrade to 4.3
> 3. Create a vpn on vpc network when router is not upgraded
> Bug:
> VPN creation command will succed
> Expection :
> Vpn creation command should fail sating router needs upgrade:
> MS log shows :
> 2013-11-29 16:57:35,944 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-7:ctx-e06f6a65) ===START===  10.146.0.132 -- GET  
> command=createVpnGateway&response=json&sessionkey=CNU%2FUxmL5sTxIFWo8PSATnLucYk%3D&vpcid=19dae370-c4db-469d-9328-4966a90f2c09&_=1385724476092
> 2013-11-29 16:57:36,076 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (catalina-exec-7:ctx-e06f6a65 ctx-b3e8ae89) submit async job-154, details: 
> AsyncJobVO {id:154, userId: 2, accountId: 2, instanceType: None, instanceId: 
> null, cmd: org.apache.cloudstack.api.command.user.vpn.CreateVpnGatewayCmd, 
> cmdInfo: 
> {"response":"json","sessionkey":"CNU/UxmL5sTxIFWo8PSATnLucYk\u003d","cmdEventType":"VPN.S2S.VPN.GATEWAY.CREATE","ctxUserId":"2","httpmethod":"GET","_":"1385724476092","ctxAccountId":"2","vpcid":"19dae370-c4db-469d-9328-4966a90f2c09","ctxStartEventId":"542"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 233845177509765, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2013-11-29 16:57:36,077 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
> (Job-Executor-52:ctx-4148336d) Add job-154 into job monitoring
> 2013-11-29 16:57:36,077 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-52:ctx-4148336d) Executing AsyncJobVO {id:154, userId: 2, 
> accountId: 2, instanceType: None, instanceId: null, cmd: 
> org.apache.cloudstack.api.command.user.vpn.CreateVpnGatewayCmd, cmdInfo: 
> {"response":"json","sessionkey":"CNU/UxmL5sTxIFWo8PSATnLucYk\u003d","cmdEventType":"VPN.S2S.VPN.GATEWAY.CREATE","ctxUserId":"2","httpmethod":"GET","_":"1385724476092","ctxAccountId":"2","vpcid":"19dae370-c4db-469d-9328-4966a90f2c09","ctxStartEventId":"542"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 233845177509765, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2013-11-29 16:57:36,077 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-7:ctx-e06f6a65 ctx-b3e8ae89) ===END===  10.146.0.132 -- GET  
> command=createVpnGateway&response=json&sessionkey=CNU%2FUxmL5sTxIFWo8PSATnLucYk%3D&vpcid=19dae370-c4db-469d-9328-4966a90f2c09&_=1385724476092
> 2013-11-29 16:57:36,223 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-52:ctx-4148336d ctx-b3e8ae89) Complete async job-154, 
> jobStatus: SUCCEEDED, resultCode: 0, result: 
> org.apache.cloudstack.api.response.Site2SiteVpnGatewayResponse/vpngateway/{"id":"0dc9ad1e-7d33-429a-98e1-8c31e436ea58","publicip":"10.147.51.26","vpcid":"19dae370-c4db-469d-9328-4966a90f2c09","account":"admin","domainid":"1","domain":"ROOT"}
> 2013-11-29 16:57:36,284 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-52:ctx-4148336d) Done executing 
> org.apache.cloudstack.api.command.user.vpn.CreateVpnGatewayCmd for job-154
> 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.4#6159)

Reply via email to