Ask Your Question
4

Is it possible to find the physical hostname where an instance is placed?

asked 2013-10-30 12:52:05 -0600

alessandro.portosa gravatar image

Using a CentOs image, the rest nova API exposes a property called "OS-EXT-SRV-ATTR:host" that, I guess, tell me on which physical node an instance is running... Am i right?

Trying with an Ubuntu 12.04 image, I have found that this information is not provided... How is it possible to have this information regardless the used image via Rest API? Or is it possible to force Openstack to provide it? Or, even better, how is it possible to set up or modify the image in order to have this information provided?

edit retag flag offensive close merge delete

Comments

Which version of OpenStack are you using? This information should not be image-dependent.

larsks gravatar imagelarsks ( 2013-10-30 15:34:17 -0600 )edit

I'm using Openstack Grizzly.

alessandro.portosa gravatar imagealessandro.portosa ( 2013-10-30 19:13:08 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2014-04-18 12:44:42 -0600

SGPJ gravatar image

Adding to above. For quick check, you can click on instances tab on admin portal and see instances name, in which physical host it is running. Same code can be used. Thanks.

edit flag offensive delete link more
0

answered 2014-04-18 11:13:50 -0600

scott-devoid gravatar image

The OS-EXT-SERV-ATTR:host property is, by default, exposed only if you have admin_context when contacting the server. Are you sure that you are contacting the REST API with the same username, on the same AUTH_URL each time? If you are the results should be the same for both images. If you are using the python-novaclient libraries, I would check to see what those are doing in each case as well--set debug=True when you create a client object.

  • Compute API Reference Specifically the GET v2/​{tenant_id}​/servers/​{server_id}​ section. Note that this does not mention the OS-EXT-SRV-ATTR properties. They only appear if you have the right context / permissions when making the request.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-30 12:52:05 -0600

Seen: 1,062 times

Last updated: Apr 18 '14