compute.instance.{create,delete}.{start,end} notification event types do not include audit_period_{beginning,ending} fields

Bug #1269494 reported by Matthew Gilliard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Matthew Gilliard

Bug Description

Currently there is inconsistency in what fields are present in some instance-lifecycle notifications. `compute.instance.update` includes fields `audit_period_beginning` and `audit_period_ending` but `compute.instance.{create,delete}.{start,end}` event types do not, and we are forced to assume that the the audit period can be inferred from the timestamp of the notification.

This causes billing teams problems because of:
  - inconsistency between nova events
  - inconsistency between nova and other OS components

I propose adding the audit_period_{beginning,ending} fields to those messages as a fix.

Changed in nova:
assignee: nobody → Matthew Gilliard (matthew-gilliard-u)
summary: compute.instance.{create,delete}.{start,end} messages do not include
- audit_period_{beginning,end} fields
+ audit_period_{beginning,ending} fields
summary: - compute.instance.{create,delete}.{start,end} messages do not include
- audit_period_{beginning,ending} fields
+ compute.instance.{create,delete}.{start,end} notification event types do
+ not include audit_period_{beginning,ending} fields
description: updated
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
Andrea Rosa (andrea-rosa-m) wrote :

Hi Matthew,

I am not fully convinced that we should include audit_period for compute.instance.{create,delete}.{start,end} messages.
The audit period is supposed to be used with periodic tasks, am I get it right?
I can't see the point to not use the timestamp of the messages.

Probably I am missing some points, hopefully someone else with more info about that can comment here or on your patch.
Thanks

Revision history for this message
Joe Gordon (jogo) wrote :

Is this bug still valid? The patch was abandoned.

Changed in nova:
status: In Progress → Incomplete
Revision history for this message
Matthew Gilliard (matthew-gilliard-u) wrote :

Thanks for the reminder Joe - this is not really a bug and the patch was unnecessary as Andrea Rosa points out.

Changed in nova:
status: Incomplete → Invalid
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.