Rayees Namathponnan created CLOUDSTACK-6657:
-----------------------------------------------
Summary: [Automation] Test case fails with "exceptions must be
old-style classes or derived from BaseException"
Key: CLOUDSTACK-6657
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6657
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: marvin
Affects Versions: 4.4.0
Reporter: Rayees Namathponnan
Priority: Critical
Fix For: 4.4.0
I am seeing below error in latest automation runs, many test cases failed with
error “exceptions must be old-style classes or derived from BaseException”
Is there any changes done in Marvin related to this ?
create a deployment for VM[User|i-603-701-VM]'}, accountid :
u'c38ef33c-d9e1-11e3-bccf-52b2d980df8a'}
test_update_vm_name
(integration.component.test_update_vm.TestUpdateVirtualMachine): DEBUG:
===Jobid:4e958b35-6f11-44ab-af8f-64ff7e67d139 ; StartTime:Mon May 12 23:56:35
2014 ; EndTime:Mon May 12 23:56:40 2014 ; TotalTime:-5===
test_update_vm_name
(integration.component.test_update_vm.TestUpdateVirtualMachine): DEBUG:
Response : FAILED
test_update_vm_name
(integration.component.test_update_vm.TestUpdateVirtualMachine): ERROR:
marvinRequest : CmdName:
<marvin.cloudstackAPI.deployVirtualMachine.deployVirtualMachineCmd object at
0xabbd910> Exception: ['Traceback (most recent call last):\n', ' File
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
376, in marvinRequest\n raise self.__lastError\n', 'TypeError: exceptions
must be old-style classes or derived from BaseException, not str\n']
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
line 376, in marvinRequest
raise self.__lastError
TypeError: exceptions must be old-style classes or derived from BaseException,
not str
test_update_vm_name
(integration.component.test_update_vm.TestUpdateVirtualMachine): CRITICAL:
EXCEPTION: test_update_vm_name: ['Traceback (most recent call last):\n', '
File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run\n
testMethod()\n', ' File
"/data/Repo2/qa/cloudstack/test/integration/component/test_update_vm.py", line
106, in test_update_vm_name\n
templateid=self.template.id<http://self.template.id>\n', ' File
"/usr/local/lib/python2.7/site-packages/marvin/lib/base.py", line 471, in
create\n virtual_machine = apiclient.deployVirtualMachine(cmd,
method=method)\n', ' File
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 672, in deployVirtualMachine\n response =
self.connection.marvinRequest(command, response_type=response,
method=method)\n', ' File
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
381, in marvinRequest\n raise e\n', 'TypeError: exceptions must be old-style
classes or derived from BaseException, not str\n']
--------------------- >> end captured logging << ---------------------
Stacktrace
File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
testMethod()
File "/data/Repo2/qa/cloudstack/test/integration/component/test_update_vm.py",
line 106, in test_update_vm_name
templateid=self.template.id<http://self.template.id>
File "/usr/local/lib/python2.7/site-packages/marvin/lib/base.py", line 471, in
create
virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)
File
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 672, in deployVirtualMachine
response = self.connection.marvinRequest(command, response_type=response,
method=method)
File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
line 381, in marvinRequest
raise e
'exceptions must be old-style classes or derived from BaseException, not
str\n-------------------- >> begin captured stdout <<
---------------------\n=== TestName: test_update_vm_
--
This message was sent by Atlassian JIRA
(v6.2#6252)