← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1328738] Re: tempest.api.image.v1.test_images.ListImagesTest fails in setup with BadRequest - The HTTP URL is invalid

 

** Also affects: tempest
   Importance: Undecided
       Status: New

** Changed in: glance
       Status: Confirmed => Invalid

** Changed in: tempest
       Status: New => In Progress

** Changed in: tempest
   Importance: Undecided => Critical

** Changed in: tempest
     Assignee: (unassigned) => Matthew Treinish (treinish)

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

Title:
  tempest.api.image.v1.test_images.ListImagesTest fails in setup with
  BadRequest - The HTTP URL is invalid

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid
Status in Tempest:
  In Progress

Bug description:
  There are actually two tests that fail here with 400 responses when
  creating remote images:

  http://logs.openstack.org/07/99207/1/check/check-tempest-dsvm-
  full/83638c5/console.html

  The fingerprint in log stash is based on this one:

  2014-06-10 21:41:36.725 | {2} setUpClass (tempest.api.image.v1.test_images.ListImagesTest) [0.000000s] ... FAILED
  2014-06-10 21:41:36.725 | 
  2014-06-10 21:41:36.725 | Captured traceback:
  2014-06-10 21:41:36.726 | ~~~~~~~~~~~~~~~~~~~
  2014-06-10 21:41:36.726 |     Traceback (most recent call last):
  2014-06-10 21:41:36.726 |       File "tempest/test.py", line 76, in decorator
  2014-06-10 21:41:36.727 |         f(cls)
  2014-06-10 21:41:36.727 |       File "tempest/api/image/v1/test_images.py", line 117, in setUpClass
  2014-06-10 21:41:36.727 |         img1 = cls._create_remote_image('one', 'bare', 'raw')
  2014-06-10 21:41:36.728 |       File "tempest/api/image/v1/test_images.py", line 151, in _create_remote_image
  2014-06-10 21:41:36.728 |         location=location)
  2014-06-10 21:41:36.728 |       File "tempest/api/image/base.py", line 74, in create_image
  2014-06-10 21:41:36.729 |         disk_format, **kwargs)
  2014-06-10 21:41:36.729 |       File "tempest/services/image/v1/json/image_client.py", line 155, in create_image
  2014-06-10 21:41:36.729 |         resp, body = self.post('v1/images', None, headers)
  2014-06-10 21:41:36.730 |       File "tempest/common/rest_client.py", line 209, in post
  2014-06-10 21:41:36.730 |         return self.request('POST', url, extra_headers, headers, body)
  2014-06-10 21:41:36.730 |       File "tempest/common/rest_client.py", line 419, in request
  2014-06-10 21:41:36.731 |         resp, resp_body)
  2014-06-10 21:41:36.731 |       File "tempest/common/rest_client.py", line 468, in _error_checker
  2014-06-10 21:41:36.731 |         raise exceptions.BadRequest(resp_body)
  2014-06-10 21:41:36.732 |     BadRequest: Bad request
  2014-06-10 21:41:36.732 |     Details: Bad request
  2014-06-10 21:41:36.732 |     Details: 400 Bad Request
  2014-06-10 21:41:36.733 |     
  2014-06-10 21:41:36.733 |     The HTTP URL is invalid.

  
  http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiX2NyZWF0ZV9yZW1vdGVfaW1hZ2VcIiBBTkQgbWVzc2FnZTpcIkJhZFJlcXVlc3RcIiBBTkQgdGFnczpcInRlbXBlc3QudHh0XCIiLCJmaWVsZHMiOltdLCJvZmZzZXQiOjAsInRpbWVmcmFtZSI6IjYwNDgwMCIsImdyYXBobW9kZSI6ImNvdW50IiwidGltZSI6eyJ1c2VyX2ludGVydmFsIjowfSwic3RhbXAiOjE0MDI0NTAyNjA5NTAsIm1vZGUiOiIiLCJhbmFseXplX2ZpZWxkIjoiIn0=

  I checked the glance-api log and see 4 hits of "The HTTP URL is
  invalid" but those are DEBUG level logs so we can't fingerprint them
  with log stash (only indexes INFO level and higher).

  I checked logstash for "The HTTP URL is invalid" and that also shows
  up in unit test runs for glance, but it also shows up in successful
  job runs so is not a reliable fingerprint.

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


References