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

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

Commit e3bcdc16a11d7452b5bf6ce5e5993dcd008526a6 in branch refs/heads/4.2 from 
[~gpshilamkar]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e3bcdc1 ]

CLOUDSTACK-4766: Add timeout if vm does not reach running state

The tests use to wait for ever for the vm to attain Running state.
Added a timeout so it does not get into infinite loop.

Signed-off-by: venkataswamybabu budumuru <[email protected]>


> [Automation] test_reset_ssh_keypair executing in infinite loop and regression 
> suite hang
> ----------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4766
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4766
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation
>    Affects Versions: 4.2.1
>         Environment: Automation advanced zone 
>            Reporter: Rayees Namathponnan
>            Assignee: Girish Shilamkar
>            Priority: Blocker
>             Fix For: 4.2.1
>
>
> Few test cases from test_reset_ssh_keypair.py suite executing infinite loop 
> hang automation 
> See the below code from test_reset_ssh_keypair.py,   here test case checking 
> VM's state in every 60 sec, due to some reason if this vm never comes to 
> running; this code will execute in a loop 
>  578         while True:
>  579             vms = VirtualMachine.list(
>  580                                   self.apiclient,
>  581                                   account=self.account.name,
>  582                                   domainid=self.account.domainid,
>  583                                   listall=True
>  584                                   )
>  585             if vms[0].state == "Running":
>  586                 break
>  587             self.debug("Vm not in Running state sleep 60s")
>  588             time.sleep(60)



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

Reply via email to