Math in server migrations API samples doesn't add up

Bug #1641988 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
int32bit

Bug Description

This is just a docs bug really because the server-migrations API samples are in the API reference docs, but the bytes processed/remaining/total doesn't really add up in these:

https://github.com/openstack/nova/blob/925dc7aa128d060e0d0f9275a3b1fcdc98eecbf3/doc/api_samples/server-migrations/v2.23/migrations-get.json

        "memory_total_bytes": 123456,
        "memory_processed_bytes": 12345,
        "memory_remaining_bytes": 120000,

Based on ^ the memory_remaining_bytes value should be 111111.

Similar:

        "disk_total_bytes": 234567,
        "disk_processed_bytes": 23456,
        "disk_remaining_bytes": 230000,

Also:

https://github.com/openstack/nova/blob/925dc7aa128d060e0d0f9275a3b1fcdc98eecbf3/doc/api_samples/server-migrations/v2.23/migrations-index.json

int32bit (int32bit)
Changed in nova:
assignee: nobody → int32bit (int32bit)
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/397821

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

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

commit 512ebfb1860e43d68e5e237d7259c97fd14aba65
Author: int32bit <email address hidden>
Date: Wed Nov 16 00:38:57 2016 +0800

    Fix data error in api samples doc

    Change-Id: I8c4f49d18968636da7e76b51acc6053f169e3ae0
    Closes-Bug: #1641988

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 15.0.0.0b2

This issue was fixed in the openstack/nova 15.0.0.0b2 development milestone.

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.