Rayees Namathponnan created CLOUDSTACK-6580:
-----------------------------------------------

             Summary: [Automation] Account creation failing with error "already 
exists in domain *** "
                 Key: CLOUDSTACK-6580
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6580
             Project: CloudStack
          Issue Type: Test
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: marvin
    Affects Versions: 4.4.0
         Environment: branch 4.4-forward
            Reporter: Rayees Namathponnan
            Assignee: Girish Shilamkar
            Priority: Critical
             Fix For: 4.4.0


4.4-forward test cases failing while creating account under domain,    there 
are changes in products, we need to update list API call with listAll=true

Please check base.py account create section, we need to pass listAll=true to 
get the existing account.

Test cases 
integration.component.test_cpu_max_limits.TestMaxCPULimits.test_01_deploy_vm_domain_limit_reached

Failing due to this 

requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
(1): 10.223.49.195
requests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?username=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&domainid=2580427c-ac34-4bc1-b7c0-ed2adef4d9ec&firstname=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&lastname=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&response=json&apiKey=-iREkQOpes0jctzcJbHnQDDV2k6AzB6K53ul12O7vO-54OnW7j9deaT6Eb_s4MbAnKvVjCnPTpJI6cg2Rv-RiQ&command=createAccount&accounttype=0&signature=LbRpZtC%2FVIyf5CC4%2BtaLK%2F14%2FZw%3D&password=password&email=test-IAXXF9%40cloudstack.org
 HTTP/1.1" 431 203
test_01_deploy_vm_domain_limit_reached 
(integration.component.test_cpu_max_limits.TestMaxCPULimits): DEBUG: Request: 
http://10.223.49.195:8080/client/api?username=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&domainid=2580427c-ac34-4bc1-b7c0-ed2adef4d9ec&firstname=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&lastname=resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O&response=json&apiKey=-iREkQOpes0jctzcJbHnQDDV2k6AzB6K53ul12O7vO-54OnW7j9deaT6Eb_s4MbAnKvVjCnPTpJI6cg2Rv-RiQ&command=createAccount&accounttype=0&signature=LbRpZtC%2FVIyf5CC4%2BtaLK%2F14%2FZw%3D&password=password&email=test-IAXXF9%40cloudstack.org
 Response: { "createaccountresponse" : 
{"uuidList":[],"errorcode":431,"cserrorcode":4350,"errortext":"The user 
resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O already 
exists in domain 61"} }
test_01_deploy_vm_domain_limit_reached 
(integration.component.test_cpu_max_limits.TestMaxCPULimits): CRITICAL: 
EXCEPTION: test_01_deploy_vm_domain_limit_reached: Traceback (most recent call 
last):
  File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File 
"/Repo_30X/ipcl/cloudstack/test/integration/component/test_cpu_max_limits.py", 
line 256, in test_01_deploy_vm_domain_limit_reached
    DomainName=self.child_do_admin.domain)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", 
line 135, in createUserApiClient
    acct = self.apiClient.createAccount(createAcctCmd)
  File 
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 545, in createAccount
    response = self.connection.marvinRequest(command, response_type=response, 
method=method)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 272, in marvinRequest
    response = jsonHelper.getResultObj(response.json(), response_type)
  File "/usr/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line 148, 
in getResultObj
    raise cloudstackException.cloudstackAPIException(respname, errMsg)
cloudstackAPIException: Execute cmd: createaccount failed, due to: errorCode: 
431, errorText:The user 
resource-TestMaxCPULimits-test_01_deploy_vm_domain_limit_reached-OSVM1O already 
exists in domain 61

--------------------- >> end captured logging << ---------------------
Stacktrace

  File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File 
"/Repo_30X/ipcl/cloudstack/test/integration/component/test_cpu_max_limits.py", 
line 256, in test_01_deploy_vm_domain_limit_reached
    DomainName=self.child_do_admin.domain)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", 
line 135, in createUserApiClient
    acct = self.apiClient.createAccount(createAcctCmd)
  File 
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 545, in createAccount
    response = self.connection.marvinRequest(command, response_type=response, 
method=method)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 272, in marvinRequest
    response = jsonHelper.getResultObj(response.json(), response_type)
  File "/usr/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line 148, 
in getResultObj
    raise cloudstackException.cloudstackAPIException(respname, errMsg)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to