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

[jira] [Resolved] (CLOUDSTACK-5353) [Automation] listVpnUsers API returns null

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

Alena Prokharchyk resolved CLOUDSTACK-5353.
-------------------------------------------

    Resolution: Cannot Reproduce

Rayees, I can't reproduce the bug on the latest 4.3 build (dd3a511c66709646c38f8acf628fd1087aba36b4). The newly created user is being returned. 

http://localhost:8096/?command=listVpnUsers&listall=true&response=json{ "listvpnusersresponse" : { "count":1 ,"vpnuser" : [  {"id":"e8173453-1ff5-4791-acda-db9869f72669","username":"alena","account":"admin","domainid":"da74616a-4803-11e3-9920-b6bd92a47f90","domain":"ROOT","state":"Active"} ] } }


>From the code, I can see that the only situation when user is not returned, when his state is not Active. Once you see the issue again, check vpn_users DB table for the user state. If the state is not Active, we might have to debug to see why the user was created and put in incorrect state. And you will have to create a new bug if you experience it.

> [Automation] listVpnUsers API returns null 
> -------------------------------------------
>
>                 Key: CLOUDSTACK-5353
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5353
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Management Server
>    Affects Versions: 4.3.0
>         Environment: Branch ; 4.3
>            Reporter: Rayees Namathponnan
>            Assignee: Alena Prokharchyk
>            Priority: Blocker
>             Fix For: 4.3.0
>
>
> Steps: 
> *********** 
> 1.deploy the advance zone with hypervisor as KVM
> 2.deployvm on new network 
> 3. Acquire new IP 
> 4.enable vpn on Ip 
> 5.create Vpn users
> Expected result
> Newly created user should be displayed same page
> Actual Result 
> New added user not displayed
> also below API call does not return anything 
> http://10.223.49.195:8096/?command=listVpnUsers&listall=true
> Firebug 
> 1) 
> http://10.223.49.195:8080/client/api?command=addVpnUser&response=json&sessionkey=RfqSp9FX7ZZhKDOc6CWZLEekFO4%3D&account=admin&domainid=8c62b19a-5bbb-11e3-a447-1a6f7bb0d0a8&password=dsds&username=sddsds
> { "addvpnuserresponse" : {"id":"8cedbb84-e4fa-4508-9465-6ad993377e72","jobid":"d3377654-ad52-4b61-b746-525e788224de"} }
>  
> 2) 
> http://10.223.49.195:8080/client/api?command=queryAsyncJobResult&jobId=d3377654-ad52-4b61-b746-525e788224de&response=json&sessionkey=RfqSp9FX7ZZhKDOc6CWZLEekFO4%3D&_=1386100530785
> { "queryasyncjobresultresponse" : {"accountid":"d644a994-5bbb-11e3-a447-1a6f7bb0d0a8","userid":"d644e0b2-5bbb-11e3-a447-1a6f7bb0d0a8","cmd":"org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"vpnuser":{"id":"8cedbb84-e4fa-4508-9465-6ad993377e72","username":"sddsds","account":"admin","domainid":"8c62b19a-5bbb-11e3-a447-1a6f7bb0d0a8","domain":"ROOT"}},"created":"2013-12-03T11:55:27-0800","jobid":"d3377654-ad52-4b61-b746-525e788224de"} 
> 3) 
> http://10.223.49.195:8080/client/api?command=listVpnUsers&response=json&sessionkey=RfqSp9FX7ZZhKDOc6CWZLEekFO4%3D&domainid=8c62b19a-5bbb-11e3-a447-1a6f7bb0d0a8&account=admin&_=1386100530852
> _	1386100530852
> account	admin
> command	listVpnUsers
> domainid	8c62b19a-5bbb-11e3-a447-1a6f7bb0d0a8
> response	json
> sessionkey	RfqSp9FX7ZZhKDOc6CWZLEekFO4=



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