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

ASF subversion and git services commented on CLOUDSTACK-4378:
-------------------------------------------------------------

Commit 98dfd65291be31f08a8d6b183486de8c1ba4f15a in branch 
refs/heads/4.2-forward from [~swamy]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=98dfd65 ]

CLOUDSTACK-4378 : Existing tests were deploying VMs as admin and creating
affinity groups as admin. There are few reason why this needs to be changed and
the reasons are as mentioned below
1. we usually create an account for each test and we run the test as the newly
created account and not as admin.
2. tests were failing during deployVirtualMachine step when they are run as
admin and if anyone during these tests create an additional isolated networks
as admin account .
(P.S: current deployVirtualMachine in the scripts is not taking the networkId
and hence it fails when there are multiple isolated networks because it doesn't
know which one to pick)
Signed-off-by: venkataswamybabu budumuru <[email protected]>

                
> [Automation] [Regression] Affinity group test cases failed during VM 
> deployment 
> --------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4378
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4378
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation
>    Affects Versions: 4.2.0
>         Environment: Automation 
>            Reporter: Rayees Namathponnan
>            Assignee: venkata swamybabu budumuru
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-4378.rar, management-server.rar
>
>
> Test cases from Affinity group failed with latest build, its was 100% pass 
> with HEAD 950672ef8c8a40386c9fedec9b39423ee7b0324a
> but 15 test cases failed in last run; all test cases failed with error 
> Execute cmd: deployvirtualmachine failed, due to: errorCode: 431, 
> errorText:More than 1 default Isolated networks are found for account 
> Acct[20c01a3c-0624-11e3-963b-1a6f7bb0d0a8-admin]; please specify networkIds
> -------------------- >> begin captured logging << --------------------
> testclient.testcase.TestDeployVMAffinityGroups: DEBUG: Creating VM in 
> AffinityGroup=[u'aff_grp_2RTSV0', u'aff_grp_7AHYVX']
> I can see below error in MS log, is it due to recent change in Affinity Group 
> ?
> 2013-08-16 04:16:59,956 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-2:job-1345 = [ 4f9e5d7a-3672-40ef-8d18-e72ab71874e8 ]) Complete 
> async job-1345 = [ 4f9e5d7a-3672-
> 40ef-8d18-e72ab71874e8 ], jobStatus: 1, resultCode: 0, result: 
> org.apache.cloudstack.affinity.AffinityGroupResponse@3a747cde
> 2013-08-16 04:16:59,958 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) 
> ===START===  10.223.240.194 -- GET  
> signature=xvW6R8g%2FZY8IirLFg4rrDte58XA%3D&apiKey=qQZPYXw_yB_2
> 7QIr1nfXiYobjZqe3YbTDh5EbPqK2oL91HYgRwPKC3vb4k6F5LdRHMaztJelwCnlWZgXDx3cTw&command=queryAsyncJobResult&response=json&jobid=4f9e5d7a-3672-40ef-8d18-e72ab71874e8
> 2013-08-16 04:16:59,964 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-2:job-1345 = [ 4f9e5d7a-3672-40ef-8d18-e72ab71874e8 ]) Done 
> executing org.apache.cloudstack.api.c
> ommand.user.affinitygroup.CreateAffinityGroupCmd for job-1345 = [ 
> 4f9e5d7a-3672-40ef-8d18-e72ab71874e8 ]
> 2013-08-16 04:16:59,967 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-23:null) Async job-1345 = [ 
> 4f9e5d7a-3672-40ef-8d18-e72ab71874e8 ] completed
> 2013-08-16 04:16:59,971 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) 
> ===END===  10.223.240.194 -- GET  
> signature=xvW6R8g%2FZY8IirLFg4rrDte58XA%3D&apiKey=qQZPYXw_yB_27Q
> Ir1nfXiYobjZqe3YbTDh5EbPqK2oL91HYgRwPKC3vb4k6F5LdRHMaztJelwCnlWZgXDx3cTw&command=queryAsyncJobResult&response=json&jobid=4f9e5d7a-3672-40ef-8d18-e72ab71874e8
> 2013-08-16 04:16:59,974 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) 
> ===START===  10.223.240.194 -- GET  
> apiKey=qQZPYXw_yB_27QIr1nfXiYobjZqe3YbTDh5EbPqK2oL91HYgRwPKC3v
> b4k6F5LdRHMaztJelwCnlWZgXDx3cTw&affinitygroupnames=aff_grp_W8HXDD%2Caff_grp_BPYP6W&zoneid=f57bd70d-f00a-4f73-97b4-f8bd31ce613b&serviceofferingid=d6b9f855-c1ec-4ba7-9844-e27382
> 215fb6&signature=Dnn47jTVH4XeOXLoF1KieCqnGqw%3D&templateid=c2a7e4e8-0623-11e3-963b-1a6f7bb0d0a8&response=json&command=deployVirtualMachine&hypervisor=KVM
> 2013-08-16 04:16:59,980 DEBUG [cloud.api.ApiDispatcher] 
> (catalina-exec-18:null) InfrastructureEntity name 
> is:com.cloud.offering.ServiceOffering
> 2013-08-16 04:16:59,982 DEBUG [cloud.api.ApiDispatcher] 
> (catalina-exec-18:null) ControlledEntity name 
> is:com.cloud.template.VirtualMachineTemplate
> 2013-08-16 04:16:59,983 DEBUG [cloud.api.ApiDispatcher] 
> (catalina-exec-18:null) ControlledEntity name 
> is:org.apache.cloudstack.affinity.AffinityGroup
> 2013-08-16 04:17:00,009 INFO  [cloud.api.ApiServer] (catalina-exec-18:null) 
> More than 1 default Isolated networks are found for account 
> Acct[20c01a3c-0624-11e3-963b-1a6f7bb0d0a8-admin]; please specify networkIds

--
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

Reply via email to