the update time is not updated when update zone of aggregate

Bug #1538014 reported by hgangwx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Pallavi

Bug Description

[Summary]
the update time is not updated when update zone of aggregate

[Topo]
devstack all-in-one node

[Description and expect result]
the update time is updated when update zone of aggregate

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) the update time is not updated when update zone of aggregate:
root@45-59:~# openstack aggregate set --zone "AB" agg1
+-------------------+---------------------------------------------+
| Field | Value |
+-------------------+---------------------------------------------+
| availability_zone | AB |
| created_at | 2016-01-26T11:34:00.000000 |
| deleted | False |
| deleted_at | None |
| hosts | [] |
| id | 5 |
| metadata | {u'abc': u'1', u'availability_zone': u'AB'} |
| name | agg1 |
| updated_at | None >>>ISSUE |
+-------------------+---------------------------------------------+
root@45-59:~# openstack aggregate set --zone "ab" agg1
+-------------------+---------------------------------------------+
| Field | Value |
+-------------------+---------------------------------------------+
| availability_zone | ab |
| created_at | 2016-01-26T11:34:00.000000 |
| deleted | False |
| deleted_at | None |
| hosts | [] |
| id | 5 |
| metadata | {u'abc': u'1', u'availability_zone': u'ab'} |
| name | agg1 |
| updated_at | None >>>ISSUE |
+-------------------+---------------------------------------------+

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

Tags: db
Pallavi (p-pallavi)
Changed in nova:
assignee: nobody → Pallavi (p-pallavi)
Sean Dague (sdague)
tags: added: db
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
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/284023

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

Reviewed: https://review.openstack.org/284023
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b4f7066e7c074dd2fb50d99df593432937c7a8ae
Submitter: Jenkins
Branch: master

commit b4f7066e7c074dd2fb50d99df593432937c7a8ae
Author: Pallavi <email address hidden>
Date: Wed Feb 24 14:47:36 2016 +0530

    Update time is not updated when metadata of aggregate is updated

    For example, When aggregate zone is updated, time is not getting updated
    in updated_at field.

    So, modified the code such that time gets updated in updated_at field
    whenever the aggregate metadata content gets modified.

    Change-Id: Icb65313ba85562fadeddbc1890ca5d463e74d3c2
    Closes-Bug: #1538014

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0rc1

This issue was fixed in the openstack/nova 13.0.0.0rc1 release candidate.

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.