summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorGorka Eguileor <geguileo@redhat.com>2022-02-08 17:51:17 +0100
committerGorka Eguileor <geguileo@redhat.com>2022-02-09 17:37:37 +0100
commitda5ecebb3353618542aa84c2078b03f1a9f6ad83 (patch)
tree285755e585115a9dfec44622a3a2d382559bba0a /releasenotes
parent6afd886cdd25d1c761d80f6c43303a09187349d5 (diff)
downloadpython-cinderclient-da5ecebb3353618542aa84c2078b03f1a9f6ad83.tar.gz
Add support for collect-timing option
When we run "cinder help" we can see that there is a --collect-timing option: --collect-timing Collect per-API call timing information. This is a keystone session option that we are not currently acting on from a user perspective. This patch adds support for this option, and we'll be able to see the timing in a similar way as we do with OSC: $ cinder --collect-timing api-version +------+---------+---------+-------------+ | ID | Status | Version | Min_version | +------+---------+---------+-------------+ | v3.0 | CURRENT | 3.66 | 3.0 | +------+---------+---------+-------------+ +--------+------------------------------------------------+----------+ | method | url | seconds | +--------+------------------------------------------------+----------+ | GET | http://192.168.121.243/identity | 0.003591 | | POST | http://192.168.121.243/identity/v3/auth/tokens | 0.016649 | | GET | http://192.168.121.243/volume/ | 0.004012 | | GET | http://192.168.121.243/volume/ | 0.004543 | +--------+------------------------------------------------+----------+ The patch formats the "elapsed" time attribute into seconds and renames the column to "seconds" to make it more user friendly similar to OSC. If we didn't it would look like 0:00:00.003744 Closes-Bug: #1960337 Change-Id: Ia6b31794bf60a351007cc4476a76b9bcb76bf378
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/collect-timing-ce6d521d40d422fb.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/collect-timing-ce6d521d40d422fb.yaml b/releasenotes/notes/collect-timing-ce6d521d40d422fb.yaml
new file mode 100644
index 0000000..aa22517
--- /dev/null
+++ b/releasenotes/notes/collect-timing-ce6d521d40d422fb.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ `Bug #1960337 <https://bugs.launchpad.net/cinder/+bug/1960337>`_: Added
+ support for ``collect-timing`` parameter to see the timings of REST API
+ requests from the client when using Keystone authentication.