PULL REQUEST: vps.net implementation

7 views
Skip to first unread message

Jeremy Orem

unread,
Sep 28, 2009, 12:30:14 AM9/28/09
to libcloud
I've attempted to implement all methods, except list_sizes, for
vps.net. Any suggestions?

The following changes since commit
e59d02265343527eb49e30aac87d186035b6f691:
Jeremy Orem (1):
Adds optional arguments to create_node.

are available in the git repository at:

git://github.com/oremj/libcloud master

Jeremy Orem (8):
Different EC2 prices for US and EU.
Added list_nodes to vpsnet.
Added destroy_node to VPSNet.
Adding list_images to vpsnet.
Some cleanup.
Added create_node and fixed list_images to display images from
all clouds.
Add reboot_node to vps.net.
vps.net code cleanup.

libcloud/drivers/ec2.py | 46 ++++++++----
libcloud/drivers/vpsnet.py | 171 +++++++++++++++++++++++++
+------------------
libcloud/providers.py | 4 +-
test/test_ec2.py | 4 +-
test/test_vpsnet.py | 169 ++++++++++++++++++++++++++++++++++++
+++++++
5 files changed, 305 insertions(+), 89 deletions(-)
create mode 100644 test/test_vpsnet.py

Alex Polvi

unread,
Sep 28, 2009, 12:59:27 AM9/28/09
to libc...@googlegroups.com
Hey,

I noticed you passed size.id to slices_required. Does this mean that to boot a node you have to create a size object with the id correlating to the number of VPS "nodes" you want for that VPS? If so, I guess we should just create a list_sizes function that generates all possible combinations of sizes.

Seems like the goal should be to be able to list_sizes, then take one of those objects and boot it. I'm not super familiar with the VPS.net API -- but do you think that'd work?

-Alex
--
co-founder, cloudkick.com
twitter.com/cloudkick
541 231 0624

Jeremy Orem

unread,
Sep 28, 2009, 1:41:49 PM9/28/09
to libcloud
I've implemented list_sizes. Any other suggestions?

The following changes since commit
e59d02265343527eb49e30aac87d186035b6f691:
Jeremy Orem (1):
Adds optional arguments to create_node.

are available in the git repository at:

git://github.com/oremj/libcloud master

Jeremy Orem (9):
Different EC2 prices for US and EU.
Added list_nodes to vpsnet.
Added destroy_node to VPSNet.
Adding list_images to vpsnet.
Some cleanup.
Added create_node and fixed list_images to display images from
all clouds.
Add reboot_node to vps.net.
vps.net code cleanup.
Adding list_sizes to vps.net. Also, modified create_node test to
use the list_sizes method.

libcloud/drivers/ec2.py | 46 ++++++----
libcloud/drivers/vpsnet.py | 211 ++++++++++++++++++++++++++++
+---------------
libcloud/providers.py | 4 +-
test/test_ec2.py | 4 +-
test/test_vpsnet.py | 190 ++++++++++++++++++++++++++++++++++++
+++
5 files changed, 366 insertions(+), 89 deletions(-)
create mode 100644 test/test_vpsnet.py

Alex Polvi

unread,
Sep 29, 2009, 5:29:12 AM9/29/09
to libc...@googlegroups.com
Per our conversation on IRC -- I've merged/pushed the VPS.net changed. VPS.net is now supported on libcloud!

Also, I've made oremj and jedsmith both committers on the cloudkick/libcloud branch. You should be able to push updates directly to head now.

Thanks for all your contributions!

-Alex
Reply all
Reply to author
Forward
0 new messages