Questions tagged [libcloud]

Apache Libcloud is a standard Python library that abstracts away differences from multiple cloud provider APIs.

57 questions
0
votes
0 answers

Can provider name in get_driver function of libcloud be sent as python input provider?

I have multiple clouds and want to send the provider name as input parameter to the get_driver function in apache libcloud.
0
votes
1 answer

How to list all the contents in a given key on Amazon S3 using Apache Libcloud?

The code to list contents in S3 using boto3 is known: self.s3_client = boto3.client( u's3', aws_access_key_id=config.AWS_ACCESS_KEY_ID, aws_secret_access_key=config.AWS_SECRET_ACCESS_KEY, …
Aviral Srivastava
  • 4,058
  • 8
  • 29
  • 81
0
votes
1 answer

How to download file using libcloud using Python3?

I have seen the documentation for downloading the file. However, I could not understand what object is in the following api: download_object(obj, destination_path, overwrite_existing=False, delete_on_failure=True)[source] Download an object to the…
aviral sanjay
  • 953
  • 2
  • 14
  • 31
0
votes
1 answer

How to download and upload files on S3 and GCS using Apache Libcloud using Python3?

The documentation states creating containers but no API has been explained as to how one can download and upload a file, single file not a bunch of them. The language I am looking for is Python3.
aviral sanjay
  • 953
  • 2
  • 14
  • 31
0
votes
1 answer

libcloud: missing 1 required positional argument error during driver init

I'm using: libcloud 2.2.1 python 3.5.2 virtualenv GCE service account with a json credential file Python code looks like this: from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver def run(): """ Run…
jobu1342
  • 150
  • 7
0
votes
1 answer

Libcloud ECS access

trying to test out the ECS driver of libcloud for a project. i wrote a simple test: with open("conf.json") as f: data = json.loads(f.read()) driver = get_driver(getattr(Provider,'ECS')) with…
darkpirate
  • 712
  • 3
  • 10
  • 27
0
votes
1 answer

Cannot authenticate using libcloud GCE Driver

I'm trying to use libcloud (1.3.0) to connect to my GCE project using the following code: from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver USER_ID = "nnnnnnnn@cloudservices.gserviceaccount.com" KEYFILE =…
0
votes
1 answer

Error in libcloud and vsphere integration

I am using libcloud 1.2.1 with pysphere 0.1.7. I am getting the below error when trying to connect to the ESXi host. Traceback (most recent call last): File "", line 1, in File…
AvnishSingh
  • 488
  • 3
  • 10
0
votes
1 answer

Apache LibCloud and Rackspace Cloudfiles

I've started using the Apache libcloud library with python to allow me to talk to rackspace cloudfiles in python3 (pyrax is 2 only) I've got this running successfully and am uploading files / creating containers etc happily. Sadly, I appear to only…
Alex Hellier
  • 435
  • 1
  • 7
  • 15
0
votes
1 answer

TypeError: 'OpenStackNetwork' object does not support indexing

I have a function: node = self.conn.NodeDriver.create_node(name = utils.VM_NAME % (course_id, names[i], idx), image = images[i], size = sizes[i], networks = network[i], ex_keyname = key_pair.name) …
Vu Hiep
  • 1
  • 3
0
votes
1 answer

Libcloud: how to upload an image?

I've looked through libcloud docs about OpenStack (https://libcloud.readthedocs.org/en/latest/compute/drivers/openstack.html), but couldn't find any method to upload a new image. Is it possible to just upload a new image, or I can only create an…
Vini.g.fer
  • 11,639
  • 16
  • 61
  • 90
0
votes
1 answer

Running Apache Libcloud tests on Windows 7

I am not much familiar with python development on Windows 7 so I am going through problems to run tests of Apache Libcloud. I am trying to run the tests for a dns driver. The following is the command I am using. python…
orthodoxpirate
  • 1,934
  • 2
  • 17
  • 17
0
votes
1 answer

Apache libcloud, dns, and godaddy - Name or service not known

Using that apache libloud docs and valid credentials i get the below error trying to list domains on godaddy. Does libcloud noi longer support godaddy? >>> from libcloud.dns.types import Provider >>> from libcloud.dns.providers import…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

How to monitor Virtual Machines on OpenNebula via cli?

I am trying to develop a cloud-bursting solution for our cluster. What I need is a way to monitor the VM's on the openNebula cluster and turn off those vm's whose cpu consumption is less then 10% for a certain amount of time. I am stuck at…
user4516335
0
votes
1 answer

Django-storage using apache-libcloud to upload files to google storage as shared publicly

I setup my django application to use google cloud storage, via apache-libcloud and django-storages. my LIBCLOUD_PROVIDER looks something like this LIBCLOUD_PROVIDERS = { 'default': { 'type':…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143