Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4F83102E4 for ; Tue, 24 Dec 2013 13:35:07 +0000 (UTC) Received: (qmail 54122 invoked by uid 500); 24 Dec 2013 13:34:56 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 54100 invoked by uid 500); 24 Dec 2013 13:34:54 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 54089 invoked by uid 500); 24 Dec 2013 13:34:53 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 54081 invoked by uid 99); 24 Dec 2013 13:34:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Dec 2013 13:34:52 +0000 Date: Tue, 24 Dec 2013 13:34:52 +0000 (UTC) From: "sadhu suresh (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-5300) applying VPN users fails but notifications says success MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-5300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sadhu suresh closed CLOUDSTACK-5300. ------------------------------------ verifed this issue on upgarde env. before upgrade router try to create a vpn user and it show proper error messgae ) and it fail to add user . once upgrade the router its able to add vpn user. so closing this issue. > applying VPN users 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.5#6160)