Questions tagged [libcloud]

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

57 questions
4
votes
5 answers

GCE module in Ansible cannot find apache-libcloud although gce.py works

I installed ansible, apache-libcloud with pip. Also, I can use the gcloud cli and ansible works for any non-gce-related playbooks. When using the gce module as a task to create instances in an ansible playbook, the following error occurs: TASK:…
user1595955
  • 71
  • 1
  • 4
3
votes
1 answer

upload to google cloud storage using libcloud

I wish to to upload files to google cloud storage. I created a service account, converted the p12 file to a pem file, then referenced the service account email address and pem file in my driver: from libcloud.storage.types import Provider from…
Rich Tier
  • 9,021
  • 10
  • 48
  • 71
2
votes
1 answer

Get volumes attached to a node with apache-libcloud

How can I obtain a list of volumes that are currently attached to a node? I have the Node object, but since I created the volumes with a block device mapping when I created the node with deploy_node, I don't have the volume object that I could use…
David Gay
  • 1,094
  • 2
  • 16
  • 32
1
vote
1 answer

ModuleNotFoundError: No module names libcloud.utils

Using python 3.7.9, apache-libcloud 3.6.0 It was working fine on Ubuntu however error arose when replicating on Windows therefore guessing it is OS problem however cannot find any reference online. When I call get_driver() method from…
haneulkim
  • 4,406
  • 9
  • 38
  • 80
1
vote
1 answer

Is there a way to list all the objects in a bucket non-recursively in libcloud

I have a basic container that may point to s3 or any other storage service - and I'm trying to list the objects in a certain folder - but I can't find a way to do it non-recursively - all I can do is to pass it a prefix and ex_prefix (which is…
Ido H Levi
  • 181
  • 9
1
vote
0 answers

Libcloud Storage - How to specify the requests timeouts?

I use the Libcloud 3.3.1 python library to download objects from an Openstack swift provider. When using the requests package, one can specify the connect and read timeouts to avoid getting stuck when retrieving a file. Is it posssible to define…
1
vote
1 answer

Google Storage HEAD response missing content-length

I am using a library (Apache Libcloud) to make requests to google storage. Inside the library, a HEAD request is made to the URL that is queried within google storage. You can find the code for it here, search for def get_object. The important line…
1
vote
1 answer

Can I get gcp compute recommendations to resize the instance using any stackdriver monitoring api or gcloud command

I want to get the recommendation to resize the instances which gcp shows on there ui for compute instances either through any gcloud command or any api which google provides for stackdriver. (any method would work, just need to get the data of there…
1
vote
2 answers

stop flask duplicating a loaded variable

I'm building a basic cloud infrastructure management site and have a problem with the page that lists virtual machines. The flask app pulls a list that is generated via various cloud platform's APIs, and is in the below format: vm_list = { …
RobotJohnny
  • 69
  • 11
1
vote
1 answer

Connecting to softlayer object storage using apache libcloud

Problem: Trying to connect to Softlayer Swift Object Storage using apache libcloud and I can't get it to work. I have tried passing in different options to the provider but no matter what I pass in I get the same error. I would appreciate any and…
1
vote
2 answers

Obtain list of GCE projects with Apache libcloud

The method projects.list provides details on the API call to request Google Computer Engine "projects". Is it possible to do this also with libcloud? I haven't found any reference in the documentation nor the source code, so I think it's not…
orange
  • 7,755
  • 14
  • 75
  • 139
1
vote
3 answers

Delete record Libcloud (GoDaddy api)

I try to implement delete method for Record delate-record, but its my first time to use python and this api.
1
vote
2 answers

How to create Temporary Security Credentials on AWS

I'm trying to use Apache Libcloud (Web) and reading the Documentation of how to use it with Amazon EC2 I'm stuck on a step at the beginning. On this step: from libcloud.compute.types import Provider from libcloud.compute.providers import…
MinionAttack
  • 513
  • 1
  • 11
  • 26
1
vote
1 answer

Openstack Authentication issue when using libcloud

from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver import libcloud.security auth_usr = 'ryan@ccc.sss.com' auth_pass = '*********' auth_url = 'https://ccc.sss.com:5000/v2.0' project_name =…
Ryan
  • 219
  • 3
  • 12
1
vote
1 answer

Create a vm or cloud service on azure using libcloud?

I’m having a problem with libcloud/drivers/azure.py when I create a VM or a cloud service, I receive always a 400 bad request without a body. Could someone help me out of this please? Here is my code: # connectHandler use my pem file to create a…
zhitongLiu
  • 17
  • 5
1
2 3 4