← Back to team overview

openstack team mailing list archive

Re: [openstack-community] Error: Failed to add interface: sudo: unable to resolve host ERROR

 

Hi John:

First, it's preferable to send questions like this to
openstack@xxxxxxxxxxxxxxxxxxx. I already added it to CC.

*- *sudo: unable to resolve host server3*:* is a problem related to
hostname. Be sure /etc/hostname and /etc/hosts are correct.
- Failed to add interface*:* Problem associated with networking module on
libvirt. Verify flat_interface and bridge interface work fine.

Regards,
JuanFra.


2012/11/30 val john <valjohn1647@xxxxxxxxx>

> Hi guys
>
> im new to openstack , and im running   duel node setup compute node and
> controller node ,
>
> controller node ,[ubuntu]
>
> Binary           Host                                 Zone
> Status     State Updated_At
> nova-cert        ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:02
> nova-consoleauth ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:05
> nova-scheduler   ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:05
> nova-volume      ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:05
> nova-compute     ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:03
> nova-network     ubuntu                               nova
> enabled    :-)   2012-11-30 11:52:03
> nova-compute     server3                              nova
> enabled    :-)   2012-11-30 11:52:02
>
>
> When i try to launch  a instance
>
>  nova boot --image 12335371-2f82-4ebc-aed7-3ade2c357458 --flavor 1
> --key_name mykey  my-first-server4  ,
>
>
> in server3 nova-compute.log print the following error ,
>
>
> =======================================
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp Traceback (most recent call last):
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in
> _process_data
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     rval = node_func(context=ctxt,
> **node_args)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     return f(*args, **kw)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in
> decorated_function
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     sys.exc_info())
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     self.gen.next()
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in
> decorated_function
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     return function(self, context,
> instance_uuid, *args, **kwargs)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 676, in
> run_instance
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     do_run_instance()
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     retval = f(*args, **kwargs)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 675, in
> do_run_instance
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     self._run_instance(context,
> instance_uuid, **kwargs)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 476, in
> _run_instance
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> self._set_instance_error_state(context, instance_uuid)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     self.gen.next()
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 457, in
> _run_instance
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> self._deallocate_network(context, instance)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     self.gen.next()
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 454, in
> _run_instance
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     injected_files, admin_password)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 617, in
> _spawn
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> self._legacy_nw_info(network_info), block_device_info)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     return f(*args, **kw)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
> 946, in spawn
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> block_device_info=block_device_info)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
> 1568, in to_xml
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     rescue, block_device_info)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
> 1451, in _prepare_xml_info
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> nics.append(self.vif_driver.plug(instance, network, mapping))
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 97, in
> plug
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     iface)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/utils.py", line 943, in inner
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     retval = f(*args, **kwargs)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp   File
> "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 1043, in
> ensure_bridge
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp     raise exception.Error('Failed
> to add interface: %s' % err)
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp Error: Failed to add interface:
> sudo: unable to resolve host server3
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
> 2012-11-30 17:24:43 TRACE nova.rpc.amqp
>
>
> and i can access the server3 node from my controller node ,
>
> root@ubuntu:~# ping server3
> PING server3 (10.100.3.104) 56(84) bytes of data.
> 64 bytes from server3 (10.100.3.104): icmp_req=1 ttl=64 time=0.490 ms
> 64 bytes from server3 (10.100.3.104): icmp_req=2 ttl=64 time=0.478 ms
>
>
> What can be the problem ...?
>
> Thank You
> John
>
> _______________________________________________
> Community mailing list
> Community@xxxxxxxxxxxxxxxxxxx
> http://lists.openstack.org/cgi-bin/mailman/listinfo/community
>
>