Unittest metaplugin.test_metaplugin cannot run alone

Bug #1112051 reported by Zhongyue Luo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Eugene Nikanorov

Bug Description

The test halts when running the command below

$ ./run_tests.sh metaplugin.test_metaplugin

Changed in quantum:
importance: Undecided → Low
status: New → Triaged
tags: added: low-hanging-fruit unittest
Revision history for this message
yong sheng gong (gongysh) wrote :
Download full text (6.7 KiB)

gongysh@gongysh-ThinkPad-T420:~/git/quantum$ ./run_tests.sh metaplugin.test_metaplugin
No virtual environment found...create one? (Y/n) n
MetaQuantumPluginV2Test
    test_create_delete_network (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR
    test_create_delete_port (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR
    test_create_delete_router (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR
    test_create_delete_subnet (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR
    test_extension_method (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR
    test_extension_not_implemented_method (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)ERROR

======================================================================
ERROR: test_create_delete_network (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 80, in setUp
    setup_metaplugin_conf()
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 63, in setup_metaplugin_conf
    cfg.CONF.set_override('base_mac', "12:34:56:78:90:ab")
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1091, in __inner
    return f(self, *args, **kwargs)
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1312, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1572, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: base_mac

======================================================================
ERROR: test_create_delete_port (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 80, in setUp
    setup_metaplugin_conf()
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 63, in setup_metaplugin_conf
    cfg.CONF.set_override('base_mac', "12:34:56:78:90:ab")
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1091, in __inner
    return f(self, *args, **kwargs)
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1312, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/mnt/data/git/quantum/quantum/openstack/common/cfg.py", line 1572, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: base_mac

======================================================================
ERROR: test_create_delete_router (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 80, in setUp
    setup_metaplugin_conf()
  File "/mnt/data/git/quantum/quantum/tests/unit/metaplugin/test_metaplugin.py", line 63, in setup_metaplugin_con...

Read more...

Revision history for this message
Henry Gessau (gessau) wrote :

With a pre-created venv (from a successful complete run of all tests), it hangs on
test_create_delete_router (metaplugin.test_metaplugin.MetaQuantumPluginV2Test)

When I hit ctrl-c I get the same traceback as bug #1112024.
I think this might be a duplicate.

Changed in quantum:
assignee: nobody → Eugene Nikanorov (enikanorov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

Changed in quantum:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/23200
Committed: http://github.com/openstack/quantum/commit/cea8542d6e496360db1b9a3e271e33bf1c6ac294
Submitter: Jenkins
Branch: master

commit cea8542d6e496360db1b9a3e271e33bf1c6ac294
Author: Eugene Nikanorov <email address hidden>
Date: Fri Mar 1 00:13:31 2013 +0400

    Set fake rpc implementation in metaplugin test configuration.

    fixes bug 1112051

    Change-Id: Ie38c930429bc328512a629c61e4e06480549e630

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → grizzly-rc1
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc1 → 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.