Bandwidth usage object not created after db update

Bug #1442749 reported by Andrew Laski
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Andrew Laski

Bug Description

When using objects.BandwidthUsage().create() it was updating the database and then trying to populate the object with the returned result. But db.bw_usage_update does not return a result so the object creation fails.

Andrew Laski (alaski)
Changed in nova:
importance: Undecided → Medium
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/172524

Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit adbc0f1e550ec9dd63e87c2e89ac18141470a0e6
Author: Andrew Laski <email address hidden>
Date: Fri Apr 10 13:59:14 2015 -0400

    Return bandwidth usage after updating

    When using objects.BandwidthUsage().create() it was updating the
    database and then trying to populate the object with the returned
    result. But db.bw_usage_update() does not return a result so the object
    creation fails.

    Change-Id: I18fe2627ef2f998a407eef0b8e6649e21ced252c
    Closes-Bug: 1442749

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-3 → 12.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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