test_tranformer unit test fails with ModelNotFoundError: InstanceServiceStatus Not Found

Bug #1379729 reported by Thierry Carrez
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Nikhil Manchanda
Juno
Fix Released
Medium
Ihar Hrachyshka

Bug Description

py26 unit tests randomly failed with:

2014-10-10 08:03:52.131 | ======================================================================
2014-10-10 08:03:52.132 | FAIL: mgmt.test_models.TestNotificationTransformer.test_tranformer
2014-10-10 08:03:52.132 | tags: worker-7
2014-10-10 08:03:52.132 | ----------------------------------------------------------------------
2014-10-10 08:03:52.133 | Traceback (most recent call last):
2014-10-10 08:03:52.133 | File "/home/jenkins/workspace/gate-trove-python26/trove/tests/unittests/mgmt/test_models.py", line 121, in test_tranformer
2014-10-10 08:03:52.133 | context=self.context)()
2014-10-10 08:03:52.134 | File "trove/extensions/mgmt/instances/models.py", line 223, in __call__
2014-10-10 08:03:52.134 | instance_id=db_info.id)
2014-10-10 08:03:52.134 | File "trove/db/models.py", line 99, in find_by
2014-10-10 08:03:52.135 | {"s_name": cls.__name__})
2014-10-10 08:03:52.135 | ModelNotFoundError: InstanceServiceStatus Not Found

http://logs.openstack.org/41/127441/1/check/gate-trove-python26/5da28bc/console.html

Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Seems intermittent. Need to investigate what's going on here.

Changed in trove:
status: New → Triaged
importance: Undecided → Medium
milestone: none → kilo-1
assignee: nobody → Nikhil Manchanda (slicknik)
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Haven't had a chance to look into this yet -- moving to kilo-2.

Changed in trove:
milestone: kilo-1 → kilo-2
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :
Revision history for this message
Amrith Kumar (amrith) wrote :

Yes, this is an annoying failure.

Changed in trove:
milestone: kilo-2 → kilo-3
Changed in trove:
milestone: kilo-3 → kilo-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/169602

Changed in trove:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/169602
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=80f898d3ba16d5c644447dbacf3a1bad6eaa6488
Submitter: Jenkins
Branch: master

commit 80f898d3ba16d5c644447dbacf3a1bad6eaa6488
Author: Nikhil Manchanda <email address hidden>
Date: Tue Mar 31 20:23:08 2015 -0700

    Fixed NotificationTransformer to handle missing InstanceServiceStatus

    Fixed NotificationTransformer to not send exists notifications for
    new Trove instances which do not have an InstanceServiceStatus
    created for them yet. The notifications for these instances will
    eventually be sent during the next iteration of the scheduled task.

    Change-Id: I002ab89f8c7715310f1890a34967c8172a5d96ef
    Closes-Bug: 1379729

Changed in trove:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/171579

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (stable/juno)

Reviewed: https://review.openstack.org/171579
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=ef23c6ec9f7f932c2a95c70526297c32362b36a7
Submitter: Jenkins
Branch: stable/juno

commit ef23c6ec9f7f932c2a95c70526297c32362b36a7
Author: Nikhil Manchanda <email address hidden>
Date: Tue Mar 31 20:23:08 2015 -0700

    Fixed NotificationTransformer to handle missing InstanceServiceStatus

    Fixed NotificationTransformer to not send exists notifications for
    new Trove instances which do not have an InstanceServiceStatus
    created for them yet. The notifications for these instances will
    eventually be sent during the next iteration of the scheduled task.

    Change-Id: I002ab89f8c7715310f1890a34967c8172a5d96ef
    Closes-Bug: 1379729
    (cherry picked from commit 80f898d3ba16d5c644447dbacf3a1bad6eaa6488)

Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.