简体   繁体   English

OpenStack API-cURL请求管理程序信息

[英]OpenStack API - cURL request hypervisor information

I am making some HTTP requests using cURL to the OpenStack API to gather information about my OpenStack deployment. 我正在使用cURL向OpenStack API发出一些HTTP请求,以收集有关我的OpenStack部署的信息。 I have used "http://api.openstack.org/" for the URI information about different sets of requests. 我已将“ http://api.openstack.org/”用于有关不同请求集的URI信息。 However, I need information about the hypervisor: its IP addresses etc. I have not been able to find a way to access hypervisor information from the OpenStack cloud I have deployed. 但是,我需要有关虚拟机监控程序的信息:其IP地址等。我还无法找到一种方法来从已部署的OpenStack云中访问虚拟机监控程序信息。

To try different things, I looked at the URIs used in the python nova-client documentation and it recently added the OpenStack hypervisor information option and it uses the URI like "/os-hypervisors/detail/" but this does not work for me. 为了尝试不同的事情,我查看了python nova-client文档中使用的URI,它最近添加了OpenStack虚拟机管理程序信息选项,它使用的URI类似于“ / os-hypervisors / detail /”,但这对我不起作用。 It simply gives me an HTTP 404 error. 它只是给我一个HTTP 404错误。

Can somebody please help me find a way to get the hypervisor information (IP addresses at least) using cURL requests? 有人可以帮我找到一种使用cURL请求获取虚拟机监控程序信息(至少是IP地址)的方法吗?

NOTE: I am using the OpenStack Diablo Release. 注意:我正在使用OpenStack Diablo版本。 I have all the services running except for nova-volume and Swift. 除了nova-volume和Swift,我所有的服务都在运行。

PS If you need more information, please let me know. PS如果您需要更多信息,请告诉我。 I will be happy to provide you with that. 我很乐意为您提供。 I really need to get this working. 我真的需要让这个工作。

Thanks a lot. 非常感谢。

To be honest I am not sure those API queries existed in Diablo. 老实说,我不确定暗黑破坏神中是否存在那些API查询。 You may want to upgrade. 您可能要升级。 There have been many advances since diablo. 自《暗黑破坏神》以来,已有许多进步。 In fact the grizzly release is nearing completion right now. 事实上灰熊释放,现在已接近尾声。 It's a very good time to consider upgrading. 现在是考虑升级的好时机。

Alternatively you can tie into a backend monitoring system to query libvirt directly. 另外,您可以绑定到后端监视系统以直接查询libvirt。 I've done this before to great success. 我之前已经做到了这一点,并取得了巨大的成功。 I've used nagios style plugins to query libvirt on nodes via NRPE and return information. 我已经使用了nagios样式插件来通过NRPE查询节点上的libvirt并返回信息。 And NRPE can be used outside of simple nagios reporting environments to provide custom reporting data sets. NRPE可以在简单的nagios报告环境之外使用,以提供自定义报告数据集。

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

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