[openstack-dev] [Nova] Questions about instance actions' update and finish
Edward Leafe
ed at leafe.com
Thu Jun 30 03:13:54 UTC 2016
On Jun 29, 2016, at 10:05 PM, Matt Riedemann <mriedem at linux.vnet.ibm.com> wrote:
>
>>> 2. The updated_at field is also empty, should we sync the updated_at
>>> time to the created_at time when we create the action and also update
>>> it whenever the action status changed, e.g finished.
>>
>> When a finish_time is recorded that should definitely also update
>> updated_at. I would be in favor of having updated_at set when the
>> instance action is created. I've never fully understood why Nova doesn't
>> do that generally.
>
> As discussed in the API meeting this morning, I thought it would be odd to set updated_at = created_at when the record is created.
It's really very common. Think of 'updated_at' as meaning 'the last time this record was modified'. For a new record, the initial creation is also the last time it was modified.
-- Ed Leafe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160629/feb4a649/attachment.pgp>
More information about the OpenStack-dev
mailing list