cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandan Purushothama (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7020) [Automation] Exception: Warning: Exception during cleanup : type object 'TestTemplateUsage' has no attribute '_cleanup'
Date Mon, 30 Jun 2014 22:11:24 GMT
Chandan Purushothama created CLOUDSTACK-7020:
------------------------------------------------

             Summary: [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: Bug
      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)

Mime
View raw message