← Back to team overview

openstack team mailing list archive

Re: nova boot --hint same_host=[UUID] fails with "InstanceNotFound: Instance [ could not be found." ?

 

Filed a bug here:

https://bugs.launchpad.net/nova/+bug/1017988

Fix for nova to allow hints that are not lists:

https://review.openstack.org/9002

fix for novaclient to turn multiple hints into a list:

https://review.openstack.org/9006

Vish

On Jun 26, 2012, at 1:31 AM, Christian Parpart wrote:

> nova boot --image 6c73d25e-df93-4c96-a803-9d419a367267 --flavor 16 --hint same_host=[df5fd16b-271d-45ac-9e9a-5d3ad33920e5] $instance_name
> 
> 2012-06-26 08:26:28 ERROR nova.rpc.amqp [req-67363fee-1046-4ff8-90a2-05aacb1cbe10 fe655fd0ad49474db5882931685c77fe 8f956f17ce9d4c4d9957c230aab4f720] Exception during message handling
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp Traceback (most recent call last):
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in _process_data
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, **node_args)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 115, in run_instance
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     context, ex, *args, **kwargs)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     self.gen.next()
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 105, in run_instance
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     return self.driver.schedule_run_instance(*args, **kwargs)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/multi.py", line 78, in schedule_run_instance
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     return self.drivers['compute'].schedule_run_instance(*args, **kwargs)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 72, in schedule_run_instance
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     *args, **kwargs)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 194, in _schedule
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     filter_properties)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/host_manager.py", line 218, in filter_hosts
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     if host.passes_filters(filter_fns, filter_properties):
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/host_manager.py", line 156, in passes_filters
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     if not filter_fn(self, filter_properties):
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/filters/affinity_filter.py", line 64, in host_passes
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     if self._affinity_host(context, i) == me])
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/filters/affinity_filter.py", line 30, in _affinity_host
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     return self.compute_api.get(context, instance_id)['host']
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1022, in get
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     instance = self.db.instance_get(context, instance_id)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 540, in instance_get
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     return IMPL.instance_get(context, instance_id)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     return f(*args, **kwargs)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1339, in instance_get
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp     raise exception.InstanceNotFound(instance_id=instance_id)
> 2012-06-26 08:26:28 TRACE nova.rpc.amqp InstanceNotFound: Instance [ could not be found.


References