← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1649300] [NEW] ocata - webob.exc.HTTPBadRequest: The Store URI was malformed.

 

Public bug reported:

We're hitting the following 2 errors in Ocata Ubuntu packages when
running unit tests:


glance.tests.unit.v2.test_images_resource.TestImagesController.test_add_location_possible_on_queued
---------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "glance/tests/unit/v2/test_images_resource.py", line 1607, in test_add_location_possible_on_queued
        output = self.controller.update(request, '1', changes)
      File "glance/common/utils.py", line 363, in wrapped
        return func(self, req, *args, **kwargs)
      File "glance/api/v2/images.py", line 148, in update
        change_method(req, image, change)
      File "glance/api/v2/images.py", line 201, in _do_add
        self._do_add_locations(image, path[1], value)
      File "glance/api/v2/images.py", line 314, in _do_add_locations
        raise webob.exc.HTTPBadRequest(explanation=e.msg)
    webob.exc.HTTPBadRequest: The Store URI was malformed.
    

glance.tests.unit.v2.test_images_resource.TestImagesController.test_replace_location_possible_on_queued
-------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "glance/tests/unit/v2/test_images_resource.py", line 1587, in test_replace_location_possible_on_queued
        output = self.controller.update(request, '1', changes)
      File "glance/common/utils.py", line 363, in wrapped
        return func(self, req, *args, **kwargs)
      File "glance/api/v2/images.py", line 148, in update
        change_method(req, image, change)
      File "glance/api/v2/images.py", line 182, in _do_replace
        self._do_replace_locations(image, value)
      File "glance/api/v2/images.py", line 288, in _do_replace_locations
        raise webob.exc.HTTPBadRequest(explanation=e.msg)
    webob.exc.HTTPBadRequest: The Store URI was malformed.


This started with introduction of the following commit:

commit 4ac8adbccc2b7bbef3d53f9141079c48f9c768f4
Author: Nikhil Komawar <nik.komawar@xxxxxxxxx>
Date:   Wed Sep 7 17:29:41 2016 -0400

   Restrict location updates to active, queued images

** Affects: glance
     Importance: Undecided
         Status: New

** Summary changed:

- webob.exc.HTTPBadRequest: The Store URI was malformed.
+ ocata - webob.exc.HTTPBadRequest: The Store URI was malformed.

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

Title:
  ocata - webob.exc.HTTPBadRequest: The Store URI was malformed.

Status in Glance:
  New

Bug description:
  We're hitting the following 2 errors in Ocata Ubuntu packages when
  running unit tests:

  
  glance.tests.unit.v2.test_images_resource.TestImagesController.test_add_location_possible_on_queued
  ---------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "glance/tests/unit/v2/test_images_resource.py", line 1607, in test_add_location_possible_on_queued
          output = self.controller.update(request, '1', changes)
        File "glance/common/utils.py", line 363, in wrapped
          return func(self, req, *args, **kwargs)
        File "glance/api/v2/images.py", line 148, in update
          change_method(req, image, change)
        File "glance/api/v2/images.py", line 201, in _do_add
          self._do_add_locations(image, path[1], value)
        File "glance/api/v2/images.py", line 314, in _do_add_locations
          raise webob.exc.HTTPBadRequest(explanation=e.msg)
      webob.exc.HTTPBadRequest: The Store URI was malformed.
      

  glance.tests.unit.v2.test_images_resource.TestImagesController.test_replace_location_possible_on_queued
  -------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "glance/tests/unit/v2/test_images_resource.py", line 1587, in test_replace_location_possible_on_queued
          output = self.controller.update(request, '1', changes)
        File "glance/common/utils.py", line 363, in wrapped
          return func(self, req, *args, **kwargs)
        File "glance/api/v2/images.py", line 148, in update
          change_method(req, image, change)
        File "glance/api/v2/images.py", line 182, in _do_replace
          self._do_replace_locations(image, value)
        File "glance/api/v2/images.py", line 288, in _do_replace_locations
          raise webob.exc.HTTPBadRequest(explanation=e.msg)
      webob.exc.HTTPBadRequest: The Store URI was malformed.

  
  This started with introduction of the following commit:

  commit 4ac8adbccc2b7bbef3d53f9141079c48f9c768f4
  Author: Nikhil Komawar <nik.komawar@xxxxxxxxx>
  Date:   Wed Sep 7 17:29:41 2016 -0400

     Restrict location updates to active, queued images

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