You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2014/09/09 20:59:28 UTC

[jira] [Closed] (CLOUDSTACK-7390) [Automation] Fix the script "test_bugs.py" - Invalid Parameters

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama closed CLOUDSTACK-7390.
--------------------------------------------

Closing the bug as it is no longer seen in the automation run.

> [Automation] Fix the script "test_bugs.py" - Invalid Parameters
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7390
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7390
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Srikanteswararao Talluri
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> Script is at: component/maint/.
> {code}
>     @attr(tags=["advanced", "basic"])
>     @attr(required_hardware="false")
>     @attr(configuration='apply.allocation.algorithm.to.pods')
>     def test_es_47_list_os_types_win_2012(self):
>         """
>         @Desc: Test VM creation while "apply.allocation.algorithm.to.pods" is set to true
>         @Reference: https://issues.apache.org/jira/browse/CLOUDSTACK-4947
>         @Steps:
>         Step1: register windows 2012 VM template as windows 8 template
>         Step2: deploy a VM with windows2012 template and  Verify that VM creation is successful
>          """
>         # register windows 2012 VM template as windows 8 template
>         self.win2012_template = Template.register(
>                                         self.apiClient,
>                                         self.services["win2012template"],
>                                         zoneid=self.zone.id,
>                                         account=self.account.name,
>                                         domainid=self.domain.id,
>                                         hypervisor=self.hypervisor
>                                         )
>         # Wait for template to download
>         self.win2012_template.download(self.apiClient)
>         self.cleanup.append(self.win2012_template)
>         # Wait for template status to be changed across
>         time.sleep(60)
>         # Deploy
>         self.debug("Deploying win 2012 VM in account: %s" % self.account.name)
>         self.services["virtual_machine"]["displayname"] = "win2012"
>         self.services["virtual_machine"]["zoneid"] = self.zone.id
>         self.services["virtual_machine"]["template"] = self.win2012_template.id
>         vm1 = VirtualMachine.create(
>             self.apiClient,
>             self.services["virtual_machine2"],
>             accountid=self.account.name,
>             domainid=self.account.domainid,
>             serviceofferingid=self.service_offering.id,
>             )
>         self.cleanup.append(vm1)
>         # Verify VM state
>         self.assertEqual(
>                             vm1.state,
>                             'Running',
>                             "Check VM state is Running or not"
>                         )
>         return
>                                                                                  
> {code}
> ====================
> Client Error Information:
> ====================
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): DEBUG: ========Sending GET Cmd : listTemplates=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?templatefilter=self&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&zoneid=f2acfe0c-c8c8-4353-8f97-a3e0f14d6357&command=listTemplates&signature=LjryRXT0OpAYRm%2BuM5slT8BkAh4%3D&id=1ee5bf28-5cbe-41e4-ba11-0418ecda39c4&response=json HTTP/1.1" 200 847
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): DEBUG: Response : [{domain : u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', ostypename : u'Windows 8 (64-bit)', zoneid : u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', displaytext : u'win2012', ostypeid : u'9d9979e6-281e-11e4-b06a-d2bc9de3652e', passwordenabled : False, id : u'1ee5bf28-5cbe-41e4-ba11-0418ecda39c4', size : 34359738368, isready : True, format : u'OVA', templatetype : u'USER', details : {hypervisortoolsversion : u'xenserver61'}, zonename : u'XenRT-Zone-0', status : u'Download Complete', isdynamicallyscalable : False, tags : [], isfeatured : False, sshkeyenabled : False, isextractable : False, crossZones : False, account : u'test-a-Test42xBugsMgmtSvr-BJ4H02', name : u'win2012-S1SJ8X', created : u'2014-08-20T13:24:49+0000', hypervisor : u'XenServer', ispublic : False, checksum : u'b31fec1e736b8bc27db9d0f6740c6622'}]
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): DEBUG: Deploying win 2012 VM in account: test-a-Test42xBugsMgmtSvr-BJ4H02
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): DEBUG: *CmdName: deployVirtualMachine Parameter : templateid is Required*
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deployVirtualMachine.deployVirtualMachineCmd object at 0x32d0510> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-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/dist-packages/marvin/cloudstackConnection.py", line 353, in marvinRequest
>     raise self.__lastError
> InvalidParameterException: Invalid Parameters
> test_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): CRITICAL: EXCEPTION: test_es_47_list_os_types_win_2012: ['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_bugs.py", line 555, in test_es_47_list_os_types_win_2012\n    serviceofferingid=self.service_offering.id,\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 476, in create\n    virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 679, in deployVirtualMachine\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest\n    raise e\n', 'InvalidParameterException: Invalid Parameters\n']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/root/cloudstack/test/integration/component/maint/test_bugs.py", line 555, in test_es_47_list_os_types_win_2012
>     serviceofferingid=self.service_offering.id,
>   File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 476, in create
>     virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)
>   File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 679, in deployVirtualMachine
>     response = self.connection.marvinRequest(command, response_type=response, method=method)
>   File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest
>     raise e
> 'Invalid Parameters\n-------------------- >> begin captured stdout << ---------------------\n=== TestName: test_es_47_list_os_types_win_2012 | Status : EXCEPTION ===\n\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\ntest_es_47_list_os_types_win_2012 (integration.component.maint.test_bugs.Test42xBugsMgmtSvr): DEBUG: ::::::::::::STARTED : TC: test_es_47_list_os_types_win_2012 :::::::::::\ntest_es_47_list_os_types_win_2012 



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