Clean numeric expression like (1024 *1024) with unitied constant

Registered by ChangBo Guo(gcb)

 A lots of numeric expressions are needed to caculate byte number across Nova project,
 such as 1024*1024 , 1024**3 etc. especially in nova/vrit
 We can add constants and replace these numeric expressions . That makes code more readable .

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Undefined
Drafter:
ChangBo Guo(gcb)
Direction:
Needs approval
Assignee:
ChangBo Guo(gcb)
Definition:
Obsolete
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
ChangBo Guo(gcb)
Completed by
ChangBo Guo(gcb)

Related branches

Sprints

Whiteboard

I think this is small enough cleanup that no blueprint is necessary. --russellb

Addressed by: https://review.openstack.org/51176
  Add byte unit constants

Addressed by: https://review.openstack.org/51193
    clean up numeric expressions with byte constants

Gerrit topic: https://review.openstack.org/#q,topic:bp/byte-unit-clean,n,z

Addressed by: https://review.openstack.org/54246
    clean up numeric expressions in test

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.