[Openstack] [Junos][NOVA] - Error in nova-compute service

Yaguang Tang heut2008 at gmail.com
Tue Nov 11 10:48:20 UTC 2014


Hi sadia,

It seems that in your nova.conf  you set
my_ip = controller
which causes this issue, please use  my_ip = 192.168.1.6 and try to run
nova-compute again.

On Tue, Nov 11, 2014 at 4:31 PM, Sadia Bashir <11msccssbashir at seecs.edu.pk>
wrote:

> Hi everyone,
>
> I am installing Junos All-in-One on Ubuntu-14.04, Installed all services
> successfully as given in the openstack installation guide:
> http://docs.openstack.org/juno/install-guide/install/apt/content/ch_preface.html,
> but I am getting one weird error in nova-compute:
>
> Traceback (most recent call last):
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> return getattr(target, method)(context, *args, **kwargs)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 155,$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> result = fn(cls, context, *args, **kwargs)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/service.py", line 1$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> return cls._from_db_object(context, cls(), db_service)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/service.py", line 7$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> service._do_compute_node(context, service, db_service)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/service.py", line 6$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> context, objects.ComputeNode(), db_compute)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/compute_node.py", l$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> compute[key] = db_compute[key]
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 474,$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> setattr(self, name, value)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 75, $
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> field_value = field.coerce(self, name, value)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/fields.py", line 18$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> return self._type.coerce(obj, attr, value)
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> File "/usr/lib/python2.7/dist-packages/nova/objects/fields.py", line 31$
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> raise ValueError(six.text_type(e))
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> 2014-11-11 13:16:22.349 30574 TRACE nova.openstack.common.threadgroup
> ValueError: failed to detect a valid IP address from u'controller'
>
> Here is /etc/hosts file:
>
> 127.0.0.1       localhost
> 127.0.1.1       icehouse-HP
> 192.168.1.6     controller
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
> Moreover, all nova services except the compute service are up with nova
> service-list.
>
> Pls see nova.conf file attached.
>
> Reinstallation of nova-compute, dropping and creating nova Database, and
> recreating nova user didn't resolve this problem. I am not understanding
> what exactly is the source of this problem
>
> Please review nova.conf file and log I have attached/pasted here to
> identify the problem. Any help/guideline/solution will be appreciated to
> fix this bug.
>
> Thanks and Regards,
> --
> *Sadia Bashir*
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>


-- 
Tang Yaguang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141111/68fc99f9/attachment.html>


More information about the Openstack mailing list