]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use same hostname function as nova
authorBob Kukura <rkukura@redhat.com>
Fri, 13 Sep 2013 20:12:30 +0000 (16:12 -0400)
committerBob Kukura <rkukura@redhat.com>
Fri, 13 Sep 2013 20:17:25 +0000 (16:17 -0400)
commit140029ebd006c116ee684890dd70e13b7fc478ec
treee22f44af8375a10c9a55fc1724c405e751d7b985
parent932e5b5c8282759c6af2f2b5784cd7ecf4f2e09d
Use same hostname function as nova

Certain plugin implementations of port binding depend on the port's
binding:host_id set by nova matching the compute node's hostname
reported by neutron agents in agents_db. Nova uses
socket.gethostname() to obtain the hostname, so this changes neutron
to also use socket.gethostname(), instead of socket.getfqdn() to
obtain the default hostname. If deployments require a specific
hostname format or value, the hostname can be specified in nova and
neutron configuration files.

Closes-Bug: 1223000
Change-Id: I5de9c6b0df16eca482037a5bdc3a77dc52f4adba
neutron/common/utils.py