Also note that there is once again different behaviour if a user has admin role for this command, the non-admin user can just specify their own project, it seems.
steve:devstack$ nova usage-list
ERROR (Forbidden): Policy doesn't allow compute_extension:simple_tenant_usage:list to be performed. (HTTP 403)
steve:devstack$ nova usage --tenant 7390ee47b3c642cf86ed2e0501cab352
ERROR (Forbidden): Policy doesn't allow compute_extension:simple_tenant_usage:show to be performed.
steve:devstack$ nova usage
Usage from 2014-11-18 to 2014-12-17:
+---------+--------------+-----------+---------------+
| Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+---------+--------------+-----------+---------------+
| 1 | 104.50 | 0.20 | 0.20 |
+---------+--------------+-----------+---------------+
Also note that there is once again different behaviour if a user has admin role for this command, the non-admin user can just specify their own project, it seems.
steve:devstack$ nova usage-list extension: simple_ tenant_ usage:list to be performed. (HTTP 403)
ERROR (Forbidden): Policy doesn't allow compute_
steve:devstack$ nova usage --tenant 7390ee47b3c642c f86ed2e0501cab3 52 extension: simple_ tenant_ usage:show to be performed.
ERROR (Forbidden): Policy doesn't allow compute_
steve:devstack$ nova usage ---+--- ------- ----+-- ------- --+---- ------- ----+ ---+--- ------- ----+-- ------- --+---- ------- ----+ ---+--- ------- ----+-- ------- --+---- ------- ----+
Usage from 2014-11-18 to 2014-12-17:
+------
| Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+------
| 1 | 104.50 | 0.20 | 0.20 |
+------
All run as 'demo' user with 'demo' project