Nova does not bring up - host_ip is empty on UPDATE compute_nodes resource tracker

asked 2015-08-07 16:31:20 -0500

Renato Farias gravatar image

Hi Everyone,

I am attempting to start the nova compute in a specific server after a bonding interface configuration. It was working normally with a single interface, so after that change, the nova-compute started to raise.

Find below the error printed at my nova-compute.log: 2015-08-07 17:41:05.835 18196 TRACE nova.openstack.common.threadgroup RemoteError: Remote error: DBError (DataError) invalid input syntax for type inet: "" 2015-08-07 17:41:05.835 18196 TRACE nova.openstack.common.threadgroup LINE 1: ...3'::timestamp, disk_available_least=2471, host_ip='' WHERE c...

The version is icehouse.

My scenario:

I put some logs in /usr/lib/python2.7/dist-packages/nova/netconf.py and I noticed the resource_tracker.py (/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py) can't call the _get_my_ip() in netconf module.

Unfortunately my work-around was edit the resource_tracker.py:300 and changing:

from: resources['host_ip'] = CONF.my_ip

to: resources['host_ip'] = 'xx.xx.xx.xx'

With this change its working, but is it really necessary? Even put back the older interface settings, this is issue continue happening.

Have you any Idea?

Best

edit retag flag offensive close merge delete