[Openstack] No valid Host - OpenStack Mitaka

Silvia Fichera fichera.sil at gmail.com
Thu Jul 21 18:28:41 UTC 2016


Hi Brent,
I've installed openstack using devstack, so I just created the local.conf
file before stacking.
I noticed that the br-int is created only when I set the network devices in
ONOS (it is connected to the nodes) and not when the during the set up of
the nodes.
I can attach my local.conf if it could be useful.
Thanks

Silvia

2016-07-21 19:11 GMT+02:00 Brent Troge <brenttroge2016 at gmail.com>:

> have you configured nova network to use 'br-int' ? it looks like br-int is
> not plumbed or available on the host.
>
> as a start, it looks like you need to ensure your host network needs to be
> configured properly as per nova configuration.
>
>
>
> On Thu, Jul 21, 2016 at 11:03 AM, Silvia Fichera <fichera.sil at gmail.com>
> wrote:
>
>> I also found an error in the compute node in n-cpu.log related to libvirt:
>>
>>
>> I noticed that the error is similar but not the same:
>>
>> ERROR nova.compute.manager
>> [^[[01;36mreq-f1fdf348-c333-4436-bcc0-d5cbd76428e6 ^[[00;36madmin
>> admin^[[01;31m] ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a]
>> ^[[$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00mTraceback
>> (most recent call last):
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/compute/manager.py", line 2218, in _build_resources
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    yield
>> resources
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/compute/manager.py", line 2064, in _build_and_run_$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  block_device_info=block_device_info)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2780, in spawn
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  block_device_info=block_device_info)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4924, in _create_dom$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    xml,
>> pause=pause, power_on=power_on)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4855, in _create_dom$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  guest.launch(pause=pause)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/virt/libvirt/guest.py", line 142, in launch
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  self._encoded_xml, errors='ignore')
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 22$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  self.force_reraise()
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 19$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  six.reraise(self.type_, self.value, self.tb)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/opt/stack/nova/nova/virt/libvirt/guest.py", line 137, in launch
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    return
>> self._domain.createWithFlags(flags)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 186, in$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    result
>> = proxy_call(self._autowrap, f, *args, **kwargs)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 144, in$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    rv =
>> execute(f, *args, **kwargs)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 125, in$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m
>>  six.reraise(c, e, tb)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 83, in $
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    rv =
>> meth(*args, **kwargs)
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m  File
>> "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 1065, in creat$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a] ^[[00m    if ret
>> == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=$
>> ^[[01;31m2016-07-20 23:30:44.470 TRACE nova.compute.manager
>> ^[[01;35m[instance: dcf75116-fcaa-4f43-bac0-f93bc1fcaa9a]
>> ^[[00mlibvirtError: Cannot get interface MTU on 'br-int': No such device
>>
>>
>>
>> 2016-07-21 12:25 GMT+02:00 Silvia Fichera <fichera.sil at gmail.com>:
>>
>>> Hi all,
>>> I'm confuguring OpenStack to use it togheter with ONOS according to the
>>> SONA implementation (
>>> https://wiki.onosproject.org/display/ONOS/How+to+set+up+environment).
>>> My setup has 2 compute nodes. It seems that the controller can see the
>>> two nodes.
>>>
>>> nova service-list
>>>
>>> +----+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
>>> | Id | Binary           | Host           | Zone     | Status  | State |
>>> Updated_at                 | Disabled Reason |
>>>
>>> +----+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
>>> | 3  | nova-conductor   | OpenStack-ctrl | internal | enabled | up    |
>>> 2016-07-20T21:28:23.000000 | -               |
>>> | 5  | nova-scheduler   | OpenStack-ctrl | internal | enabled | up    |
>>> 2016-07-20T21:28:21.000000 | -               |
>>> | 6  | nova-consoleauth | OpenStack-ctrl | internal | enabled | up    |
>>> 2016-07-20T21:28:21.000000 | -               |
>>> | 7  | nova-compute     | Compute2       | nova     | enabled | up    |
>>> 2016-07-20T21:28:22.000000 | -               |
>>> | 8  | nova-compute     | Compute1       | nova     | enabled | up    |
>>> 2016-07-20T21:28:20.000000 | -               |
>>>
>>> +----+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
>>>
>>>
>>> nova host-list
>>> +----------------+-------------+----------+
>>> | host_name      | service     | zone     |
>>> +----------------+-------------+----------+
>>> | OpenStack-ctrl | conductor   | internal |
>>> | OpenStack-ctrl | scheduler   | internal |
>>> | OpenStack-ctrl | consoleauth | internal |
>>> | Compute2       | compute     | nova     |
>>> | Compute1       | compute     | nova     |
>>> +----------------+-------------+----------+
>>>
>>> Here is the error form n-cond.log
>>>
>>>
>>> 2016-07-20 22:29:44.200 ^[[00;32mDEBUG
>>> oslo.messaging._drivers.impl_rabbit
>>> [^[[01;36mreq-7d700c44-3166-4407-8f4f-4fa7743339cb ^[[00;36madmin
>>> admin^[[00;32m] ^[[01;35m^[[00;32mConnected to AMQP server on $
>>> /usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py:187:
>>> RuntimeWarning: You have iterated over the result of
>>> pkg_resources.parse_version. This is a legacy behavior which is
>>> inconsistent wit$
>>>   stacklevel=1,
>>> 2016-07-20 22:29:44.236 ^[[01;33mWARNING nova.scheduler.utils
>>> [^[[01;36mreq-7d700c44-3166-4407-8f4f-4fa7743339cb ^[[00;36madmin
>>> admin^[[01;33m] ^[[01;35m^[[01;33mFailed to compute_task_build_instances: N$
>>> Traceback (most recent call last):
>>>
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line
>>> 150, in inner
>>>     return func(*args, **kwargs)
>>>
>>>   File "/opt/stack/nova/nova/scheduler/manager.py", line 104, in
>>> select_destinations
>>>     dests = self.driver.select_destinations(ctxt, spec_obj)
>>>
>>>   File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 74, in
>>> select_destinations
>>>     raise exception.NoValidHost(reason=reason)
>>>
>>> NoValidHost: No valid host was found. There are not enough hosts
>>> available.
>>>
>>>
>>>
>>> Any suggestion? Thanks
>>> --
>>> Silvia Fichera
>>>
>>
>>
>>
>> --
>> Silvia Fichera
>>
>> _______________________________________________
>> 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
>>
>>
>


-- 
Silvia Fichera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160721/871a77db/attachment.html>


More information about the Openstack mailing list