cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sheng Yang (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-7436) [Automation] Redundant state of the router should be BACKUP but is UNKNOWN
Date Tue, 23 Sep 2014 23:46:34 GMT


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

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/", line 332, in run\n
   testMethod()\n', '  File "/root/cloudstack/test/integration/component/maint/",
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/",
line 516, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib/python2.7/unittest/",
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:
>             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
> Stacktrace
>   File "/usr/lib/python2.7/unittest/", line 332, in run
>     testMethod()
>   File "/root/cloudstack/test/integration/component/maint/",
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/", line 516, in assertEqual
>     assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/", line 509, in _baseAssertEqual
>     raise self.failureException(msg)
> 'Redundant state of the router should be BACKUP but is UNKNOWN\n
> Logs available at

This message was sent by Atlassian JIRA

View raw message