← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1438985] [NEW] Test of location update failed

 

Public bug reported:

Now there are 3 test cases related to location update always failed,
which is blocking glance jenkins gate. See

http://logs.openstack.org/01/166501/3/check/gate-glance-
python27/276e6e6/testr_results.html.gz


Test Group/Test case	Count	Pass	Fail	Error	Skip	View	
2673	2669	3	0	1	Detail	
test_update_replace_duplicate_locations
fail
test_update_replace_locations_status_exception
fail
test_update_add_locations_status_exception
fail


ft1.1053: glance.tests.unit.v2.test_images_resource.TestImagesController.test_update_replace_duplicate_locations_StringException: Traceback (most recent call last):
  File "glance/tests/unit/v2/test_images_resource.py", line 1549, in test_update_replace_duplicate_locations
    request, UUID1, changes)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
    reraise(*matchee)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "glance/common/utils.py", line 509, in wrapped
    return func(self, req, *args, **kwargs)
  File "glance/api/v2/images.py", line 142, in update
    change_method(req, image, change)
  File "glance/api/v2/images.py", line 172, in _do_replace
    self._do_replace_locations(image, value)
  File "glance/api/v2/images.py", line 262, in _do_replace_locations
    image.locations = value
  File "glance/domain/proxy.py", line 23, in set_attr
    return setattr(getattr(self, target), attr, value)
  File "glance/domain/proxy.py", line 23, in set_attr
    return setattr(getattr(self, target), attr, value)
  File "glance/api/policy.py", line 170, in locations
    self.image.locations = new_locations
  File "glance/quota/__init__.py", line 359, in locations
    value)
  File "glance/quota/__init__.py", line 62, in _calc_required_size
    location['url'], context=context)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/glance_store/backend.py", line 282, in get_size_from_backend
    return store.get_size(loc, context=context)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/glance_store/_drivers/http.py", line 163, in get_size
    raise exceptions.BadStoreUri(message=reason)
glance_store.exceptions.BadStoreUri: The HTTP URL is invalid.

** Affects: glance
     Importance: High
     Assignee: Fei Long Wang (flwang)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Fei Long Wang (flwang)

** Changed in: glance
   Importance: Undecided => High

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

Title:
  Test of location update failed

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Now there are 3 test cases related to location update always failed,
  which is blocking glance jenkins gate. See

  http://logs.openstack.org/01/166501/3/check/gate-glance-
  python27/276e6e6/testr_results.html.gz

  
  Test Group/Test case	Count	Pass	Fail	Error	Skip	View	
  2673	2669	3	0	1	Detail	
  test_update_replace_duplicate_locations
  fail
  test_update_replace_locations_status_exception
  fail
  test_update_add_locations_status_exception
  fail

  
  ft1.1053: glance.tests.unit.v2.test_images_resource.TestImagesController.test_update_replace_duplicate_locations_StringException: Traceback (most recent call last):
    File "glance/tests/unit/v2/test_images_resource.py", line 1549, in test_update_replace_duplicate_locations
      request, UUID1, changes)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
      self.assertThat(our_callable, matcher)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
      mismatch = self.exception_matcher.match(exc_info)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
      mismatch = matcher.match(matchee)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
      reraise(*matchee)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
      result = matchee()
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
      return self._callable_object(*self._args, **self._kwargs)
    File "glance/common/utils.py", line 509, in wrapped
      return func(self, req, *args, **kwargs)
    File "glance/api/v2/images.py", line 142, in update
      change_method(req, image, change)
    File "glance/api/v2/images.py", line 172, in _do_replace
      self._do_replace_locations(image, value)
    File "glance/api/v2/images.py", line 262, in _do_replace_locations
      image.locations = value
    File "glance/domain/proxy.py", line 23, in set_attr
      return setattr(getattr(self, target), attr, value)
    File "glance/domain/proxy.py", line 23, in set_attr
      return setattr(getattr(self, target), attr, value)
    File "glance/api/policy.py", line 170, in locations
      self.image.locations = new_locations
    File "glance/quota/__init__.py", line 359, in locations
      value)
    File "glance/quota/__init__.py", line 62, in _calc_required_size
      location['url'], context=context)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/glance_store/backend.py", line 282, in get_size_from_backend
      return store.get_size(loc, context=context)
    File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/glance_store/_drivers/http.py", line 163, in get_size
      raise exceptions.BadStoreUri(message=reason)
  glance_store.exceptions.BadStoreUri: The HTTP URL is invalid.

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


Follow ups

References