You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sheng Yang (JIRA)" <ji...@apache.org> on 2014/09/24 01:46:34 UTC

[jira] [Commented] (CLOUDSTACK-7436) [Automation] Redundant state of the router should be BACKUP but is UNKNOWN

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

Sheng Yang commented on CLOUDSTACK-7436:
----------------------------------------

This is because the wait gap between VM complete start and VR status check is too small in test case.

Here are the logs.

VM complete start at 00:08:01.
2014-08-25 00:08:01,014 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-91:ctx-f1a27423 job-8400 ctx-0d531aed) Complete async job-8400, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.UserVmResponse/virtualmachine/{"id":"63def9a3-dbd5-41c1-8eb2-d44b3db8c7dc","name":"VM-63def9a3-dbd5-41c1-8eb2-d44b3db8c7dc","displayname":"Test VM","account":"test-TestRvRRedundancy-test_05_stopBackupRvR_startInstance-Z3S73H","domainid":"56ab18f0-2b4d-11e4-89bd-1e5d0e053e75","domain":"ROOT","created":"2014-08-25T00:06:32+0000","state":"Running","haenable":false,"zoneid":"eb811e7d-59d4-4c72-a965-80d9e30572d1","zonename":"XenRT-Zone-0","hostid":"1065d9b2-260a-4642-bffe-b2523db3d798","hostname":"cl09-B-02","templateid":"56af8f20-2b4d-11e4-89bd-1e5d0e053e75","templatename":"CentOS 5.6(64-bit) no GUI (XenServer)","templatedisplaytext":"CentOS 5.6(64-bit) no GUI (XenServer)","passwordenabled":false,"serviceofferingid":"5cc985ec-6619-4a7b-8693-3809fc855d92","serviceofferingname":"Tiny Instance","cpunumber":1,"cpuspeed":100,"memory":128,"guestosid":"56bf8060-2b4d-11e4-89bd-1e5d0e053e75","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"bd322ec3-91e9-45a9-a6bf-a7ad3327957e","networkid":"33adc06c-4ccf-4a45-ae2f-e66bafe767e4","networkname":"Test Network","netmask":"255.255.255.0","gateway":"192.168.200.1","ipaddress":"192.168.200.187","isolationuri":"vlan://3073","broadcasturi":"vlan://3073","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:3d:25:00:04"}],"hypervisor":"XenServer","instancename":"i-653-1171-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":true,"ostypeid":142,"jobid":"f675ed68-e04a-4519-9969-f1981de73fcb","jobstatus":0}

VR complete status check at 00:08:10. It can take up to 30 seconds by default for polling thread to update the status of VR.
2014-08-25 00:08:10,364 INFO  [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RedundantRouterStatusMonitor-1:ctx-f68f3898) Redundant virtual router (name: r-1170-VM, id: 1170)  just switch from UNKNOWN to BACKUP

But log shows the result was checked at 08:03, which only means 2 seconds after VM is up.
2014-08-25 00:08:03,107 - CRITICAL - FAILED: test_05_stopBackupRvR_startInstance: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n    testMethod()\n', '  File "/root/cloudstack/test/integration/component/maint/test_redundant_router.py", line 1583, in test_05_stopBackupRvR_startInstance\n    "Redundant state of the router should be BACKUP but is %s" % routers[0].redundantstate\n', '  File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Redundant state of the router should be BACKUP but is UNKNOWN\n']

There is no wait in test case for VR polling thread to update the VR status.

> [Automation] Redundant state of the router should be BACKUP but is UNKNOWN 
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7436
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7436
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test, Virtual Router
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> The following testcase reported the error message shown below:
> integration.component.maint.test_redundant_router.TestRvRRedundancy.test_05_stopBackupRvR_startInstance (from nosetests)
> *Error Message*
> Redundant state of the router should be BACKUP but is UNKNOWN   Logs available at http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Serial&test=redundant_router
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/root/cloudstack/test/integration/component/maint/test_redundant_router.py", line 1583, in test_05_stopBackupRvR_startInstance
>     "Redundant state of the router should be BACKUP but is %s" % routers[0].redundantstate
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
>     assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
>     raise self.failureException(msg)
> 'Redundant state of the router should be BACKUP but is UNKNOWN\n
> Logs available at http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Serial&test=redundant_router		



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)