Questions tagged [pyrax]

17 questions
5
votes
4 answers

Set SSH Host IP Address on Rackspace for Ansible

The Question When using the rax module to spin up servers and get inventory, how do I tell Ansible to connect to the IP address on an isolated network rather than the server's public IP? Note: Ansible is being run from a server on the same isolated…
jchamberlain
  • 1,038
  • 8
  • 26
5
votes
2 answers

How to get RackSpace servers with a certain tag?

Trying to fetch all the servers registered to our RackSpace account under a certain tag. Using RackSpace's Python bindings for OpenStack, pyrax, we haven't found a way to do this. Is there some way to achieve it with that library, or is there…
Juan Carlos Coto
  • 11,900
  • 22
  • 62
  • 102
3
votes
1 answer

Error using pyrax module on OSX

I'm using the ansible rax.py script for my inventory. The problem I'm experiencing has nothing to do with ansible but with pyrax or pbr. I've taken the following steps: sudo pip install pyrax python >>> import pyrax And then I get: File…
Jason Prawn
  • 1,003
  • 11
  • 20
3
votes
1 answer

How do I make Cloudfiles FormPost return the "Access-Control-Allow-Origin" header to enable CORS?

I want to enable CORS in my Rackspace CluodFiles container, so after reading the docs, I see I have to set some container metadata (I'm using Python and Pyrax): from pyrax import cloudfiles cloudfiles.set_container_metadata(container_name, { …
Armando Pérez Marqués
  • 5,661
  • 4
  • 28
  • 45
2
votes
2 answers

Can't access register variable in a loop

I've been following this example playbook to create rackspace servers using Ansible http://nicholaskuechler.com/2015/01/09/build-rackspace-cloud-servers-ansible-virtualenv/ Which works great, but only works on one server at a time, so I am trying to…
Michael Mallett
  • 734
  • 1
  • 12
  • 28
2
votes
0 answers

Pyrax : This server could not verify that you are authorized to access the document you requested

I am using Rackspace cloud storage for my media uploads and implemented with django-cumulus. The problem is that, file uploads are working well but when I tried to access my uploaded file with the container URI my browser shows an error as "This…
Akhil Sundar
  • 1,267
  • 5
  • 18
  • 32
1
vote
0 answers

Error when trying to authenticate in Rackspace

I have got Following code from Rackspace Documentation. import pyrax pyrax.set_setting("identity_type", "rackspace") pyrax.set_default_region('ORD') pyrax.set_credentials('ot7336', '2755cd822321335191c8cc3ab46bbcff') but when i run the module I get…
1
vote
1 answer

Identity type in Rackspace in python

For Authenticating in Rackspace I got following code from Reckspace documentation import pyrax pyrax.set_setting("identity_type", "rackspace") pyrax.set_default_region('{region}') pyrax.set_credentials('{username}', '{apiKey}') I don't get what is…
1
vote
2 answers

pip "pyrax" dependency with iron worker

I created a Python script to use Rackspace's API (Pyrax) to handle some image processing. It works perfect locally, but when I upload it to Iron.io worker, it builds but does not import. I am using a Windows 8 pc, but my boss runs OS X and…
keithp
  • 352
  • 1
  • 4
  • 13
1
vote
1 answer

Does pyrax use servicenet if it's possible, or should I set it manually?

I'm using pyrax to manipulate Rackspace Cloud Files. Can I force pyrax to use servicenet instead of publicnet, or is it choosen automatically? In django-cumulus settings we have settings.CUMULUS['SERVICENET'] parameter to handle it, but I didn't…
Antonio
  • 822
  • 1
  • 10
  • 19
0
votes
1 answer

Pyrax API: Error in creating Compute/Memory flavors with boot-volumes

For background knowledge: Compute/Memory nova instances in Rackspace don't come with a local root volume, Rackspace has a policy to create them with an external SSD bootable volumes. Now the question: I am trying to create a Compute flavor instance…
shunya
  • 533
  • 1
  • 5
  • 16
0
votes
1 answer

How to attach a Cloud Block Storage volume to an OnMetal server with pyrax?

I would like to automate the attachment of a Cloud Block Storage volume to an OnMetal server running CentOS 7 by writing a Python script that make uses of the pyrax Python module. Do you know how to do it?
Erik Sjölund
  • 10,690
  • 7
  • 46
  • 74
0
votes
1 answer

Set Rackspace CloudServer Metadata with pyrax

I'm looking at using Rackspace for our server hosting and I need to be able to gain a list of servers based on tag via the API. I've seen other threads on here that its currently not returned in the API, but we can inspect the metadata of a server…
justcompile
  • 3,362
  • 1
  • 29
  • 37
0
votes
1 answer

How can I get permanent URL of file uploaded on rackspace using python pyrax

I am able to to upload image successfully. My code is: pyrax.set_setting("identity_type", "rackspace") pyrax.set_credentials("myuser_name", "my_api_key", region="ORD") cf = pyrax.cloudfiles cont =…
user3264482
0
votes
1 answer

Rackspace connecting to a server using Pyrax in python

I have recently started using pyrax, the python binding for the Rackspace API. I have a test account on Rackspace and a server running there. Using my username and api_key I can authenticate and list all the servers found in that region. How do I…
Pattu
  • 3,481
  • 8
  • 32
  • 41
1
2