Jump to content
  • Announcements

    • admin

      PBS Forum Has Closed   06/12/17

      The PBS Works Support Forum is no longer active.  For PBS community-oriented questions and support, please join the discussion at http://community.pbspro.org.  Any new security advisories related to commercially-licensed products will be posted in the PBS User Area (https://secure.altair.com/UserArea/). 

Libcloud in python

Recommended Posts

Hi, i am using libcloud api interface in python,here is my code in python , i need to list images in cloustack:from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from libcloud.common.base import Response #import libcloud.security as sec #sec.VERIFY_SSL_CERT = False #USER = 'ACCESSKEY' #API_KEY = 'SECRETKEY' Driver = get_driver(Provider.CLOUDSTACK) url = 'MY URL' conn = Driver(key=USER, secret=API_KEY, url=url) print "Connection established" images = conn.list_images() print images


In that showing error like this : body = self.parse_body() File "/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 195, in parse_body driver=self.connection.driver) libcloud.common.types.MalformedResponseError: <MalformedResponseException in <libcloud.compute.drivers.cloudstack.CloudStackNodeDriver object at 0x7fc356f55b50> 'Failed to parse JSON'>: 'Unknown_ApiKey' Where iam missing? 

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now