You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/07/17 12:07:04 UTC
[jira] [Commented] (CLOUDSTACK-7020) [Automation] Exception:
Warning: Exception during cleanup : type object 'TestTemplateUsage' has no
attribute '_cleanup'
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064771#comment-14064771 ]
ASF subversion and git services commented on CLOUDSTACK-7020:
-------------------------------------------------------------
Commit b7d445873c36d523571896ea1c51a49f65024445 in cloudstack's branch refs/heads/4.4-forward from [~ashutoshk]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b7d4458 ]
CLOUDSTACK-7020:Fixed test script issue
> [Automation] Exception: Warning: Exception during cleanup : type object 'TestTemplateUsage' has no attribute '_cleanup'
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7020
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7020
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Automation, Test
> Affects Versions: 4.4.0
> Reporter: Chandan Purushothama
> Priority: Critical
> Fix For: 4.4.0
>
>
> ===========
> Bug in Script:
> ===========
> class TestTemplateUsage(cloudstackTestCase):
> @classmethod
> def setUpClass(cls):
> cls.testClient = super(TestTemplateUsage, cls).getClsTestClient()
> cls.api_client = cls.testClient.getApiClient()
> cls.services = Services().services
> # Get Zone, Domain and templates
> cls.domain = get_domain(cls.api_client)
> cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
> cls.services['mode'] = cls.zone.networktype
> cls.services["server"]["zoneid"] = cls.zone.id
> template = get_template(
> cls.api_client,
> cls.zone.id,
> cls.services["ostype"]
> )
> cls.services["server"]["zoneid"] = cls.zone.id
> try:
> cls.account = Account.create(
> cls.api_client,
> cls.services["account"],
> domainid=cls.domain.id
> )
> cls._cleanup.append(cls.account) -----------> BUG: "_cleanup" variable should be initialized to empty list.
> cls.services["account"] = cls.account.name
> cls.service_offering = ServiceOffering.create(
> cls.api_client,
> cls.services["service_offering"]
> )
> cls._cleanup.append(cls.service_offering)
> #create virtual machine
> ==============
> Error Information:
> ==============
> test_01_snapshot_usage (integration.component.test_usage.TestSnapshotUsage): CRITICAL: EXCEPTION: test_01_snapshot_usage: ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run\n self.setUp()\n', ' File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp\n self.setupContext(ancestor)\n', ' File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext\n try_run(context, names)\n', ' File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n return func()\n', ' File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_usage.py", line 702, in setUpClass\n cls.tearDownClass()\n', ' File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_usage.py", line 712, in tearDownClass\n raise Exception("Warning: Exception during cleanup : %s" % e)\n', "Exception: Warning: Exception during cleanup : type object 'TestTemplateUsage' has no attribute '_cleanup'\n"]
> --------------------- >> end captured logging << ---------------------
> Stacktrace
> File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
> self.setUp()
> File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
> self.setupContext(ancestor)
> File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext
> try_run(context, names)
> File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
> return func()
> File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_usage.py", line 702, in setUpClass
> cls.tearDownClass()
> File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_usage.py", line 712, in tearDownClass
> raise Exception("Warning: Exception during cleanup : %s" % e)
> 'Warning: Exception during cleanup : type object \'TestTemplateUsage\' has no attribute \'_cleanup\'\n--------------------
--
This message was sent by Atlassian JIRA
(v6.2#6252)