As noted during ml2 portbinding review, it comes from different defaults in CONF.host in nova and neutron:
neutron uses socket.getfqdn() [1], and nova uses socket.gethostname() [2] which doesn't always returns FQDN [3].
[1] https://github.com/openstack/neutron/blob/master/neutron/common/utils.py#L161 [2] https://github.com/openstack/nova/blob/master/nova/netconf.py#L53 [3] http://docs.python.org/2/library/socket.html
As noted during ml2 portbinding review, it comes from different defaults in CONF.host in nova and neutron:
neutron uses socket.getfqdn() [1], and nova uses socket. gethostname( ) [2] which doesn't always returns FQDN [3].
[1] https:/ /github. com/openstack/ neutron/ blob/master/ neutron/ common/ utils.py# L161 /github. com/openstack/ nova/blob/ master/ nova/netconf. py#L53 docs.python. org/2/library/ socket. html
[2] https:/
[3] http://