[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

openstackclient. Bug when cinder is absent



Fully updated debian trixie
Pluss added in /etc/apt/sources.list
deb http://trixie-flamingo.debian.net/debian trixie-flamingo-backports main
deb http://trixie-flamingo.debian.net/debian trixie-flamingo-backports-nochange

root@kvm7:~# openstack quota show
public endpoint for block-storage service in regionOne region not found
root@kvm7:~# openstack --version
openstack 8.2.0

After the attached patch
# root@kvm7:~# openstack quota show
+----------------------+-------+
| Resource             | Limit |
+----------------------+-------+
| cores                |    20 |
| instances            |    10 |
| ram                  | 51200 |
| fixed_ips            |  None |
| networks             |   100 |
| check_limit          |  None |
| health_monitors      |  None |
| listeners            |  None |
| load_balancers       |  None |
| l7_policies          |  None |
| pools                |  None |
| ports                |   500 |
| project_id           |  None |
| rbac_policies        |    10 |
| routers              |    10 |
| subnets              |   100 |
| subnet_pools         |    -1 |
| injected-file-size   | 10240 |
| injected-path-size   |   255 |
| injected-files       |     5 |
| key-pairs            |   100 |
| properties           |   128 |
| server-group-members |    10 |
| server-groups        |    10 |
| floating-ips         |    50 |
| secgroup-rules       |   100 |
| secgroups            |    10 |
+----------------------+-------+
root@kvm7:~#

----------------
diff --git a/debian/changelog b/debian/changelog
index 8ace0bbe..96cb0987 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+ -- Svein-Erik Skjelbred <svein-erik@skjelbred.com>  Thu, 18 Sep 2025 20:33:08 +0200
+
+python-openstackclient (8.2.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Added patch so openstack quota show works when cinder is absent
+
+ -- Svein-Erik Skjelbred <svein-erik@skjelbred.com>  Thu, 18 Sep 2025 19:14:06 +0200
+
 python-openstackclient (8.2.0-2) experimental; urgency=medium

   * Add package-all-files.patch.
diff --git a/debian/patches/quota.patch b/debian/patches/quota.patch
new file mode 100644
index 00000000..a58d6171
--- /dev/null
+++ b/debian/patches/quota.patch
@@ -0,0 +1,22 @@
+--- a/openstackclient/common/quota.py
++++ b/openstackclient/common/quota.py
+@@ -754,12 +754,13 @@ and ``server-group-members`` output for
+                 default=parsed_args.default,
+             )
+         if parsed_args.service in {'all', 'volume'}:
+-            volume_quota_info = get_volume_quotas(
+-                self.app,
+-                project,
+-                detail=parsed_args.usage,
+-                default=parsed_args.default,
+-            )
++            if self.app.client_manager.is_volume_endpoint_enabled(volume_client=None):
++                volume_quota_info = get_volume_quotas(
++                    self.app,
++                    project,
++                    detail=parsed_args.usage,
++                    default=parsed_args.default,
++                )
+         if parsed_args.service in {'all', 'network'}:
+             network_quota_info = get_network_quotas(
+                 self.app,
diff --git a/debian/patches/series b/debian/patches/series
index bb74ab0f..4c86014f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 package-all-files.patch
+quota.patch
---------------------
mvh
Svein-Erik


Reply to: