Bug 910727 - Cannot spawn new machines. The scheduler.log says TypeError: can't compare datetime.datetime to NoneType
Summary: Cannot spawn new machines. The scheduler.log says TypeError: can't compare da...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 2.0 (Folsom)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: snapshot5
: 2.1
Assignee: Russell Bryant
QA Contact: Jaroslav Henner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-13 11:47 UTC by Jaroslav Henner
Modified: 2022-07-09 07:18 UTC (History)
3 users (show)

Fixed In Version: openstack-nova-2012.2.3-5.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-04 20:21:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1096719 0 None None None Never
Red Hat Issue Tracker OSP-16572 0 None None None 2022-07-09 07:18:32 UTC
Red Hat Product Errata RHSA-2013:0709 0 normal SHIPPED_LIVE Moderate: openstack-nova security and bug fix update 2013-04-05 00:19:00 UTC

Description Jaroslav Henner 2013-02-13 11:47:47 UTC
Description of problem:

The test Tempest test (not-public hash d868607874f8b4c44a8e4443469e7cd343e7f75a) that is resizing the server:

nosetests --nologcapture -v --with-id --tests tempest.tests.compute.servers.test_disk_config:TestServerDiskConfig.test_resize_server_from_manual_to_auto

causes further attempts to boot an instance to fail with following in the scheduler log:

TypeError: can't compare datetime.datetime to NoneType



Version-Release number of selected component (if applicable):
openstack-nova-2012.2.2-9.el6ost.noarch

How reproducible:
With the mentioned test, 4/4.

Steps to Reproduce:
1. Run the test
2. nova boot the same image
3.
  
Actual results:
further instance spawns impossible

Expected results:
no problems

Additional info:

Comment 2 Jaroslav Henner 2013-02-13 11:52:05 UTC
Note I found https://lists.launchpad.net/openstack/msg20738.html which seems to be not resolved.

Comment 4 Jaroslav Henner 2013-02-13 11:57:55 UTC
restarting the openstack-nova-scheduler seems to fix this.

Comment 5 Jaroslav Henner 2013-02-22 09:34:33 UTC
This may be a regression. I need to check that.

Comment 6 Russell Bryant 2013-03-06 23:05:24 UTC
Looks like this is the bug:

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

I submitted a stable/folsom backport here:

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

Comment 7 Russell Bryant 2013-03-06 23:06:13 UTC
the stable/folsom backport is actually over here:

    https://review.openstack.org/23758

Comment 11 Jaroslav Henner 2013-03-21 21:06:58 UTC
I am not sure what have changed in my environment, I cannot reproduce with pre openstack-nova-2012.2.3-5.el6ost package, nor with newer one. So I guess VERIFIED

Comment 13 errata-xmlrpc 2013-04-04 20:21:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0709.html


Note You need to log in before you can comment on or make changes to this bug.