← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1270182] [NEW] ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises fails with KeyError

 

Public bug reported:

2014-01-17 12:12:31.017 | FAIL: neutron.tests.unit.test_provider_configuration.ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises
2014-01-17 12:12:31.017 | tags: worker-3
2014-01-17 12:12:31.017 | ----------------------------------------------------------------------
2014-01-17 12:12:31.017 | Empty attachments:
2014-01-17 12:12:31.018 |   stderr
2014-01-17 12:12:31.018 |   stdout
2014-01-17 12:12:31.018 | 
2014-01-17 12:12:31.019 | pythonlogging:'': {{{2014-01-17 12:07:13,288    ERROR [neutron.services.provider_configuration] Service type 'svc_type' is not allowed, allowed types: ['CORE', 'DUMMY', 'LOADBALANCER', 'FIREWALL', 'VPN', 'METERING', 'L3_ROUTER_NAT']}}}
2014-01-17 12:12:31.019 | 
2014-01-17 12:12:31.019 | Traceback (most recent call last):
2014-01-17 12:12:31.020 |   File "neutron/tests/unit/test_provider_configuration.py", line 87, in test_parse_service_provider_opt_not_allowed_raises
2014-01-17 12:12:31.020 |     self.assertRaises(q_exc.Invalid, provconf.parse_service_provider_opt)
2014-01-17 12:12:31.020 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 396, in assertRaises
2014-01-17 12:12:31.020 |     self.assertThat(our_callable, matcher)
2014-01-17 12:12:31.021 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 408, in assertThat
2014-01-17 12:12:31.021 |     mismatch = matcher.match(matchee)
2014-01-17 12:12:31.021 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 99, in match
2014-01-17 12:12:31.022 |     mismatch = self.exception_matcher.match(exc_info)
2014-01-17 12:12:31.022 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_higherorder.py", line 62, in match
2014-01-17 12:12:31.022 |     mismatch = matcher.match(matchee)
2014-01-17 12:12:31.023 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 388, in match
2014-01-17 12:12:31.023 |     reraise(*matchee)
2014-01-17 12:12:31.023 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 92, in match
2014-01-17 12:12:31.024 |     result = matchee()
2014-01-17 12:12:31.024 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 885, in __call__
2014-01-17 12:12:31.024 |     return self._callable_object(*self._args, **self._kwargs)
2014-01-17 12:12:31.024 |   File "neutron/services/provider_configuration.py", line 74, in parse_service_provider_opt
2014-01-17 12:12:31.025 |     raise n_exc.Invalid(msg)
2014-01-17 12:12:31.025 |   File "neutron/common/exceptions.py", line 198, in __init__
2014-01-17 12:12:31.025 |     super(Invalid, self).__init__()
2014-01-17 12:12:31.026 |   File "neutron/common/exceptions.py", line 34, in __init__
2014-01-17 12:12:31.026 |     super(NeutronException, self).__init__(self.message % kwargs)
2014-01-17 12:12:31.026 |   File "neutron/openstack/common/gettextutils.py", line 199, in __mod__
2014-01-17 12:12:31.026 |     params=self._sanitize_mod_params(other),
2014-01-17 12:12:31.027 |   File "neutron/openstack/common/gettextutils.py", line 215, in _sanitize_mod_params
2014-01-17 12:12:31.027 |     params = self._trim_dictionary_parameters(other)
2014-01-17 12:12:31.027 |   File "neutron/openstack/common/gettextutils.py", line 239, in _trim_dictionary_parameters
2014-01-17 12:12:31.028 |     params[key] = self._copy_param(dict_param[key])
2014-01-17 12:12:31.028 | KeyError: 'svc_type'

** Affects: neutron
     Importance: Undecided
         Status: New

** Summary changed:

- .ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises fails with KeyError 
+ ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises fails with KeyError

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

Title:
  ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises
  fails with KeyError

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  2014-01-17 12:12:31.017 | FAIL: neutron.tests.unit.test_provider_configuration.ParseServiceProviderConfigurationTestCase.test_parse_service_provider_opt_not_allowed_raises
  2014-01-17 12:12:31.017 | tags: worker-3
  2014-01-17 12:12:31.017 | ----------------------------------------------------------------------
  2014-01-17 12:12:31.017 | Empty attachments:
  2014-01-17 12:12:31.018 |   stderr
  2014-01-17 12:12:31.018 |   stdout
  2014-01-17 12:12:31.018 | 
  2014-01-17 12:12:31.019 | pythonlogging:'': {{{2014-01-17 12:07:13,288    ERROR [neutron.services.provider_configuration] Service type 'svc_type' is not allowed, allowed types: ['CORE', 'DUMMY', 'LOADBALANCER', 'FIREWALL', 'VPN', 'METERING', 'L3_ROUTER_NAT']}}}
  2014-01-17 12:12:31.019 | 
  2014-01-17 12:12:31.019 | Traceback (most recent call last):
  2014-01-17 12:12:31.020 |   File "neutron/tests/unit/test_provider_configuration.py", line 87, in test_parse_service_provider_opt_not_allowed_raises
  2014-01-17 12:12:31.020 |     self.assertRaises(q_exc.Invalid, provconf.parse_service_provider_opt)
  2014-01-17 12:12:31.020 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 396, in assertRaises
  2014-01-17 12:12:31.020 |     self.assertThat(our_callable, matcher)
  2014-01-17 12:12:31.021 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 408, in assertThat
  2014-01-17 12:12:31.021 |     mismatch = matcher.match(matchee)
  2014-01-17 12:12:31.021 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 99, in match
  2014-01-17 12:12:31.022 |     mismatch = self.exception_matcher.match(exc_info)
  2014-01-17 12:12:31.022 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  2014-01-17 12:12:31.022 |     mismatch = matcher.match(matchee)
  2014-01-17 12:12:31.023 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 388, in match
  2014-01-17 12:12:31.023 |     reraise(*matchee)
  2014-01-17 12:12:31.023 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/matchers/_exception.py", line 92, in match
  2014-01-17 12:12:31.024 |     result = matchee()
  2014-01-17 12:12:31.024 |   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 885, in __call__
  2014-01-17 12:12:31.024 |     return self._callable_object(*self._args, **self._kwargs)
  2014-01-17 12:12:31.024 |   File "neutron/services/provider_configuration.py", line 74, in parse_service_provider_opt
  2014-01-17 12:12:31.025 |     raise n_exc.Invalid(msg)
  2014-01-17 12:12:31.025 |   File "neutron/common/exceptions.py", line 198, in __init__
  2014-01-17 12:12:31.025 |     super(Invalid, self).__init__()
  2014-01-17 12:12:31.026 |   File "neutron/common/exceptions.py", line 34, in __init__
  2014-01-17 12:12:31.026 |     super(NeutronException, self).__init__(self.message % kwargs)
  2014-01-17 12:12:31.026 |   File "neutron/openstack/common/gettextutils.py", line 199, in __mod__
  2014-01-17 12:12:31.026 |     params=self._sanitize_mod_params(other),
  2014-01-17 12:12:31.027 |   File "neutron/openstack/common/gettextutils.py", line 215, in _sanitize_mod_params
  2014-01-17 12:12:31.027 |     params = self._trim_dictionary_parameters(other)
  2014-01-17 12:12:31.027 |   File "neutron/openstack/common/gettextutils.py", line 239, in _trim_dictionary_parameters
  2014-01-17 12:12:31.028 |     params[key] = self._copy_param(dict_param[key])
  2014-01-17 12:12:31.028 | KeyError: 'svc_type'

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


Follow ups

References