How to launch instance with OpenStack API

Asked by Hisaki Ohara

Although there are several instructions on how to launch an instance with euca tools via EC2 API, I cannot find a way to use OpenStack (RackSpace) API. According to the following web site,
http://www.rackspacecloud.com/cloud_hosting_products/servers/api
python bindings have not been released yet.

Is there any way to launch instance with OpenStack API? Or am I missing something?
I'm interested in utilizing flavors API.

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Soren Hansen (soren) said :
#2

Is this still relevant to you, or did you find an answer elsewhere?

Revision history for this message
Hisaki Ohara (hisaki) said :
#3

I discussed with Mr. Mike Mayo for my question.
Let me summarize as follows, although I'm not 100% sure.

The tool of euca2ools is for EC2 API, not for OpenStack API.
To launch an instance with OpenStack API, the developer needs to refer to the dev guide.
http://docs.rackspacecloud.com/servers/api/v1.0/cs-devguide-20091015.pdf
In other words, there is no easy way as like euca2ools.

Revision history for this message
Sandy Walsh (sandy-walsh) said :
#4

Hi Hisaki,

I've recently started playing with python-cloudserver
http://packages.python.org/python-cloudservers/
https://github.com/jacobian/python-cloudservers
(and part of ubuntu)

However it doesn't work out of the box. First you have to change the host URL in client.py to point to your nova installation (take note of trailing slashes / ).

Next, the x-Server-Management-Url which Nova auth may return an ill-formed URL depending on your Nova installation. You may need to tweak this in nova/api/openstack/auth.py _get_server_mgmt_url()

There is a bug filed on this: https://bugs.launchpad.net/nova/+bug/680709

I was able to get cloudserver going after these changes. I assume you should be able to create a server with it, but I haven't tried specifically.

We're going to need a tool like this regardless, so track the bug to see how things progress. I've recently forked the cloudserver project to make the necessary changes.

Revision history for this message
Hisaki Ohara (hisaki) said :
#5

Hello Sandy,

This is the information what I really want to know! Thank you.
I didn't know that there was the package of python-cloudservers.
As you already tried, this seems to be a good start point.
Let me try. Thank you again.