Add support for hypervisor-stats and hypervisor-uptime command

Bug #1423748 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Lin Hua Cheng

Bug Description

Add support for the command hypervisor-stats in OSC by enhancing: "osc hypervisor list" to take additional argument:
* --stats show the hypervisor-stats information

And to support hypervisor-uptime, enhance "osc hypervisor show" to take an additional argument:
* --uptime show the hypervisor-uptime information

description: updated
description: updated
description: updated
Revision history for this message
Steve Martinelli (stevemar) wrote :

what do the stats look like? should it be --long instead?

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Running the hypervisor-stats in nova CLI returns:

+----------------------+-------+
| Property | Value |
+----------------------+-------+
| count | 1 |
| current_workload | 0 |
| disk_available_least | 13 |
| free_disk_gb | 29 |
| free_ram_mb | 3377 |
| local_gb | 29 |
| local_gb_used | 0 |
| memory_mb | 3953 |
| memory_mb_used | 576 |
| running_vms | 1 |
| vcpus | 2 |
| vcpus_used | 1 |
+----------------------+-------+

Seem like is an aggregated data. From the nova client docs, it is described "Get hypervisor statistics over all compute nodes."

Changed in python-openstackclient:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
status: New → In Progress
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Patch to address the hypervisor stats command: https://review.openstack.org/#/c/157635/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/158043

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by Lin Hua Cheng (<email address hidden>) on branch: master
Review: https://review.openstack.org/157635
Reason: duplicate https://review.openstack.org/#/c/158043

Dean Troyer (dtroyer)
Changed in python-openstackclient:
milestone: none → m8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/158043
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=5fddec359dbf6106fd72fcc469d37fd432c85cf3
Submitter: Jenkins
Branch: master

commit 5fddec359dbf6106fd72fcc469d37fd432c85cf3
Author: lin-hua-cheng <email address hidden>
Date: Fri Feb 20 22:23:30 2015 -0800

    Add 'uptime' in 'hypervisor show'

    Fetch the 'uptime' by making a call to hypervisor-uptime.

    Update the help for 'hypervisor show' to mention that it
    supports by Name or Id.

    Change-Id: I31060d203e87749cfc05810c2d9db42f2416051d
    Partial-Bug: #1423748

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/157635
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=90c4a0a24f3d63c1551c6a9de0b509df0718b650
Submitter: Jenkins
Branch: master

commit 90c4a0a24f3d63c1551c6a9de0b509df0718b650
Author: lin-hua-cheng <email address hidden>
Date: Thu Feb 19 18:08:17 2015 -0800

    Add ability for diplaying hypervisor statistics

    Added new command 'hypervisor stats show' for displaying
    the hypervisor stats over all compute nodes.

    Change-Id: I4f98c69135b04d4f6cea67cd6350d5d99fb79dba
    Partial-Bug: #1423748

Dean Troyer (dtroyer)
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.