Ask Your Question
0

DevStack: No valid host was found when launching instance

asked 2015-11-20 05:44:21 -0500

Halflernation gravatar image

updated 2015-11-20 10:17:02 -0500

Getting 'No valid host was found' when lauching an instance on DevStack. DevStack branch is stable/kilo running on Ubuntu-Desktop VM.

Instance is cirros over small flavour (but also fails with any other).

Can anyone shed a light on what is happening? Info below:

kvm-qemu: QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.19)
libvirt: libvirtd (libvirt) 1.2.2

$ egrep -c '(vmx|svm)' /proc/cpuinfo
16

$ grep -r virt_type /etc/nova/nova.conf
virt_type = qemu
libvirt_type = qemu

Horizon dashboard Service information:
nova        compute                     192.168.240.55  Enabled
cinderv2    volume                      192.168.240.55  Enabled
glance      image                       192.168.240.55  Enabled
cinder      volume                      192.168.240.55  Enabled
ec2         ec2                         192.168.240.55  Enabled
novav21     computev21                  192.168.240.55  Enabled
keystone    identity (native backend)   192.168.240.55  Enabled

Nova-scheduler log:

DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Starting with 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:70 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter RetryFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter AvailabilityZoneFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter RamFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter ComputeFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter ComputeCapabilitiesFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter ImagePropertiesFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter ServerGroupAntiAffinityFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filter ServerGroupAffinityFilter returned 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py:84 DEBUG nova.scheduler.filter_scheduler req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Filtered [(user, user) ram:3439 disk:206848 io_ops:0 instances:0]from (pid=3980) _schedule /opt/stack/nova/nova/scheduler/filter_scheduler.py:143 DEBUG nova.scheduler.filter_scheduler req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Weighed [WeighedHost [host: (user, user) ram:3439 disk:206848 io_ops:0 instances:0, weight:
1.0]]from (pid=3980) _schedule /opt/stack/nova/nova/scheduler/filter_scheduler.py:148 DEBUG nova.scheduler.filter_scheduler req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Selected host: WeighedHost [host: (user, user) ram:3439 disk:206848 io_ops:0 instances:0, weight: 1.0]from (pid=3980) _schedule /opt/stack/nova/nova/scheduler/filter_scheduler.py:158 INFO oslo_messaging._drivers.impl_rabbit req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Connecting to AMQP server on 192.168.240.55:5672 INFO oslo_messaging._drivers.impl_rabbit req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Connected to AMQP server on
192.168.240.55:5672 DEBUG nova.filters req-a34680aa-7507-42c7-8b5a-87072e9dcfc3 admin demo Starting with 1 host(s)from (pid=3980) get_filtered_objects /opt/stack/nova/nova/filters.py ...
(more)
edit retag flag offensive close merge delete

Comments

Been hitting with my head on the wall here. No updates regarding this at all. This is a clean devstack installation and no Instantiantion was successful whatsoever.

Halflernation gravatar imageHalflernation ( 2015-11-23 09:48:11 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-23 10:18:25 -0500

Halflernation gravatar image

Found the issue: it was a permissions error.

On my current installation (standard Devstack) Nova module was creating: locks, base images at /opt/stack/data/nova/instances/.

Permission tree before resolution:

f: /opt/stack/data/nova/instances/_base
drwxr-xr-x root root     /
drwxr-xr-x root root     opt
drwxr-xr-x user root     stack
drwxr-xr-x user root     data
drwxr-xr-x user root     nova
drwxr-xr-x user root     instances
drwxr-xr-x root libvirtd _base

libvirtd needs access to folder instances in order to write base images and acquire locks. Giving permissions to libvirtd to instances folder seems to sufice.

Permissions tree afterwards:

f: /opt/stack/data/nova/instances/_base
drwxr-xr-x root root     /
drwxr-xr-x root root     opt
drwxr-xr-x user root     stack
drwxr-xr-x user root     data
drwxr-xr-x user root     nova
drwxr-xr-x user libvirtd instances
drwxr-xr-x user libvirtd _base

Solution hint was seen at:

https://ask.openstack.org/en/question/82635/nova-compute-libvirt-permission-denied/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-11-20 05:44:21 -0500

Seen: 821 times

Last updated: Nov 23 '15