Trove reports exists event in context of future audit period

Bug #1469860 reported by Rohit Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Victoria Martinez de la Cruz

Bug Description

When Trove emits exists notification, it includes an audit period. This should be the most recently completed audit period/ period of usage. This how nova does it - https://github.com/openstack/nova/blob/master/nova/notifications.py#L250 and the openstack recommendation: https://wiki.openstack.org/wiki/NotificationEventExamples

However, Trove emits exists event with a future audit period , which seems incorrect. https://github.com/openstack/trove/blob/master/trove/extensions/mgmt/instances/models.py#L188

At a minimum, this should be fixed to reflect exists event for the recently completed audit period -

Swapping the audit_start and audit_end times(or something similar):

audit_start = utils.isotime(
            now - datetime.timedelta(
                seconds=CONF.exists_notification_ticks * CONF.report_interval),
            subsecond=True)

audit_end = utils.isotime(now, subsecond=True)

Craig Vyvial (cp16net)
Changed in trove:
status: New → Confirmed
status: Confirmed → Triaged
Changed in trove:
importance: Undecided → Medium
milestone: none → liberty-3
Changed in trove:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Changed in trove:
milestone: liberty-3 → ongoing
milestone: ongoing → liberty-3
Changed in trove:
milestone: liberty-3 → ongoing
Changed in trove:
milestone: ongoing → liberty-rc1
Changed in trove:
milestone: liberty-rc1 → mitaka-1
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/269854

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

Reviewed: https://review.openstack.org/269854
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=4d5e8871401e1db046bf5dba0603d788ed9c7a3d
Submitter: Jenkins
Branch: master

commit 4d5e8871401e1db046bf5dba0603d788ed9c7a3d
Author: Victoria Martinez de la Cruz <email address hidden>
Date: Tue Jan 19 17:31:32 2016 -0300

    Make Trove exists events notifs be emitted in current audit period

    Following the guidelines in https://wiki.openstack.org/wiki/NotificationEventExamples,
    we should make sure that the exists notifications are emitted
    with a current audit period instead of the future audit period
    we are currently using.

    Change-Id: I4e19d47ec8827709dbd4b22569877ef2c7c9ea77
    Closes-Bug: #1469860

Changed in trove:
status: In Progress → Fix Released
Changed in trove:
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/trove 5.0.0.0b3

This issue was fixed in the openstack/trove 5.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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