In Cloud Engine, trying to push an image to RHEV fails with a Status 500 error

Solution Verified - Updated -

Issue

  • Pushing image to RHEV fails
  • Seeing this error in /var/log/imagefactory.log:
2012-07-25 15:24:03,768 DEBUG imgfac.BuildDispatcher.BuildDispatcher thread(worker 7) Message: Testing provider for XML: syntax error: line 1, column 0
2012-07-25 15:24:03,768 DEBUG imgfac.BuildDispatcher.BuildDispatcher thread(worker 7) Message: Testing provider for JSON: No JSON object could be decoded
2012-07-25 15:24:03,768 WARNING imgfac.BuildDispatcher.BuildDispatcher thread(worker 7) Message: No matching provider found for rhev-provider, using "condorcloud" by default.
2012-07-25 15:24:03,769 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 7) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "456539ee-761c-46d7-b82f-7f22f3d3dc92" && $target == "condorcloud")
2012-07-25 15:24:03,810 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 7) Message: Image Warehouse returned status (404) with message:
2012-07-25 15:24:03,810 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 7) Message: Getting metadata (['template']) from http://localhost:9090/target_images/None
2012-07-25 15:24:03,811 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 7) Message: Image Warehouse returned status (404) with message:
2012-07-25 15:24:03,812 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 7) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2012-07-25 15:24:03,812 ERROR imgfac.rest.imagefactory thread(worker 7) Message: 'template' must be a UUID, URL, XML string or XML document path...
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/rest/imagefactory.py", line 191, in push_image
    job = BuildDispatcher().push_image_to_providers(image_id, build_id, (provider, ), credentials)[0]
  File "/usr/lib/python2.6/site-packages/imgfac/BuildDispatcher.py", line 83, in push_image_to_providers
    job = job_cls(template, target, image_id, build_id, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/imgfac/BuildJob.py", line 49, in __init__
    self.template = template if isinstance(template, Template) else Template(template)
  File "/usr/lib/python2.6/site-packages/imgfac/Template.py", line 79, in __init__
    raise ValueError("'template' must be a UUID, URL, XML string or XML document path...")
ValueError: 'template' must be a UUID, URL, XML string or XML document path...
2012-07-25 15:24:03,813 ERROR imgfac.rest.imagefactory thread(worker 7) Message: HTTP Response 500
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/rest/imagefactory.py", line 212, in create_provider_image
    return push_image(image_id, build_id, target_image_id)
  File "/usr/lib/python2.6/site-packages/imgfac/rest/imagefactory.py", line 60, in decorated_function
    return f(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/imgfac/rest/imagefactory.py", line 202, in push_image
    raise HTTPResponse(status=500, output=e)
HTTPResponse: HTTP Response 500

Environment

  • CloudForms Cloud Engine 1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In