← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1275789] Re: KeyError 'svc_type' in unit tests

 

*** This bug is a duplicate of bug 1270212 ***
    https://bugs.launchpad.net/bugs/1270212

Marked as duplicate to bug #1270212 (which is the sourced duplicate of
bug #1270182).

** This bug has been marked a duplicate of bug 1270212
   regression: multiple calls to Message.__mod__ trigger exceptions

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1275789

Title:
  KeyError 'svc_type' in unit tests

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  http://logstash.openstack.org/#eyJmaWVsZHMiOltdLCJzZWFyY2giOiJtZXNzYWdlOlwic3ZjX3R5cGVcIiBBTkQgZmlsZW5hbWU6XCJjb25zb2xlLmh0bWxcIiIsInRpbWVmcmFtZSI6IjYwNDgwMCIsImdyYXBobW9kZSI6ImNvdW50Iiwib2Zmc2V0IjowLCJ0aW1lIjp7InVzZXJfaW50ZXJ2YWwiOjB9LCJtb2RlIjoiIiwiYW5hbHl6ZV9maWVsZCI6IiIsInN0YW1wIjoxMzkxNDI5ODM4MjY5fQ==

  
  2014-02-03 08:44:47.763 | FAIL: neutron.tests.unit.test_provider_configuration.ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises
  2014-02-03 08:44:47.763 | tags: worker-3
  2014-02-03 08:44:47.763 | ----------------------------------------------------------------------
  2014-02-03 08:44:47.763 | Empty attachments:
  2014-02-03 08:44:47.764 |   stderr
  2014-02-03 08:44:47.764 |   stdout
  2014-02-03 08:44:47.764 | 
  2014-02-03 08:44:47.765 | pythonlogging:'': {{{2014-02-03 08:44:28,162    ERROR [neutron.services.provider_configuration] Service type 'svc_type' is not allowed, allowed types: ['CORE', 'DUMMY', 'LOADBALANCER', 'FIREWALL', 'VPN', 'METERING', 'L3_ROUTER_NAT']}}}
  2014-02-03 08:44:47.765 | 
  2014-02-03 08:44:47.765 | Traceback (most recent call last):
  2014-02-03 08:44:47.766 |   File "neutron/tests/unit/test_provider_configuration.py", line 87, in test_parse_service_provider_opt_not_allowed_raises
  2014-02-03 08:44:47.766 |     self.assertRaises(q_exc.Invalid, provconf.parse_service_provider_opt)
  2014-02-03 08:44:47.766 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 393, in assertRaises
  2014-02-03 08:44:47.766 |     self.assertThat(our_callable, matcher)
  2014-02-03 08:44:47.767 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 404, in assertThat
  2014-02-03 08:44:47.767 |     mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  2014-02-03 08:44:47.767 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 454, in _matchHelper
  2014-02-03 08:44:47.768 |     mismatch = matcher.match(matchee)
  2014-02-03 08:44:47.768 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  2014-02-03 08:44:47.768 |     mismatch = self.exception_matcher.match(exc_info)
  2014-02-03 08:44:47.769 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  2014-02-03 08:44:47.769 |     mismatch = matcher.match(matchee)
  2014-02-03 08:44:47.769 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 385, in match
  2014-02-03 08:44:47.770 |     reraise(*matchee)
  2014-02-03 08:44:47.771 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  2014-02-03 08:44:47.771 |     result = matchee()
  2014-02-03 08:44:47.771 |   File "/home/jenkins/workspace/gate-neutron-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 902, in __call__
  2014-02-03 08:44:47.772 |     return self._callable_object(*self._args, **self._kwargs)
  2014-02-03 08:44:47.772 |   File "neutron/services/provider_configuration.py", line 74, in parse_service_provider_opt
  2014-02-03 08:44:47.774 |     raise n_exc.Invalid(msg)
  2014-02-03 08:44:47.774 |   File "neutron/common/exceptions.py", line 198, in __init__
  2014-02-03 08:44:47.774 |     super(Invalid, self).__init__()
  2014-02-03 08:44:47.774 |   File "neutron/common/exceptions.py", line 34, in __init__
  2014-02-03 08:44:47.775 |     super(NeutronException, self).__init__(self.message % kwargs)
  2014-02-03 08:44:47.775 |   File "neutron/openstack/common/gettextutils.py", line 199, in __mod__
  2014-02-03 08:44:47.775 |     params=self._sanitize_mod_params(other),
  2014-02-03 08:44:47.776 |   File "neutron/openstack/common/gettextutils.py", line 215, in _sanitize_mod_params
  2014-02-03 08:44:47.776 |     params = self._trim_dictionary_parameters(other)
  2014-02-03 08:44:47.776 |   File "neutron/openstack/common/gettextutils.py", line 239, in _trim_dictionary_parameters
  2014-02-03 08:44:47.777 |     params[key] = self._copy_param(dict_param[key])
  2014-02-03 08:44:47.777 | KeyError: 'svc_type'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1275789/+subscriptions


References