Cloud Engine: Unable to push images to RHEV "ERROR curl failed GET url `https://rhevm.example.com:8443/api/'"

Solution Verified - Updated -

Issue

These are the errors in /var/log/imagefactory.log:

2012-08-10 15:04:56,252 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder thread(aab80f5f) Message: Produced provider json: 
{
    "apipass": "REDACTED", 
    "apiurl": "https://rhevm.example.com:8443/api", 
    "apiuser": "rhevmadmin@example.com", 
    "cluster": "_any_", 
    "image": "/tmp/aab80f5f-d9c7-4136-94f4-c29f9ab24ad7", 
    "name": "rhevm-default", 
    "nfsdir": "/export", 
    "nfshost": "rhevm-storage", 
    "nfspath": "/export", 
    "target": "rhevm", 
    "timeout": 1800
}
2012-08-10 15:04:56,253 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder thread(aab80f5f) Message: Executing external RHEV-M push command (['/usr/bin/dc-rhev-image', '/tmp/tmpawttqc'])
2012-08-10 15:04:56,348 DEBUG paste.httpserver.ThreadPool thread(MainThread) Message: Added task (0 tasks queued)
2012-08-10 15:05:01,389 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder thread(aab80f5f) Message: Exception caught in ImageFactory
2012-08-10 15:05:01,390 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder thread(aab80f5f) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_rhevm_Builder.py", line 198, in push_image
    self.rhevm_push_image_upload(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_rhevm_Builder.py", line 284, in rhevm_push_image_upload
    (stdout, stderr, retcode) = subprocess_check_output(rhevm_push_command)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_rhevm_Builder.py", line 47, in subprocess_check_output
    raise ImageFactoryException("'%s' failed(%d): %s\nstdout: %s" % (cmd, retcode, stderr, stdout))
ImageFactoryException: '/usr/bin/dc-rhev-image /tmp/tmpawttqc' failed(1): None
stdout: ERROR curl failed GET url `https://rhevm.example.com:8443/api/'

Environment

  • CloudForms Cloud Engine 1.0
  • RHEV Cloud Provider

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.