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.
Reviewed: https:/ /review. openstack. org/46567 github. com/openstack/ neutron/ commit/ 140029ebd006c11 6ee684890dd70e1 3b7fc478ec
Committed: http://
Submitter: Jenkins
Branch: master
commit 140029ebd006c11 6ee684890dd70e1 3b7fc478ec
Author: Bob Kukura <email address hidden>
Date: Fri Sep 13 16:12:30 2013 -0400
Use same hostname function as nova
Certain plugin implementations of port binding depend on the port's gethostname( ) to obtain the hostname, so this changes neutron gethostname( ), instead of socket.getfqdn() to
binding:host_id set by nova matching the compute node's hostname
reported by neutron agents in agents_db. Nova uses
socket.
to also use socket.
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 a482037a5bdc3a7 7dc52f4adba
Change-Id: I5de9c6b0df16ec