简体   繁体   English

OpenStack Nova API

[英]openstack nova api

I wand to add Hot Memory Add/Remove feature in OpenStack for my project. 我想在OpenStack中为我的项目添加Hot Memory Add / Remove功能 How can i do it in openstack.also can anybody suggest me how can I call libvirt setmem from openstack . 我该如何在openstack中做到这一点。有人可以建议我如何从openstack调用libvirt setmem

What you means is adding some new api to openstack? 您的意思是向openstack添加一些新的api? There are some steps you should follow, first, add apis in the project of python-xxxclient, second, if you add this api in project nova, you should add the same api in nova-api module. 您应遵循一些步骤,首先,在python-xxxclient项目中添加api,其次,如果您在nova项目中添加此api,则应在nova-api模块中添加相同的api。 you can read this blog . 您可以阅读此博客

grizzly/src/python-novaclient/novaclient/v1_1/shell.py

this file has defined all api, you can add what you need. 此文件已定义所有api,您可以添加所需的内容。

nova/api/openstack/compute/contrib

this directory contains most files of nova api. 该目录包含nova api的大多数文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM