libcloud-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Milton Vega <nmv...@computingarchitects.com>
Subject Terremark authentication example using libcloud ...
Date Thu, 10 May 2012 20:00:59 GMT
Hello friends:

I was wondering if anyone had a Terremark libcloud authentication
example, similar to the ones indicated here for Amazon EC2 and Rackspace:

      http://libcloud.apache.org/getting-started.html

I've tried a few variations of the examples provided in the above link for
the Terremark case (a vCloud API implementation), but received an "Invalid
Credentials with the provider" Exception in each case.

So far I've tried passing Authentication using the three (3) variations
shown below (commented out) for "conn = Driver()".

Thank you in advance!

###############################################
#! /usr/bin/env python3

import libcloud.compute.types
import libcloud.compute.providers
import base64
#
TERREMARK_USERNAME = "some@email.address"
TERREMARK_PASSWORD = "some-password"
TERREMARK_B64AUTH = base64.b64encode(bytes(TERREMARK_USERNAME + ":" + TERREMARK_PASSWORD,
encoding='utf-8'))
#
Driver = libcloud.compute.providers.get_driver(libcloud.compute.providers.Provider.TERREMARK)

#conn = Driver(TERREMARK_USERNAME, TERREMARK_PASSWORD)
#conn = Driver(TERREMARK_B64AUTH)
#conn = Driver(TERREMARK_USERNAME + ":" + TERREMARK_PASSWORD)

[ ... snip ...  ]
#########################################

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message