[Bug 1792880] Re: totalGigabytesUsed in openstack limits show indicate wrong info

Christian Rohmann 1792880 at bugs.launchpad.net
Thu May 12 09:00:05 UTC 2022


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.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1792880

Title:
  totalGigabytesUsed in openstack limits show indicate wrong info

Status in python-openstackclient package in Ubuntu:
  Triaged

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 |

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1792880/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list