← Back to team overview

openstack team mailing list archive

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

 

Hey all,

while strictly following the guidelines [1] on how to spawn an instance on
the same host as another instance,
I run into the error, that it cannot find some instanced called: "[", which
- of course - is not the UUID I specified.
I tried dropping the [ ] and just passed the UUID right away, but still,
then is just takes the first character of
the UUID and says, that it can't find this one.

my exact command line looked like this:

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.

And that's the error in the log then.

Any ideas if it's my fault or how to work around this?

Many thanks in advance,
Christian Parpart.

Follow ups