[Openstack] Can't start instance - "Instance failed network setup after 1 attempt(s)/No valid host was found. There are not enough hosts available"

Eugen Block eblock at nde.ag
Mon Mar 5 15:47:41 UTC 2018


Hi,

my first action would be debug mode for neutron logs and then review  
all of the logs (server, dhcp-agent, linuxbridgeagent, etc.). At least  
one of them should also report errors, maybe they point you to the  
right direction.

Have you checked 'openstack network agent list'? Are all agents up?

Regards


Zitat von Andrea Gatta <andrea.gatta at gmail.com>:

> Hello guys,
> I am fairly new to Openstack and am building a home lab to experiment with
> it at my own pace.
>
> Here's my present setup:
>
> host/hypervisor: vmware workstation 10 (1 xeon 4 cores, 40 GB RAM)
> os: Centos 7
> openstack realease: Newton
>
> Architecture is fairly simple:
>
> 1x Controller node (1 vcpu, 4 GB RAM)
> 1x Compute node (1   vcpu, 4 GB RAM)
>
> After a couple of days of work I now have a working lab but am stuck not
> being able to create and start basic cirros instance.
>
> The issue has been confirmed using Horizon as well (instance creation fails
> with same errors)
>
>
> *root at controller1 nova]# openstack server create --flavor m1.nano --image
> cirros --nic net-id=cd37f4c3-7860-4183-8901-deeb48448fe4 --security-group
> default   --key-name mykey selfservice-instance*
>
> root at controller1 ~]# openstack server list
> +--------------------------------------+----------------------+--------+----------+------------+
> | ID                                   | Name                 | Status |
> Networks | Image Name |
> +--------------------------------------+----------------------+--------+----------+------------+
> | 2a100590-6d7c-4d04-aecb-9dc2011252f5 | selfservice-instance | ERROR  |
>       | cirros     |
>
> *openstack server show selfservice-instance*
> ....
> fault                                | {u'message': u'No valid host was
> found. There are not enough hosts available.', u'code': 500
>
> *nova-scheduler.log*
>
> Filter results: ['RetryFilter: (start: 1, end: 0)']
>
> ['RetryFilter: (start: 1, end: 0)']
>
> As for the installation process I followed the openstack official
> documentation at
>
> *https://docs.openstack.org/newton/install-guide-rdo/index.html
> <https://docs.openstack.org/newton/install-guide-rdo/index.html> *
>
> After a bit of digging I've found that the instance had failed network setup
>
> */var/log/nova/nova-compute.log*
>
> 2018-03-05 11:35:08.939 20920 ERROR nova.compute.manager
> [req-b252833b-e6b4-43ac-8d95-5ccec002e74c e35fc188170d4144a9cd4d30f9eab65c
> bad15e4bc5714298b275e2f45ec8a6ff - - -] *Instance failed network setup
> after 1 attempt(s)*
>
> Up to this point I reviewed the whole configuration several time with a
> special focus on nova<>neutron integration but at present I haven't been
> able to figure out what is going on
>
> Rabbitmq seems to work fine and communications between controller and
> compute nodes work as expected (no logs to prove otherwise found).
>
> Just in case here's the output of 'openstack network list' in case anyone
> was wondering whether or not openstack had interfaces to play with.
>
> I am using QEMU with KVM acceleration.
>
> *[root at controller1 etc]# openstack network list*
> +--------------------------------------+-------------+--------------------------------------+
> | ID                                   | Name        | Subnets
>                 |
> +--------------------------------------+-------------+--------------------------------------+
> | 982445b2-deb9-4308-8580-9de20992c4dd | provider    |
> ccd0290f-1640-4354-b56d-1a95c8c19ec0 |
> | cd37f4c3-7860-4183-8901-deeb48448fe4 | selfservice |
> 6096dff6-4567-4666-9e10-6dd718514e86 |
> +--------------------------------------+-------------+--------------------------------------+
>
> Clues anyone ?
>
> Thanks in advance
>
> Cheers
> Andrea



-- 
Eugen Block                             voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG      fax     : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg                         e-mail  : eblock at nde.ag

         Vorsitzende des Aufsichtsrates: Angelika Mozdzen
           Sitz und Registergericht: Hamburg, HRB 90934
                   Vorstand: Jens-U. Mozdzen
                    USt-IdNr. DE 814 013 983




More information about the Openstack mailing list