totalGigabytesUsed in openstack limits show indicate wrong info

Bug #1792880 reported by ByungYeol Woo
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

1) The release of Ubuntu: 18.04.1

2) The version of the package: openstack 3.16.1

3) What you expected to happen
: "cinder quota-usage" command returns each project's total gigabyes. It works well.

openstack-cli:~$ cinder quota-usage 61b2e1eb95524d058ab800eb8eb83cd7 | grep -e " gigabytes " -e Type
| Type | In_use | Reserved | Limit | Allocated |
| gigabytes | 13322 | 0 | 100000 | 0 |
openstack-cli:~$ cinder quota-usage 28f1fb51d07b492ea29b962e4078beed | grep -e " gigabytes " -e Type
| Type | In_use | Reserved | Limit | Allocated |
| gigabytes | 1830 | 0 | 2000 | 0 |

4) What happened instead
: But "openstack limits show" command always returns totalGigabytesUsed of OS_PROJECT_NAME, instead of specified project id.

openstack-cli:~$ openstack limits show --project 61b2e1eb95524d058ab800eb8eb83cd7 --absolute | grep -e totalGigabytesUsed -e Name
| Name | Value |
| totalGigabytesUsed | 13322 |
openstack-cli:~$ openstack limits show --project 28f1fb51d07b492ea29b962e4078beed --absolute | grep -e totalGigabytesUsed -e Name
| Name | Value |
| totalGigabytesUsed | 13322 |

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi ByungYeol,

Thank you for reporting this and making Ubuntu better. It looks this is also an upstream issue. Please can you open a bug upstream at https://storyboard.openstack.org/#!/project/975 ?

Thanks,
Corey

Changed in python-openstackclient (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi ByungYeol,

I've gone ahead and opened the upstream bug at: https://storyboard.openstack.org/#!/story/2003970

Thanks,
Corey

Revision history for this message
Wouter van Bommel (woutervb) wrote :

subscribed ~field-medium

tags: added: canonical-bootstack
tags: added: field-medium
Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI Circling back to this, it looks like the upstream issues are still pending:

https://storyboard.openstack.org/#!/story/2003970
https://review.opendev.org/#/c/590807/

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Per upstream bug comment:

This issue is caused by lack of microversion support for Volume service by python-openstack client. It also is unable to negotiate API microversions with server. As a result, python-openstackclient will always use cinder v3.0 API and will not be able to properly poll the server.

Workaround:
cinder --os-volume-api-version 3.40 absolute-limits PROJECT-ID

Revision history for this message
Christian Rohmann (christian-rohmann) wrote :

This is still very broken even this the promoted fix of https://review.opendev.org/c/openstack/python-openstackclient/+/792950/ and running with the VERY latest and greatest:

```
openstack --os-volume-api-version 3.60 limits show --absolute --project $SOMEPROJECT
```
returns the same data for all limits coming from cinder:
 totalVolumesUsed
 totalGigabytesUsed
 totalSnapshotsUsed
 totalBackupsUsed
 totalBackupGigabytesUsed

which always originates from the OS_CLOUD configured project, but not the one given as CLI parameter.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.