← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1818671] Re: Openstack usage list not showing all projects

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

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

Title:
  Openstack usage list not showing all projects

Status in OpenStack Compute (nova):
  Expired

Bug description:
  In a customer environment running nova 2:17.0.5-0ubuntu1~cloud0

  when querying projects usage list most recent projects are not listed
  in the reply.

  Example:

  $ openstack  usage list --print-empty --start 2019-01-01 --end
  2019-02-01

  Not showing any information about project
  a897ea83f01c436e82e13a4306fa5ef0

  But querying for the usage of the specific project we can retrieve the
  results:

  openstack  usage show --project a897ea83f01c436e82e13a4306fa5ef0  --start 2019-01-01 --end 2019-02-01 
  Usage from 2019-01-01 to 2019-02-01 on project a897ea83f01c436e82e13a4306fa5ef0: 
  +---------------+------------+
  | Field         | Value      |
  +---------------+------------+
  | CPU Hours     | 528.3      |
  | Disk GB-Hours | 10566.07   |
  | RAM MB-Hours  | 2163930.45 |
  | Servers       | 43         |
  +---------------+------------+

  As a workaround we are able to get projects_uuid like this:
  projects_uuid=$(openstack project list | grep -v ID | awk '{print $2}')

  And iterate over them and get individuals usage:

  for prog in $projects_uuid; do openstack project show $prog; openstack
  usage show --project $prog  --start 2019-01-01 --end 2019-02-01; done

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


References