Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-6767

[Automation] integration.smoke.test_volumes.TestVolumes.test_07_resize_fail is failing on simulator

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.0
    • 4.4.0
    • Automation
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      The test is not suppose to run on simulator. There is explicit check in code to not allow resize volume for simulator HV.

      Exception: Job failed: {jobprocstatus : 0, created : u'2014-05-25T20:19:27-0700', cmd : u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', userid : u'338d28d4-e482-11e3-a86b-00163e0af42c', jobstatus : 2, jobid : u'cb3ef976-6aed-4137-a393-8f90cd1cff58', jobresultcode : 530, jobresulttype : u'object', jobresult :

      {errorcode : 530, errortext : u'Cloudstack currently only supports volumes marked as KVM, VMware, XenServer hypervisor for resize'}

      , accountid : u'338d026e-e482-11e3-a86b-00163e0af42c'}
      test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): CRITICAL: FAILED: test_07_resize_fail: ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 331, in run\n testMethod()\n', ' File "/automation/virtenv/00-16-3e-0a-f4-2c/261/test/integration/smoke/test_volumes.py", line 552, in test_07_resize_fail\n "ResizeVolume - verify root disks cannot be resized by disk offering id")\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 515, in assertEqual\n assertion_func(first, second, msg=msg)\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 508, in _baseAssertEqual\n raise self.failureException(msg)\n', 'AssertionError: ResizeVolume - verify root disks cannot be resized by disk offering id\n']

      Earlier the test was incorrectly checking for wrong error and so was passing even for simulator. As part of the below commit the test case was fixed to check correct error and so started failing.

      commit 8eca37056f5bb1eee10f0bedee785142d7c3437a
      Author: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
      Date: Thu May 15 23:19:06 2014 -0400

      CLOUDSTACK-6657: Adding condition for checking error code 530 across test cases

      Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>

      Attachments

        Activity

          People

            koushikd Koushik Das
            koushikd Koushik Das
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: