forked from devcamcar/python-novaclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_BETA.txt
116 lines (81 loc) · 3.88 KB
/
README_BETA.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#-----------------------------------------------------------------------------
# Rackspace Cloud Servers Python Client API.
#
# Beta Tester Notes
#-----------------------------------------------------------------------------
# Copyright (c) 2010, Rackspace.
# See COPYING for details.
#
# Authors:
# Steve Steiner, ssteinerX at gmail dot com.
# Mike Mayo, [email protected], twitter: @greenisus
#-----------------------------------------------------------------------------
Welcome to the beta test for the Rackspace Cloud Servers Python Client API.
At this stage, everything appears to work, and the cloud_servers_console.py
(in the cloudservers/tests directory) shows an example of almost every public
API call.
Test coverage is complete, but is not included in this release as I am still
working on standardizing the error handling and a few other details. This will
be added in the near future as it comes online.
At this point, we are just looking for feedback about documentation, handy
utility functions that you'd like to see, pretty much anything that would make
the product easier for you to use.
Installation
------------
Installation requires setuptools which can be installed by following the
instructions at:
http://pypi.python.org/pypi/setuptools
It is *highly recommended* that you do your installation by pulling the
current development version using git and installing the library in
development mode:
# git clone git://whatever.the.url.is
# cd python-cloudservers
# python setup.py develop
That way, as development proceeds, you can just do a:
cd python-cloudservers
git pull
to update to the latest release version.
This makes it very easy to keep up with the latest changes without having to
reinstall anything.
Running the End-user Test Suite
-------------------------------
The End-user Test Suite runs a set of non-destructive connection and status
type tests. It basically checks that your Rackspace user name and API key
are valid, then shows lists of all of the servers you have running, and lists
out all of the various server flavors, images, etc.
This is not the full test suite, but it will verify that everything can
connect, that the specific version of Python you're using is supported, and
that all required modules are present.
In order to run the test suite(s), you will need nose. Since you've already
got setuptools installed, this is as simple as:
# easy_install nose
Depending on your OS (OS X, particularly), you may have to run easy_install
with sudo as in:
# sudo easy_install nose
In order to run any of the tests, you must create a file called account.py,
in the cloudservers/tests directory, with the following contents:
# account.py
RS_UN = "your RS username"
RS_KEY = "your RS API key"
__all__ =(RS_UN, RS_KEY)
# end of account.py
Then, change to the cloudservers directory and type:
nosetests com.rackspace.cloud.servers.api.client.tests.user_tests
do NOT omit the com.rackspace.cloud.servers.api.client.tests.user_tests parameter or you will be running
the full test suite which creates, destroys, and resizes many servers in your
live account.
There is a console application in the python-cloudservers/cloudservers/tests
directory named cloud_servers_console.py, which can be run by:
# python cloud_servers_console.py
This will let you explore the API by hand and there's a little snippet of
demo code for each API call right in the app.
We're not sure how much that all would cost and would hate for you to be the
one to find out...
Bug Reports
-----------
We have an open bug tracking system at github.com/rackspace/python-cloudservers/issues
Please, before reporting bugs, we ask that you first:
1> Pull the latest version from version control. This product is under
heavy development and we may already have fixed your issue.
2> If you're still having a bug, please provide a minimal test case that
demonstrates the issue.