Seeing this in two difference clouds, when operating as the admin user.

Client versions:  Tested with both 3.14.0 and 3.18.0

Nova is version 17.0.9 (package 17.0.9-0ubuntu1~cloud0) and 17.0.5
(package 17.0.5-0ubuntu1~cloud0).

Note that we get a bunch of results, but not a complete list - it's as
if there's some pagination, but no message to tell us, nor a logical
point at which it splits.  One site, we get 15 results, another 508.

One of these clouds has two sites, and have the same projects in each
site.  One site returns 24 rows, one 15.  The site that returns more
rows runs Nova 17.0.7 and client 3.16.2 (although I've tried this client
elsewhere and it doesn't seem to make any difference).

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

** Tags added: canonical-bootstack

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to