Ask Your Question
1

Can't deploy an instance. Image not found

asked 2018-06-12 13:53:42 -0500

dklinkman gravatar image

This is a conjure-up openstack-lxd (queens) deployment on a fresh Ubuntu 18.04 physical server w/ Intel CoreI7 (6 cores) and 64 GB RAM. The conjure-up deployment runs fine with no errors and juju status shows everything up and running with no problems.

In the dashboard I can do just about everything, create networks, users, domains, projects, etc but I can't deploy an instance. The nova-compute log shows Instance failed to spawn: ImageNotFound: Image could not be found. followed by a stack trace (exception). The only other clue I found was in the glance-api log which shows a 404 error. Logs are attached. There are many successful api calls to glance so that appears to be available and working except for this 404. And the 404 seems to be causing the exception back on nova.

The dashboard lists the images correctly, and via the openstack CLI I can list the images and download them to a file. The images are the default trusty-lxd and xenial-lxd. I have also tried with cerros 0.4.0 but same problem.

I have tried conjure-up --classic, --classic --beta, and --classic edge, all produce exactly the same result.

I'm stumped. Any help or comments would be appreciated.

I apparently can't attach files yet so I'll try these links instead. Hopefully they will work.

https://www.dropbox.com/s/pcdd4hkvcpv1srk/nova-compute.log?dl=0 (https://www.dropbox.com/s/pcdd4hkvcpv...) https://www.dropbox.com/s/dxqua6j8uocq0f7/glance-api.log?dl=0 (https://www.dropbox.com/s/dxqua6j8uoc...)

Thanks!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-11-09 13:54:24 -0500

Hyacin gravatar image

I am having this exact same issue - fresh Ubuntu 18.04 installation on a physical box, conjure-up openstack-lxd, the deployment goes fine, I can get into the dashboard and do everything except spawn an instance, and when I jump into the Nova container and check the logs I see "RescheduledException: Build of instance x-y-z was re-scheduled: Image could not be found." and then "Exceeded maximum number of retries."

Did you find a solution dklinkman?

Does anyone know what is going on and how to fix it?

Here's the full log from nova-conductor.log from when I tried to create the image (and I did try with a couple different images, including one I successfully uploaded via the dashboard) -

2018-11-09 19:38:33.230 15164 ERROR nova.scheduler.utils [req-af236df1-2973-4cce-b35a-31b2cc03f61e ef04640543a74fce9ac9e465c9f1e688 33d8b8ecbc85499bb9196fe0e1459e9a - 56a7064922b342918db6696c21739d81 56a7064922b342918db6696c21739d81] [instance: a9ada324-0717-41a3-9cca-bd868b7f904f] Error from last host: juju-4d09cd-14 (node juju-4d09cd-14): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1840, in _do_build_and_run_instance\n    filter_properties, request_spec)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2120, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance a9ada324-0717-41a3-9cca-bd868b7f904f was re-scheduled: Image  could not be found.\n']
2018-11-09 19:38:33.232 15164 WARNING nova.scheduler.utils [req-af236df1-2973-4cce-b35a-31b2cc03f61e ef04640543a74fce9ac9e465c9f1e688 33d8b8ecbc85499bb9196fe0e1459e9a - 56a7064922b342918db6696c21739d81 56a7064922b342918db6696c21739d81] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance a9ada324-0717-41a3-9cca-bd868b7f904f.: MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance a9ada324-0717-41a3-9cca-bd868b7f904f.
2018-11-09 19:38:33.232 15164 WARNING nova.scheduler.utils [req-af236df1-2973-4cce-b35a-31b2cc03f61e ef04640543a74fce9ac9e465c9f1e688 33d8b8ecbc85499bb9196fe0e1459e9a - 56a7064922b342918db6696c21739d81 56a7064922b342918db6696c21739d81] [instance: a9ada324-0717-41a3-9cca-bd868b7f904f] Setting instance to ERROR state.: MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance a9ada324-0717-41a3-9cca-bd868b7f904f.
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [req-7d21b40c-2304-41e3-a706-3aa7c75e4d09 - - - - -] [instance: a9ada324-0717-41a3-9cca-bd868b7f904f] Failed to deallocate networks: NoSuchOptError: no such option keystone_authtoken in group [DEFAULT]
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f] Traceback (most recent call last):
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]   File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 366, in _cleanup_allocated_networks
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]     context, instance, requested_networks=requested_networks)
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1270, in deallocate_for_instance
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]     self._unbind_ports(context, ports_to_skip, neutron)
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 527, in _unbind_ports
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]     port_client = get_client(context, admin=True)
2018-11-09 19:38:33.380 15164 ERROR nova.conductor.manager [instance: a9ada324-0717-41a3-9cca-bd868b7f904f]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 153, in get_client
2018-11-09 19:38:33 ...
(more)
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: 2018-06-12 13:06:36 -0500

Seen: 245 times

Last updated: Jun 12 '18