cURL request hypervisor information

Asked by Fawad Khaliq

Hi,

I am making some HTTP requests using cURL to the OpenStack API to gather information about my OpenStack deployment.
I have used "http://api.openstack.org/" for the URI information about different sets of requests. 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.

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. It simply gives me an HTTP 404 error.

Can somebody please help me find a way to get the hypervisor information (IP addresses at least) using cURL requests?

NOTE: I am using the OpenStack Diablo Release. I have all the services running except for nova-volume and Swift.

P.S. If you need more information, please let me know. I will be happy to provide you with that. I really need to get this working.

Thanks a lot.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Armando Migliaccio
Solved:
Last query:
Last reply:
Revision history for this message
Armando Migliaccio (armando-migliaccio) said :
#1

Um...if you are using Diablo you won't be able to access the latest os-hypervisor extensions:

https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py

as they have been added in Folsom.

Fundamentally, I am not sure why you would need to know such low-level info, like hypervisor IP addresses; what are you trying to achieve?

Revision history for this message
Fawad Khaliq (fawadkhaliq) said :
#2

Thank you for your response Armando.

I also have Essex setup now and it gives me the same 404 error, means the information is not available.

I need this information for a small university project work I am doing.

Are you sure it will be in the Folsom release as it will be coming out in Fall 2012? Why not in Essex?

Thanks,
Fawad

Revision history for this message
Best Armando Migliaccio (armando-migliaccio) said :
#3

Essex is closed: http://wiki.openstack.org/StableBranch

If you need new functionality you can try and propose it for trunk:

http://wiki.openstack.org/HowToContribute

Hope this help,
A.

Revision history for this message
Fawad Khaliq (fawadkhaliq) said :
#4

It did help. Thank you so much, Armando.

Revision history for this message
Fawad Khaliq (fawadkhaliq) said :
#5

Thanks Armando Migliaccio, that solved my question.