HyperV driver does not implement hypervisor-uptime feature

Bug #1335559 reported by Sagar Ratnakara Nikam
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Sagar Ratnakara Nikam
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

The HyperV driver does not implement hypervisor-uptime feature. Currently NotImplementError is raised.

The class Win32_PerfFormattedData_PerfOS_System provides SystemUpTime.
This can be used to return the uptime of the HyperV host

Changed in nova:
assignee: nobody → Sagar Ratnakara Nikam (sagar-r-nikam)
Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

Hi Sagar,

Thanks for reporting this!

I suggest also to evaluate using "GetTickCount64()" in place of the WMI call:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411%28v=vs.85%29.aspx

Changed in nova:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/104254
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a41543820a8f0686612213b12ab07cf70b3d997f
Submitter: Jenkins
Branch: master

commit a41543820a8f0686612213b12ab07cf70b3d997f
Author: Sagar Ratnakara Nikam <email address hidden>
Date: Wed Jul 2 20:21:24 2014 +0530

    HyperV Driver - Fix to implement hypervisor-uptime

    The hyperv driver currently does not return the hypervisor-uptime.
    This fix does the necessary changes to return the hypervisor-uptime.
    The uptime returned is in similar format to libvirt driver uptime

    The uptime is calculated using the windows function GetTickCount64
    More details about this function available at
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411%28v=vs.85%29.aspx

    The function GetTickCount64 returns in millisecs the time since the host
    is up.

    Change-Id: Ib3cd90b17f64e369badaddb764ac9e6b9f6c1a4b
    Closes-Bug: #1335559

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/117148

Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/icehouse)

Reviewed: https://review.openstack.org/117148
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=08b5d48fbaf3a357cee1b7fb1b189fbf423ed570
Submitter: Jenkins
Branch: stable/icehouse

commit 08b5d48fbaf3a357cee1b7fb1b189fbf423ed570
Author: Sagar Ratnakara Nikam <email address hidden>
Date: Wed Jul 2 20:21:24 2014 +0530

    HyperV Driver - Fix to implement hypervisor-uptime

    The hyperv driver currently does not return the hypervisor-uptime.
    This fix does the necessary changes to return the hypervisor-uptime.
    The uptime returned is in similar format to libvirt driver uptime

    The uptime is calculated using the windows function GetTickCount64
    More details about this function available at
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411%28v=vs.85%29.aspx

    The function GetTickCount64 returns in millisecs the time since the host
    is up.

    Change-Id: Ib3cd90b17f64e369badaddb764ac9e6b9f6c1a4b
    Closes-Bug: #1335559
    (cherry picked from commit a41543820a8f0686612213b12ab07cf70b3d997f)

tags: added: in-stable-icehouse
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.