Openstack hello world

I would like to write a program in the open stack cloud. When I search for resources, all I find is installation and administration guides.

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

Does anyone know of a good tutorial for this?

+7
source share
4 answers

You need to be more clear if you say "write a program in the Openstack cloud."

a. If you want you to write recipes for managing and playing your virtual machines in the Openstack cloud, 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 reveal everything you need to write an application.

b. If you want to contribute to the Openstack project, they must first prepare the development environment and then register on Launchpad. The code has moved to GitHub , but discussions of drawings and bugs are still on launchpad .

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

+1
source

"Hello world" is not a suitable sample program for openstack.

Yes, of course, you can configure the php dev environment in the instance and you can develop programs in it. In this example, you simply use openstack as the end user.

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

You can create an application (for example: DB as a service). In this application, the user simply clicks the “Request DB Instance” button, and then he will be provided with “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 the python apis call to create a new vm, install os and install the required software (database service), all of which will automatically open.

This is a simple sample application (PAAS) that works on Openstack.

+1
source

I did a research on your question, Look at the API functions here, for example api api, calculate api, etc. , without completing these functions, all openstack - you cannot encode anything programming. All you do is create the cloud and execute the commands manually.

0
source

From what I understand, OpenStack motivation does NOT build a server, nor an API, nor a database.

OpenStack is the management of the environment of several computers, databases and networks for their connection.

For example, as I understand it, you should be able to implement a function in your OpenStack cloud to create 10 virtual machines and 3 databases. This can be created by clicking on the toolbar or by calling some API.

Once the VM is up, you can install the Linux image on it . For example, a web server can be deployed to this new virtual machine, although this, I think, is not related to OpenStack.

0
source

All Articles