开放堆栈你好世界

发布于 2024-12-18 01:53:54 字数 121 浏览 2 评论 0 原文

我想在开放堆栈云上编写一个程序。 当我搜索资源时,我找到的只是安装和管理手册。

我安装了云,现在如何在其上运行程序? 使用消息队列或 blob 存储的示例会很好。

有谁知道这方面的好的编程教程吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

意犹 2024-12-25 01:53:54

当您说“在 Openstack 云上编写程序”时,您需要说得更清楚。

a. 如果您的意思是要编写方法来控制和使用 Openstack 云中的虚拟机,那么您应该考虑安装和使用以下软件包:

  • python-novaclient - OpenStack 计算的客户端库API
  • python-nova-adminclient - 用于管理 Openstack Nova 的客户端

上述两个库公开了编写应用程序所需的所有内容。

b. 但是,如果您希望为 Openstack 项目做出贡献,他们应该首先为您准备开发环境,然后在 Launchpad 上注册。代码已移至 GitHub,但蓝图和错误讨论仍在 启动板

希望有帮助。如果您在这方面需要进一步的帮助,请告诉我。

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.

勿忘心安 2024-12-25 01:53:54

“Hello world”不适合 OpenStack 示例程序。

是的,当然您可以在实例中设置您的 php 开发环境并可以在其中开发程序。在此示例中,您只是作为最终用户使用 openstack。

在这个例子中可以认识到openstack的真正力量:

您可以设计一个应用程序(例如:DB as a Service)。在此应用程序中,用户只需单击“请求数据库实例”按钮,然后将为他提供“IP 地址”、“端口号”和连接字符串的凭据。这样他就可以将他的应用程序连接到生成的数据库。

在后台,您可以使用 python api 调用来创建新的虚拟机,安装操作系统并安装所需的软件(数据库服务),所有这些都将由 openstack 自动完成。

这是一个在 Openstack 之上运行的简单示例应用程序 (PAAS)。

'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.

掩于岁月 2024-12-25 01:53:54

我对你的问题进行了研究,看看这里的API函数,即对象api、计算api等api,没有这些功能已经完成,所有的 OpenStack 都是你无法编写任何明智的编程代码。你所做的一切只是构建一个云并手动执行命令。

I made a research on your question, Look at the API functions here i.e. object api, compute api etc apis, without these functionality getting finished, all the openstack is you cannot code anything programming wise. Anything you do is only you build a cloud and execute commands manually.

总攻大人 2024-12-25 01:53:54

据我了解,OpenStack 背后的动机不是构建服务器、API 或数据库。

OpenStack 旨在管理由多台机器、数据库和连接它们的网络组成的环境。

例如,据我了解,您应该能够在 OpenStack 云上实现一项功能来创建 10 个虚拟机和 3 个数据库。这可以通过单击仪表板或调用某些 API 来创建。

虚拟机启动后,您可以在其上安装 Linux 映像。例如,可以在该新虚拟机上部署 Web 服务器,尽管我认为这与 OpenStack 无关。

From what I understand, the motivation behind OpenStack is NOT building a server, nor API, nor a database.

OpenStack is about managing an environment of multiple machines, databases and the networking to connect them all.

For example, as I understand it, you should be able to implement a feature on your OpenStack cloud to create 10 VMs and 3 DBs. This can be created using a click on the dashboard or invoke some API.

Once a VM is up, you can install a Linux image on it. A web-server, for example, can then be deployed on that new VM, though this, I think, is unrelated to OpenStack.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文