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 21:26:29 UTC

[jira] [Closed] (CLOUDSTACK-7125) [Automation] Fix test_blocker_bugs script to wait for the Snapshot to be backedup before creating a Template from it

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

Chandan Purushothama closed CLOUDSTACK-7125.
--------------------------------------------

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

> [Automation] Fix test_blocker_bugs script to wait for the Snapshot to be backedup before creating a Template from it
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7125
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7125
>             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: Gaurav Aradhye
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> Failed to create Template as Snapshot is not BackedUp yet
> =====
> Error:
> =====
> CloudstackAPIException: Execute cmd: createtemplate failed, due to: errorCode: 431, errorText:Snapshot id=3 is not in BackedUp state yet and can't be used for template creation
> test_02_check_size_snapshotTemplate (integration.component.test_blocker_bugs.TestTemplates): CRITICAL: EXCEPTION: test_02_check_size_snapshotTemplate: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n    testMethod()\n', '  File "/home/jenkins/workspace/xenrt-reg-basic-xs/cloudstack.git/test/integration/component/test_blocker_bugs.py", line 891, in test_02_check_size_snapshotTemplate\n    self.services["template"]\n', '  File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/base.py", line 1164, in create_from_snapshot\n    return Template(apiclient.createTemplate(cmd).__dict__)\n', '  File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 794, in createTemplate\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 380, in marvinRequest\n    raise e\n', "CloudstackAPIException: Execute cmd: createtemplate failed, due to: errorCode: 431, errorText:Snapshot id=3 is not in BackedUp state yet and can't be used for template creation\n"]
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/home/jenkins/workspace/xenrt-reg-basic-xs/cloudstack.git/test/integration/component/test_blocker_bugs.py", line 891, in test_02_check_size_snapshotTemplate
>     self.services["template"]
>   File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/base.py", line 1164, in create_from_snapshot
>     return Template(apiclient.createTemplate(cmd).__dict__)
>   File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 794, in createTemplate
>     response = self.connection.marvinRequest(command, response_type=response, method=method)
>   File "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 380, in marvinRequest
>     raise e
> 'Execute cmd: createtemplate failed, due to: errorCode: 431, errorText:Snapshot id=3 is not in BackedUp state yet and can\'t be used for template creation\n-------------------- >> begin captured stdout << ---------------------\n=== TestName: test_02_check_size_snapshotTemplate | Status : EXCEPTION ===\n\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\ntest_02_check_size_snapshotTemplate (integration.component.test_blocker_bugs.TestTemplates): DEBUG: ::::::::::::STARTED : TC: test_02_check_size_snapshotTemplate :::::::::::\ntest_02_check_size_snapshotTemplate (integration.component.test_blocker_bugs.TestTemplates): DEBUG: Payload: {\'account\': u\'test-TestTemplates-test_01_create_template-PV1LCJ\', \'domainid\': u\'7ccbf6bc-08ed-11e4-887d-928d578f5db8\', \'volumeid\': u\'7aa4cc3c-5c23-4b30-a30d-b48bd735ebcc\', \'apiKey\': u\'Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMA\', \'command\': \'createSnapshot\', \'signature\': \'xX9H+dRDsmZwsicoTcSlP+yZo7g=\', \'response\': \'json\'}\ntest_02_check_size_snapshotTemplate 



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