incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sadhu suresh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-198) vpn:failto add VPN Users deletes all the existing Vpn user
Date Tue, 25 Sep 2012 14:28:09 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462779#comment-13462779
] 

sadhu suresh commented on CLOUDSTACK-198:
-----------------------------------------

Content of log:
****************
it looks like it trying to add vpnuser every time if we perform vpnuser add and when router
is stopped and performs addvpn and it triggers addvpn with passed new user inaddition to existing
users

management IP:10.147.29.102(root/password)


# grep -i "job-32"  /var/log/cloud/management/management-server.log
2012-09-25 15:54:42,694 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-17:null) submit
async job-32, details: AsyncJobVO {id:32, userId: 2, accountId: 2, sessionKey: null, instanceType:
None, instanceId: 15, cmd: com.cloud.api.commands.AddVpnUserCmd, cmdOriginator: null, cmdInfo:
{"id":"15","response":"json","sessionkey":"l5piKyeBbXPQUMBxJkXESs1e+js\u003d","username":"lll","ctxUserId":"2","account":"vpn","domainid":"33c0536e-dba3-4214-9371-18466ef290de","_":"1348568833161","ctxAccountId":"2","ctxStartEventId":"373","password":"password"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 345052566032, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
2012-09-25 15:54:42,700 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-15:job-32) Executing
com.cloud.api.commands.AddVpnUserCmd for job-32
2012-09-25 15:54:42,705 DEBUG [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Applying vpn users for Acct[6-vpn]
2012-09-25 15:54:42,711 DEBUG [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Applying vpn access to VirtualRouter
2012-09-25 15:54:42,715 WARN  [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-15:job-32)
Failed to add/remove VPN users: router not in running state
2012-09-25 15:54:42,721 WARN  [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Unable to apply vpn users
2012-09-25 15:54:42,721 DEBUG [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Applying vpn access to VpcVirtualRouter
2012-09-25 15:54:42,723 DEBUG [network.element.VirtualRouterElement] (Job-Executor-15:job-32)
Element VpcVirtualRouter doesn't handle applyVpnUsers command
2012-09-25 15:54:42,725 WARN  [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Failed to apply vpn for user lll, accountId=6
2012-09-25 15:54:42,728 WARN  [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Failed to apply vpn for user user1, accountId=6
2012-09-25 15:54:42,731 WARN  [network.vpn.RemoteAccessVpnManagerImpl] (Job-Executor-15:job-32)
Failed to apply vpn for user vvv, accountId=6
2012-09-25 15:54:42,731 WARN  [cloud.api.ApiDispatcher] (Job-Executor-15:job-32) class com.cloud.api.ServerApiException
: Failed to add vpn user
2012-09-25 15:54:42,732 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-15:job-32) Complete
async job-32, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to
add vpn user
2012-09-25 15:54:45,762 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-20:null) Async
job-32 completed

                
> vpn:failto add VPN Users deletes all the existing Vpn user
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-198
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-198
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Network Controller
>    Affects Versions: pre-4.0.0
>            Reporter: sadhu suresh
>            Priority: Critical
>         Attachments: management-server.rar
>
>
> Steps:
> ***********
> 1.deploy the advance zone with hypervisor as xen
> 2.create an account
> 3.deployvm
> 4.enable vpn on sourNat Ip
> 5.create Vpn users
> 6.stop the router
> 7.try to add VPN users when router is in stopped state
> actual results:
> ************
> AddVPN user failed because router is stopped state  and at same time it deletes all the
existing vpn-users
> After doing step5:
> mysql> select * from vpn_users;
> +----+--------------------------------------+----------+-----------+----------+----------------------------------+--------+
> | id | uuid                                 | owner_id | domain_id | username | password
                        | state  |
> +----+--------------------------------------+----------+-----------+----------+----------------------------------+--------+
> |  2 | f1da3e04-46d5-45fa-9559-60e5b18b0aa1 |        2 |         1 | baby     | RXLxcW3THxLgSr4Go0vmbw==
        | Active |
> |  4 | 2ba2b4a6-6bea-4ba4-a563-62aa70079de5 |        2 |         1 | bbb      | awMqD1GshW9TyHL4nOah2Q==
        | Active |
> |  5 | 56be8320-a691-4076-bf27-067a97499cbb |        2 |         1 | ccc      | w+pjT7ECcenr0bdQNU8jHQ==
        | Active |
> |  6 | 96d18f7a-2a02-42f2-b97b-87e6d57462d5 |        2 |         1 | vvv      | /POkwYhduO9HG2oXrb41WQ==
        | Active |
> |  7 | 3b618fda-a4c5-4aca-8e9e-230d15ecdfc9 |        2 |         1 | mmm      | rROFGjq9dIu6je1Xs/ZwxA==
        | Active |
> |  8 | 08d62111-9391-4e33-be92-dd3d90a4464b |        2 |         1 | lll      | j3Gl7dAKCW/BYY9lAYFWYA==
        | Active |
> |  9 | cf72b697-dee7-4176-88d1-028fd8a135a0 |        2 |         1 | kkk      | HAh1zND5p6lZlgA2Qp73JQ==
        | Active |
> | 10 | 6c563eb8-eacb-4c09-9a54-5288e3590152 |        2 |         1 | hhh      | eHRo0vybs/sdzai9dzbKlw==
        | Active |
> | 13 | 24c9add6-bd0c-451c-8233-9f91439f53c0 |        6 |         1 | vvv      | qVan9OdiixBZCP4NQTcz3WJCyTucvaWL
| Active |
> | 14 | 633bcf15-3a69-4337-8652-e77cbe71ea8f |        6 |         1 | user1    | Xbf7exMn0ZIFD26/c4UQn3lHljtjTrdn
| Active |
> +----+--------------------------------------+----------+-----------+----------+----------------------------------+--------+
> 10 rows in set (0.00 sec)
> After doing Step7:
> mysql> select * from vpn_users;
> +----+--------------------------------------+----------+-----------+----------+--------------------------+--------+
> | id | uuid                                 | owner_id | domain_id | username | password
                | state  |
> +----+--------------------------------------+----------+-----------+----------+--------------------------+--------+
> |  2 | f1da3e04-46d5-45fa-9559-60e5b18b0aa1 |        2 |         1 | baby     | RXLxcW3THxLgSr4Go0vmbw==
| Active |
> |  4 | 2ba2b4a6-6bea-4ba4-a563-62aa70079de5 |        2 |         1 | bbb      | awMqD1GshW9TyHL4nOah2Q==
| Active |
> |  5 | 56be8320-a691-4076-bf27-067a97499cbb |        2 |         1 | ccc      | w+pjT7ECcenr0bdQNU8jHQ==
| Active |
> |  6 | 96d18f7a-2a02-42f2-b97b-87e6d57462d5 |        2 |         1 | vvv      | /POkwYhduO9HG2oXrb41WQ==
| Active |
> |  7 | 3b618fda-a4c5-4aca-8e9e-230d15ecdfc9 |        2 |         1 | mmm      | rROFGjq9dIu6je1Xs/ZwxA==
| Active |
> |  8 | 08d62111-9391-4e33-be92-dd3d90a4464b |        2 |         1 | lll      | j3Gl7dAKCW/BYY9lAYFWYA==
| Active |
> |  9 | cf72b697-dee7-4176-88d1-028fd8a135a0 |        2 |         1 | kkk      | HAh1zND5p6lZlgA2Qp73JQ==
| Active |
> | 10 | 6c563eb8-eacb-4c09-9a54-5288e3590152 |        2 |         1 | hhh      | eHRo0vybs/sdzai9dzbKlw==
| Active |
> -------------------------+--------+
> 8 rows in set (0.00 sec)
> Expected result:
> *********************
> It should not delete the existing vpn_users when add vpn_user operation failed.
> Git Revision: 2a5e5b2e62a9f35d674f016e02abc1da77b95745
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message