← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1632723] Re: New WebOb minimum version requirement of >=1.6.1

 

Yeah the change in newton that added this:

https://review.openstack.org/#/c/352573/6/nova/api/openstack/placement/util.py@41

And that json_formatter kwarg was in webob 1.6.0:

https://github.com/Pylons/webob/commit/87c8749a57c1ff2442db2d74d9fb86935b7b201e

** Also affects: nova/newton
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1632723

Title:
  New WebOb minimum version requirement of >=1.6.1

Status in OpenStack Compute (nova):
  New
Status in OpenStack Compute (nova) newton series:
  New

Bug description:
  Description
  ===========
  I385c36e0af1a8a785c02e21ba4efa6046cde6366 introduced a new requirement of WebOb>=1.6.1 that has not been reflected in requirements.txt either globally or within Nova.

  Steps to reproduce
  ==================
  # tox -e py27 nova.tests.unit.api.openstack.placement.test_util.TestRequireContent.test_fail_no_content_type
  [..]
  Slowest Tests
  Test id                                                                                         Runtime (s)
  ----------------------------------------------------------------------------------------------  -----------
  nova.tests.unit.api.openstack.placement.test_util.TestRequireContent.test_fail_no_content_type  0.130

  ======
  Totals
  ======
  Ran: 1 tests in 15.0000 sec.
   - Passed: 1
   - Skipped: 0
   - Expected Fail: 0
   - Unexpected Success: 0
   - Failed: 0
  Sum of execute time for each test: 0.1295 sec.

  ==============
  Worker Balance
  ==============
   - Worker 0 (1 tests) => 0:00:00.129534
  [..]
  # . .tox/py27/bin/activate
  (py27)# pip list | grep -i webob
  WebOb (1.6.1)
  (py27)# pip install WebOb==1.2.3
  Collecting WebOb==1.2.3
    Downloading WebOb-1.2.3.tar.gz (191kB)
      100% |████████████████████████████████| 194kB 319kB/s 
  Building wheels for collected packages: WebOb
    Running setup.py bdist_wheel for WebOb ... done
    Stored in directory: /home/lyarwood/.cache/pip/wheels/41/d1/c9/fd5b1a17465c81580c3b5c8876a4611c8c677b81a94dad8f72
  Successfully built WebOb
  Installing collected packages: WebOb
    Found existing installation: WebOb 1.6.1
      Uninstalling WebOb-1.6.1:
        Successfully uninstalled WebOb-1.6.1
  Successfully installed WebOb-1.2.3
  (py27)# deactivate 
  # tox -e py27 nova.tests.unit.api.openstack.placement.test_util.TestRequireContent.test_fail_no_content_type
  [..]
  {0} nova.tests.unit.api.openstack.placement.test_util.TestRequireContent.test_fail_no_content_type [0.133657s] ... FAILED

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "nova/tests/unit/api/openstack/placement/test_util.py", line 229, in test_fail_no_content_type
          self.handler, req)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 485, in assertRaises
          self.assertThat(our_callable, matcher)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 496, in assertThat
          mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 547, in _matchHelper
          mismatch = matcher.match(matchee)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
          mismatch = self.exception_matcher.match(exc_info)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
          mismatch = matcher.match(matchee)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 475, in match
          reraise(*matchee)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
          result = matchee()
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 1049, in __call__
          return self._callable_object(*self._args, **self._kwargs)
        File "nova/api/openstack/placement/util.py", line 131, in decorated_function
          json_formatter=json_error_formatter)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/webob/exc.py", line 263, in __init__
          **kw)
        File "/home/lyarwood/redhat/devel/src/openstack/nova/.tox/py27/lib/python2.7/site-packages/webob/response.py", line 155, in __init__
          "Unexpected keyword: %s=%r" % (name, value))
      TypeError: Unexpected keyword: json_formatter=<function json_error_formatter at 0x7fc28376c848>
  [..]

  Expected result
  ===============

  Actual result
  =============

  
  Environment
  ===========
  1. Exact version of OpenStack you are running. See the following
    list for all releases: http://docs.openstack.org/releases/

  # git rev-parse HEAD
  2669f1c73b7dee923c399729d95eee4d83c7ea56

  2. Which hypervisor did you use?
     (For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
     What's the version of that?
  N/A

  2. Which storage type did you use?
     (For example: Ceph, LVM, GPFS, ...)
     What's the version of that?
  N/A

  3. Which networking type did you use?
     (For example: nova-network, Neutron with OpenVSwitch, ...)
  N/A

  Logs & Configs
  ==============
  N/A

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


References