Glance periodic exists notification

Registered by Anuj Mathur

Glance needs to emit a periodic notification which contains the details of all the images that were active in a particular period. Each notification will contain a list of all the corresponding images for a particular owner. We chose this instead of emitting a notification for each individual image to reduce the number of notifications that'll need to be emitted. Two type of images are considered as having existed during the given audit period. First are active images that were created before or during the audit period. Second are images that were active but were deleted during the audit period. To determine if and image was or is active, we select based on location having been set and whether created_at/deleted_at are in range.

This blueprint is an offshoot of https://review.openstack.org/#/c/21823/

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Approved
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/glance-exists-notification,n,z

Addressed by: https://review.openstack.org/44649
    Periodic image.exists event generation

A sample exists notification that will be emitted:

{
    "images": [
        {
            "status": "active",
            "size": 10354688,
            "name": "image1",
            "id": "d4abe8c0-3f45-45c4-9212-a6dfd10c8ee0",
            "created_at": "2013-09-02 09:31:18",
            "deleted_at": null,
            "properties": {
                "instance_uuid": "c443eb57-4cb3-477a-93c3-0ebae7cc7233"
            }
        },
        {
            "status": "deleted",
            "size": 11272192,
            "name": "image2",
            "id": "5a264b54-0c67-424a-863b-80c59e5c258f",
            "created_at": "2013-09-02 09:32:45",
            "deleted_at": "2013-09-02 09:33:09",
            "properties": {
                "instance_uuid": "c443eb57-4cb3-477a-93c3-0ebae7cc7233"
            }
        }
    ],
    "owner": "49329d836be5455ca7ef8875b990582b",
    "audit_period_ending": "2013-09-02 23:59:59.999999",
    "audit_period_beginning": "2013-09-02 00:00:00"
}

This seems acceptable, though there are a few details to work out. However, the proposed review has been WIP for a long time now, so it seems its abandoned for now. If someone wants to pick it back up and repropose for Juno, that would be great.
markwash abandoned 2014-02-21

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.