Ask Your Question
0

Error: Failed to launch instance "ubuntu14.04": Please try again later [Error: No valid host was found. ].

asked 2015-01-18 07:23:28 -0600

phillw gravatar image

updated 2017-08-07 01:21:26 -0600

Bipin gravatar image

I've followed one of the other reports of a similar error, please find below the result of nova-manage service list:

    [root@cloud ~]# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:11
nova-scheduler   cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:17
nova-conductor   cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:17
nova-compute     cloud.phillw.net                     nova             enabled    :-)   2015-01-18 13:15:13
nova-cert        cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:11

The over view shows plenty of resources.

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-18 23:45:24 -0600

Do you deployed openstack on a virtual environment?

edit flag offensive delete link more
0

answered 2015-01-18 09:32:16 -0600

updated 2015-01-18 09:35:16 -0600

In general, "No Valid Host Was Found" error meesage is raised when not enough resources are availabe to launch an instance on compute nodes. In other words, nova-scheduler can not find a compute node with enough resources(vcpu, disk, ram,...) to launch instance.

Make sure that your target compute node has enough virtual resources that your instance requested. For further details, check your scheduler(nova-scheduler.log) and nova-api(nova-api.log) log files and put the error messages in your post. Both files are stored at:

/var/log/nova/
edit flag offensive delete link more
0

answered 2015-01-18 10:15:02 -0600

phillw gravatar image

updated 2015-01-18 11:22:54 -0600

cat nova-scheduler.log

2015-01-05 22:36:25.017 25766 AUDIT nova.service [-] Starting scheduler node (version 2014.2.1-1.el7.centos) 2015-01-05 22:36:25.404 25766 INFO oslo.messaging._drivers.impl_rabbit [req-4244ad29-3459-4185-9f04-9f15b82e7aa1 ] Connecting to AMQP server on 198.27.82.175:5672 2015-01-05 22:36:25.416 25766 INFO oslo.messaging._drivers.impl_rabbit [req-4244ad29-3459-4185-9f04-9f15b82e7aa1 ] Connected to AMQP server on 198.27.82.175:5672 2015-01-06 14:49:04.644 25766 INFO oslo.messaging._drivers.impl_rabbit [req-7bd0e249-c859-455c-b550-e94a09231f88 ] Connecting to AMQP server on 198.27.82.175:5672 2015-01-06 14:49:04.651 25766 INFO oslo.messaging._drivers.impl_rabbit [req-7bd0e249-c859-455c-b550-e94a09231f88 ] Connected to AMQP server on 198.27.82.175:5672 2015-01-06 14:49:27.630 25766 INFO nova.filters [req-7bd0e249-c859-455c-b550-e94a09231f88 None] Filter RetryFilter returned 0 hosts 2015-01-06 15:36:01.602 25766 INFO nova.filters [req-6f2c22ed-f87d-4e66-8f4c-be4117fd3c32 None] Filter RetryFilter returned 0 hosts 2015-01-07 08:43:59.043 25766 INFO nova.filters [req-9da7b0ad-27ed-4df6-9102-e4da61726ee6 None] Filter RetryFilter returned 0 hosts 2015-01-07 09:03:30.073 25766 INFO nova.filters [req-2374367a-eef1-4bcb-9925-affde82dd7e1 None] Filter RetryFilter returned 0 hosts 2015-01-07 09:07:57.744 25766 INFO nova.filters [req-1ddfeb7f-788e-4776-9f0d-004df57dd0fa None] Filter RetryFilter returned 0 hosts 2015-01-08 12:36:50.783 25766 INFO nova.filters [req-ed8c2a73-93a2-4c85-90e6-27e6cfb94be4 None] Filter RetryFilter returned 0 hosts 2015-01-12 14:29:50.747 25766 INFO nova.filters [req-056998b6-a909-48a8-a790-86e1ebb6f154 None] Filter RetryFilter returned 0 hosts 2015-01-14 11:29:50.760 25766 INFO nova.filters [req-32e8d33c-35d7-4423-9402-96137c7d1d82 None] Filter RetryFilter returned 0 hosts 2015-01-14 11:36:30.781 25766 INFO nova.filters [req-9db0573d-579a-49b6-96f0-f455050b2a3d None] Filter RetryFilter returned 0 hosts 2015-01-17 16:04:30.775 25766 INFO nova.filters [req-07d0aef9-7104-4692-8d77-1b846027dd2c None] Filter RetryFilter returned 0 hosts 2015-01-17 16:10:20.791 25766 INFO nova.filters [req-753e7a47-4257-48fd-82fa-8eff5ff61f8b None] Filter RetryFilter returned 0 hosts 2015-01-17 17:59:53.011 25766 WARNING nova.scheduler.host_manager [req-cccff2c4-f055-480f-8037-88a6c5645a96 None] Host has more disk space than database expected (3gb > -1gb) 2015-01-17 18:00:20.875 25766 WARNING nova.scheduler.host_manager [req-cccff2c4-f055-480f-8037-88a6c5645a96 None] Host has more disk space than database expected (0gb > -1gb) 2015-01-17 18:00:20.875 25766 INFO nova.filters [req-cccff2c4-f055-480f-8037-88a6c5645a96 None] Filter RetryFilter returned 0 hosts 2015-01-18 07:44:28.738 25766 WARNING nova.scheduler.host_manager [req-5a90cf0e-5fa2-4e92-8bed-5587bd8aafb0 None] Host has more disk space than database expected (3gb > -1gb) 2015-01-18 07:45:00.986 25766 WARNING nova.scheduler.host_manager [req-5a90cf0e-5fa2-4e92-8bed-5587bd8aafb0 None] Host has more disk space than database expected (3gb > -1gb) 2015-01-18 07:45:00.986 25766 INFO nova.filters [req-5a90cf0e-5fa2-4e92-8bed-5587bd8aafb0 None] Filter RetryFilter returned 0 hosts 2015-01-18 08:01:17.355 25766 WARNING nova.scheduler.host_manager [req-fa97b135-3a04-4fc6-99fa-6d1952af4bdd None] Host has more disk space than database expected (3gb > -21gb) 2015-01-18 08:01:40.834 25766 WARNING nova.scheduler.host_manager [req-fa97b135-3a04-4fc6-99fa-6d1952af4bdd None] Host has more disk space than database expected (3gb > -21gb) 2015-01-18 08:01:40.835 25766 INFO nova.filters [req-fa97b135-3a04-4fc6-99fa-6d1952af4bdd None] Filter RetryFilter returned 0 hosts 2015-01-18 08:05:04.289 25766 WARNING nova.scheduler.host_manager [req-e2600600-2208-443c-a593-c58b59af8eeb None] Host has more disk space than database expected (3gb > -1gb) 2015-01-18 08:05:30.718 25766 WARNING nova.scheduler.host_manager [req-e2600600-2208-443c-a593-c58b59af8eeb None] Host ... (more)

edit flag offensive delete link more
0

answered 2015-01-19 00:06:56 -0600

hey there,

you also need to check what image type you are using to launch an instance.

I specifically use qcow2 format as my hypervisor is KVM, so please do check the image you trying to launch is virtual machine supported or not.

edit flag offensive delete link more

Comments

They are ISO images, which are supposedly supported.

phillw gravatar imagephillw ( 2015-01-21 15:54:26 -0600 )edit

hello first you have to convert the image file to qcow2 format

This example will convert a raw image file named centos63.dsk to a qcow2 image file.

qemu-img convert -f raw -O qcow2 centos64.dsk centos64.qcow2

To convert from vmdk to raw, you would do:

qemu-img convert -f vmdk -O
PradeepNaik gravatar imagePradeepNaik ( 2015-01-21 22:51:13 -0600 )edit

this also works for ISO images give a try and let me know

PradeepNaik gravatar imagePradeepNaik ( 2015-01-21 22:52:13 -0600 )edit
0

answered 2015-03-03 15:20:49 -0600

xelfe gravatar image

I have an issue like that too. I'm on a fresh install, (2 TB HD, xeon 8 cores, 32GB Ram) and I took the rdo packstack --allinone. When I'm trying to launch a image, I've got "No Valid Host Was Found".

This is the only thing who's going wrong into my nova-scheduler.log;

    2015-03-03 20:23:14.615 997 DEBUG nova.scheduler.filters.retry_filter [req-12faf2c6-ae85-4c08-b39f-16f8f7b28e12 None] Host [u'XXX.XXX.XXX.X', u'XXX.XXX.XXX.X'] fails.  Previously tried hosts: [[u'XXX.XXX.XXX.X'', u'XXX.XXX.XXX.X'']] host_passes /usr/lib/python2.7/site-packages/nova/scheduler/filters/retry_filter.py:42
2015-03-03 20:23:14.615 997 INFO nova.filters [req-12faf2c6-ae85-4c08-b39f-16f8f7b28e12 None] Filter RetryFilter returned 0 hosts

This is seem to be a common problem if I look on google but there's no solution...

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

3 followers

Stats

Asked: 2015-01-18 07:23:28 -0600

Seen: 2,309 times

Last updated: Aug 07 '17