Gaurav Aradhye created CLOUDSTACK-7506:
------------------------------------------
Summary: Secondary Storage LImits test cases are failing while
registering template with error "Invalid Parameters - Hypervisor is required"
Key: CLOUDSTACK-7506
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7506
Project: CloudStack
Issue Type: Test
Security Level: Public (Anyone can view this level - this is the default.)
Components: Automation
Affects Versions: 4.5.0
Reporter: Gaurav Aradhye
Assignee: Gaurav Aradhye
Fix For: 4.5.0
Base library function is reading hypervisor value only from function parameter
and not from services dictionary. But the test cases are passing hypervisor
value from dictionary.
Solution:
Read the hypervisor value from the services dict if it's not passed through the
function parameter.
Details:
test_01_deploy_vm_domain_limit_reached
(integration.component.test_ss_max_limits.TestMaxSecondaryStorageLimits):
DEBUG: CmdName: registerTemplate Parameter : hypervisor is Required
test_01_deploy_vm_domain_limit_reached
(integration.component.test_ss_max_limits.TestMaxSecondaryStorageLimits):
ERROR: marvinRequest : CmdName:
<marvin.cloudstackAPI.registerTemplate.registerTemplateCmd object at 0x2855a10>
Exception: ['Traceback (most recent call last):\n', ' File
"/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
353, in marvinRequest\n raise self.__lastError\n',
'InvalidParameterException: Invalid Parameters\n']
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
line 353, in marvinRequest
raise self.__lastError
InvalidParameterException: Invalid Parameters
test_01_deploy_vm_domain_limit_reached
(integration.component.test_ss_max_limits.TestMaxSecondaryStorageLimits):
CRITICAL: FAILED: test_01_deploy_vm_domain_limit_reached: ['Traceback (most
recent call last):\n', ' File "/usr/local/lib/python2.7/unittest/case.py",
line 318, in run\n testMethod()\n', ' File
"/Repo_30X/ipcl/cloudstack/test/integration/component/test_ss_max_limits.py",
line 183, in test_01_deploy_vm_domain_limit_reached\n
self.assertEqual(response[0], PASS, response[1])\n', ' File
"/usr/local/lib/python2.7/unittest/case.py", line 494, in assertEqual\n
assertion_func(first, second, msg=msg)\n', ' File
"/usr/local/lib/python2.7/unittest/case.py", line 487, in _baseAssertEqual\n
raise self.failureException(msg)\n', 'AssertionError: Invalid Parameters\n']
--------------------- >> end captured logging << ---------------------
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)