Public bug reported: unable to start nova-compute service due to netaddr library is not able to resolve the hostname of the VM on which I am installing Openstack(1:2015.1.0-0ubuntu1.1~cloud0).
I have added hostname entry in /etc/hosts file. Glance and Keystone services were able to resolve the hostname and services are running successfully. Below is the error which I am getting in nova-compute.log file(server is my hostname) ValueError: failed to detect a valid IP address from u'server' After changing /usr/lib/python2.7/dist- packages/nova/objects/fields.py:340 small code in this file which is like bypassing the variable value to replace hostname with my ip then i am able to make sure my compute service is up and running. class IPAddress(FieldType): @staticmethod def coerce(obj, attr, value): try: if value == 'server': return 'xx.xx.xx.xx' else: return netaddr.IPAddress(value) Please suggest if this is problem with netaddr library version(0.7.12-2~cloud0) or a bug. ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1483248 Title: unable to start compute service Kilo Status in OpenStack Compute (nova): New Bug description: unable to start nova-compute service due to netaddr library is not able to resolve the hostname of the VM on which I am installing Openstack(1:2015.1.0-0ubuntu1.1~cloud0). I have added hostname entry in /etc/hosts file. Glance and Keystone services were able to resolve the hostname and services are running successfully. Below is the error which I am getting in nova-compute.log file(server is my hostname) ValueError: failed to detect a valid IP address from u'server' After changing /usr/lib/python2.7/dist- packages/nova/objects/fields.py:340 small code in this file which is like bypassing the variable value to replace hostname with my ip then i am able to make sure my compute service is up and running. class IPAddress(FieldType): @staticmethod def coerce(obj, attr, value): try: if value == 'server': return 'xx.xx.xx.xx' else: return netaddr.IPAddress(value) Please suggest if this is problem with netaddr library version(0.7.12-2~cloud0) or a bug. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1483248/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp