--timing option does not work.

Bug #1402577 reported by Ajaya Agrawal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Low
Dean Troyer

Bug Description

I am trying to create a server using openstack --timing server create --flavor m1.nano --image 3199171c-b935-4c11-8ed0-f5f5c13dbd51 aj. But I can't see time information. If run the equivalent command in nova it gives me list of api calls along with time taken for these calls.

Revision history for this message
Dean Troyer (dtroyer) wrote :

Support for --timing is not complete and will probably be rewritten in a manner that all APIs can be properly supported, not just Compute. This is currently not a high priority.

Changed in python-openstackclient:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Dean Troyer (dtroyer) wrote :

WTF am I doing wrong??? https://review.openstack.org/164091 addresses this with a fix that handles all client libs that use the OSC-managed session. There may still be some that do not...

Changed in python-openstackclient:
milestone: none → m9
assignee: nobody → Dean Troyer (dtroyer)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/164091
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=0d689871b4d8c060e1d48a9472449f3d670333bb
Submitter: Jenkins
Branch: master

commit 0d689871b4d8c060e1d48a9472449f3d670333bb
Author: Dean Troyer <email address hidden>
Date: Fri Sep 5 02:00:36 2014 -0500

    Fix session timing

    Subclass keystoneclient.session.Session to add the timing hooks to
    record the elapsed time returned by requests.Response objects, including
    the redirection history. Redirects are included individually and not
    rolled into the total time for the original request.

    This works for all clients that use OSC's session.

    Closes-Bug: #1402577
    Change-Id: I9360c90c151579b89a37edb8c11c17feb15b3cb9

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Fix Committed → Fix Released
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.