socket.getfqdn() would return a fully qualified domain name
which maybe invalid for nova to get instances by hostname.
If the host that runs devstack is virtual(like running
devstack on AWS), socket.getfqdn() may return a domain name
which is not the host name and nova cannot use that to get
instances running on current host.
Fix bug: #1166717
Change-Id: Ic6cc8607bcdeee720c5d46d44fbaa589b4fb950e
(cherry picked from commit 16f8e14b24006b23e1965329fa27ab7fcab3e6de)
Reviewed: https:/ /review. openstack. org/39474 github. com/openstack/ ceilometer/ commit/ c9129d1fd69a546 f67517836f358e2 1f160ce994
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit c9129d1fd69a546 f67517836f358e2 1f160ce994
Author: Brooklyn Chen <email address hidden>
Date: Thu Jul 11 19:11:11 2013 +0800
Use correct hostname to get instances.
socket. getfqdn( ) would return a fully qualified domain name
which maybe invalid for nova to get instances by hostname.
If the host that runs devstack is virtual(like running
devstack on AWS), socket.getfqdn() may return a domain name
which is not the host name and nova cannot use that to get
instances running on current host.
Fix bug: #1166717
Change-Id: Ic6cc8607bcdeee 720c5d46d44fbaa 589b4fb950e 3e1965329fa27ab 7fcab3e6de)
(cherry picked from commit 16f8e14b24006b2