Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

openstack Hello World

I would like to write a program on an open-stack cloud. When I search for resources, all I find are installation and Admin manuals.

I have a cloud installed, now how do I run a program on it? An example of using the message queue or the blob-store would be nice.

Does anyone know of a good programming tutorial for this?

like image 815
eshalev Avatar asked Nov 23 '11 15:11

eshalev


2 Answers

You need to be more clear when you say 'write a program on an Openstack cloud'.

a. If you mean that you want to write recipes to control and play with your VMs in an Openstack cloud, they you should consider installing and using the following packages:

  • python-novaclient - client library for OpenStack Compute API
  • python-nova-adminclient - client for administering Openstack Nova

The above two libraries expose everything you will need to write an application.

b. If however, you are looking forward to contribute to Openstack project, they should prepare you development environment first and then register yourself on Launchpad. The code has moved to GitHub but the blueprints and bug discussions are still on launchpad.

Hope it helps. Let me know if you need further help in this regard.

like image 172
Deepak Garg Avatar answered Oct 06 '22 04:10

Deepak Garg


'Hello world' is not suitable example program for openstack.

Yes ofcourse you can setup your php dev environment in an instance and can develop programs in it. In this example you are just consuming openstack as an end user.

The real power of openstack can be recognised in this example:

You can design an application (eg: DB as a Service). In this applciation , the user just clicks a 'Request DB Instance' button and then he will be provided a 'ipaddress','port number' and credentials for his connection string. So that he can connect his application to the generated database.

In the background you can use python apis call for creating a new vm , install the os and install the required softwares (Database service) all these will be done by openstack automatically.

This is a simple example application (PAAS) which runs above Openstack.

like image 25
Arun prasath Avatar answered Oct 06 '22 03:10

Arun prasath