shweta agarwal created CLOUDSTACK-5300:
------------------------------------------
Summary: applying VPN users to a non upgraded router fails but
notifications says success
Key: CLOUDSTACK-5300
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5300
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 with xen hypervisor
Reporter: shweta agarwal
Assignee: Kishan Kavala
Priority: Critical
Fix For: 4.3.0
1. On 3.0.7 setup created a isolated network and enabled VPN on it . Added
few VPN users as well
2. Upgraded to 4.3
3. After upgrade try to add some more user to the above created isolated network
BUG:
Even though MS logs shows adding vpn user failed but Notification shows VPN
user addition successful
MS log snippet :
2013-11-28 14:44:47,664 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-d7cdb2a9) Zone 1 is ready to launch console proxy
2013-11-28 14:44:48,056 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-91fb1aa6)
===START=== 10.146.0.132 -- POST
command=addVpnUser&response=json&sessionkey=Fd1Ti1xgC7YvYvuXpt2SRk%2FHzsw%3D
2013-11-28 14:44:48,413 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(catalina-exec-4:ctx-91fb1aa6 ctx-1e80eae7) submit async job-103, details:
AsyncJobVO {id:103, userId: 2, accountId: 2, instanceType: None, instanceId: 7,
cmd: org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd, cmdInfo:
{"id":"7","response":"json","sessionkey":"Fd1Ti1xgC7YvYvuXpt2SRk/Hzsw\u003d","username":"sweety","cmdEventType":"VPN.USER.ADD","ctxUserId":"2","account":"admin","httpmethod":"POST","domainid":"1","ctxAccountId":"2","ctxStartEventId":"377","password":"sweety"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 233845177509765, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null}
2013-11-28 14:44:48,414 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(Job-Executor-1:ctx-91491485) Add job-103 into job monitoring
2013-11-28 14:44:48,414 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-1:ctx-91491485) Executing AsyncJobVO {id:103, userId: 2,
accountId: 2, instanceType: None, instanceId: 7, cmd:
org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd, cmdInfo:
{"id":"7","response":"json","sessionkey":"Fd1Ti1xgC7YvYvuXpt2SRk/Hzsw\u003d","username":"sweety","cmdEventType":"VPN.USER.ADD","ctxUserId":"2","account":"admin","httpmethod":"POST","domainid":"1","ctxAccountId":"2","ctxStartEventId":"377","password":"sweety"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 233845177509765, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null}
2013-11-28 14:44:48,419 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-91fb1aa6
ctx-1e80eae7) ===END=== 10.146.0.132 -- POST
command=addVpnUser&response=json&sessionkey=Fd1Ti1xgC7YvYvuXpt2SRk%2FHzsw%3D
2013-11-28 14:44:48,430 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Applying vpn users for Acct[2-admin]
2013-11-28 14:44:48,545 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Applying vpn access to
VpcVirtualRouter
2013-11-28 14:44:48,546 WARN [c.c.n.v.RemoteAccessVpnManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Failed to apply vpn for user admin,
accountId=2
2013-11-28 14:44:48,546 WARN [c.c.n.v.RemoteAccessVpnManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Failed to apply vpn for user shweta,
accountId=2
2013-11-28 14:44:48,604 WARN [c.c.n.v.RemoteAccessVpnManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Failed to apply vpn for user sweety,
accountId=2
2013-11-28 14:44:48,607 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-1:ctx-91491485 ctx-1e80eae7) Complete async job-103, jobStatus:
SUCCEEDED, resultCode: 0, result:
org.apache.cloudstack.api.response.VpnUsersResponse/vpnuser/{"id":"22687091-7c63-4f63-96ce-88ac6278ec42","username":"sweety","account":"admin","domainid":"1","domain":"ROOT"}
2013-11-28 14:44:48,713 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-1:ctx-91491485) Done executing
org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd for job-103
Another concern is I added only VPN user sweety in this particular case but
from logs it shows failed to apply all the user even if the user was created
before upgrade
--
This message was sent by Atlassian JIRA
(v6.1#6144)