Bug 1289410 - Nova hostname required in nova.conf
Summary: Nova hostname required in nova.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ga
: 8.0 (Liberty)
Assignee: James Slagle
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On:
Blocks: 1185030
TreeView+ depends on / blocked
 
Reported: 2015-12-08 03:11 UTC by Andrew Beekhof
Modified: 2016-04-15 14:30 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-0.8.11-1.el7ost
Doc Type: Enhancement
Doc Text:
Feature: The "host" configuration setting in nova.conf and neutron.conf on compute nodes is now set to the fqdn of the compute node. Reason: In order for instance HA to function safely, the NovaCompute agent needs access to the name by which nova knows the current compute node. Neutron agents running on the compute nodes also need the equivalent value for their "host" configuration configured, otherwise instances can not be scheduled to the compute node. Result: The "host" configuration setting is now set to the fqdn of the compute node in /etc/nova/nova.conf and /etc/neutron/neutron.conf on each compute node deployed by OSP Director.
Clone Of:
Environment:
Last Closed: 2016-04-15 14:30:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 288866 0 'None' 'MERGED' 'Set host in nova.conf for compute nodes' 2019-11-19 14:00:04 UTC
OpenStack gerrit 291881 0 'None' 'MERGED' 'Set host in nova.conf for compute nodes' 2019-11-19 14:00:04 UTC
Red Hat Product Errata RHBA-2016:0637 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director release candidate Bug Fix Advisory 2016-04-15 18:28:05 UTC

Description Andrew Beekhof 2015-12-08 03:11:53 UTC
Description of problem:

In order for instance HA to function safely, the NovaCompute agent needs access to the name by which nova knows the current compute node.

The code currently tries to obtain it on compute nodes with:

  openstack-config --get /etc/nova/nova.conf DEFAULT host

However this does not appear to be set/configured by director.

Could we either get it set here or have a pointer to a more appropriate location to obtain it?

Comment 3 Hugh Brock 2016-02-05 12:13:27 UTC
Steve, I know you're already working on this so I assigned it to you. Please update the bug status accordingly.

Comment 7 Prasanth Anbalagan 2016-04-13 01:43:09 UTC
Verified as follows,

*******
VERSION
********
[stack@instack ~]$ rpm -qa openstack-tripleo-heat-templates
openstack-tripleo-heat-templates-0.8.14-5.el7ost.noarch


**********
LOGS
**********

[heat-admin@overcloud-novacompute-0 ~]$ sudo openstack-config --get /etc/nova/nova.conf DEFAULT host
overcloud-novacompute-0.localdomain

[heat-admin@overcloud-novacompute-1 ~]$ sudo openstack-config --get /etc/nova/nova.conf DEFAULT host
overcloud-novacompute-1.localdomain

Comment 9 errata-xmlrpc 2016-04-15 14:30:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0637.html


Note You need to log in before you can comment on or make changes to this bug.