← Back to team overview

openstack team mailing list archive

Re: Nova.Scheduler TypeError: can't compare datetime.datetime to NoneType

 

Thanks, Unmesh.  My nova.conf on my compute node had some conflicting
settings.  E.g. I am using quantum, but I still had network_manager =
nova.network.manager.FlatDHCPManager.

That error is gone.  But naturally I have new ones now.  I'll start a new
thread for that :)


On Fri, Feb 8, 2013 at 12:49 AM, Unmesh Gurjar <unmesh.gurjar@xxxxxxxxx>wrote:

> Greg,
>
> IMO, this qualifies as a bug.
>
> To debug what's causing this scenario is your case, I would suggest
> checking the database connection setting in nova.conf on your Compute &
> Controller host. AFAIK, it either means Compute's status is not being
> updated (Compute service down) or its being updated in a different database
> server.
>
> Hope it helps.
>
> Regards,
> Unmesh G.
>
> On Fri, Feb 8, 2013 at 5:55 AM, Greg Chavez <greg.chavez@xxxxxxxxx> wrote:
>
>>
>> So I'm getting this when I try to boot a Cirros image in scheduler.log.
>>  I have a controller node, network node, and one compute node setup with
>> Folsom on RHEL 6.  Any ideas?  Thanks!
>>
>> 2013-02-07 19:21:45 WARNING nova.scheduler.manager
>> [req-358f5c96-e236-4167-b6a9-ccc02c853d41 65fdf1a86cfa4e50aafb6c132106e00f
>> cec6647113c74b66b308de14032e591a] Failed to schedule_run_instance: can't
>> compare datetime.datetime to NoneType
>> 2013-02-07 19:21:45 WARNING nova.scheduler.manager
>> [req-358f5c96-e236-4167-b6a9-ccc02c853d41 65fdf1a86cfa4e50aafb6c132106e00f
>> cec6647113c74b66b308de14032e591a] [instance:
>> 1a318b16-7d98-40ef-acb9-63d705542200] Setting instance to ERROR state.
>> 2013-02-07 19:21:45 1688 ERROR nova.openstack.common.rpc.amqp [-]
>> Exception during message handling
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp Traceback
>> (most recent call last):
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line
>> 276, in _process_data
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp     rval =
>> self.proxy.dispatch(ctxt, version, method, **args)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py",
>> line 145, in dispatch
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp     return
>> getattr(proxyobj, method)(ctxt, **kwargs)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 118, in
>> run_instance
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> context, ex, request_spec)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> self.gen.next()
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 106, in
>> run_instance
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> requested_networks, is_first_time, filter_properties)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/multi.py", line 69, in
>> schedule_run_instance
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp     return
>> self.drivers['compute'].schedule_run_instance(*args, **kwargs)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/filter_scheduler.py", line
>> 73, in schedule_run_instance
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> filter_properties, instance_uuids)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/filter_scheduler.py", line
>> 251, in _schedule
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> elevated, topic)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/host_manager.py", line
>> 284, in get_all_host_states
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp
>> host_state.update_from_compute_node(compute)
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp   File
>> "/usr/lib/python2.6/site-packages/nova/scheduler/host_manager.py", line
>> 125, in update_from_compute_node
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp     if
>> self.updated and self.updated > compute['updated_at']:
>> 2013-02-07 19:21:45 1688 TRACE nova.openstack.common.rpc.amqp TypeError:
>> can't compare datetime.datetime to NoneType
>>
>> --
>> \*..+.-
>> --Greg Chavez
>> +//..;};
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Thanks & Regards,
> Unmesh G.
>

References