← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1416984] [NEW] Property used is confused in usage code

 

Public bug reported:

In the code https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/nova.py#L152-L158
'vcpus': getattr(self, "total_vcpus_usage", 0), vcpus is to describe vcpu num, however total_vcpus_usage is the total
hours of vcpus used.

In the code https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/nova.py#L164-L171
we can sure 'vcpus' is to  describe vcpu num, vcpu_hours describe vcpu used hours.

** Affects: horizon
     Importance: Undecided
     Assignee: tinytmy (tangmeiyan77)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => tinytmy (tangmeiyan77)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1416984

Title:
  Property used is confused in usage code

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In the code https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/nova.py#L152-L158
  'vcpus': getattr(self, "total_vcpus_usage", 0), vcpus is to describe vcpu num, however total_vcpus_usage is the total
  hours of vcpus used.

  In the code https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/nova.py#L164-L171
  we can sure 'vcpus' is to  describe vcpu num, vcpu_hours describe vcpu used hours.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1416984/+subscriptions


Follow ups

References