can't run ec2 unit tests by themselves

Bug #1075293 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Chris Behrens

Bug Description

ERROR: nova.tests.api.ec2.test_cloud.CloudTestCase.test_allocate_address
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/cbehrens/git/nova/rax.git/nova/tests/api/ec2/test_cloud.py", line 130, in setUp
    self.flags(compute_scheduler_driver='nova.scheduler.'
  File "/home/cbehrens/git/nova/rax.git/nova/test.py", line 135, in flags
    FLAGS.set_override(k, v)
  File "/home/cbehrens/git/nova/rax.git/nova/openstack/common/cfg.py", line 983, in __inner
    return f(self, *args, **kwargs)
  File "/home/cbehrens/git/nova/rax.git/nova/openstack/common/cfg.py", line 1193, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/home/cbehrens/git/nova/rax.git/nova/openstack/common/cfg.py", line 1470, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: compute_scheduler_driver

Chris Behrens (cbehrens)
Changed in nova:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Chris Behrens (cbehrens)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/15442

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/15442
Committed: http://github.com/openstack/nova/commit/266fbc6fbac67b3bfb1736e0091c5fd59fa59e77
Submitter: Jenkins
Branch: master

commit 266fbc6fbac67b3bfb1736e0091c5fd59fa59e77
Author: Chris Behrens <email address hidden>
Date: Mon Nov 5 19:35:24 2012 +0000

    Use chance scheduler in EC2 tests

    The default scheduler switched to the filter scheduler, and apparently
    the EC2 tests are meant to use the chance scheduler for testing. Also,
    compute_scheduler_driver is not recognized when these tests are run
    individually.

    Fixes bug 1075293

    Change-Id: I4a7cae4b3dbd18b8779c44e4c30718a872a82b0a

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.