New Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Parth,

Nova doesn't take the pause/suspended state into account when returning a value for the "uptime" diagnostics value: https://github.com/openstack/nova/blo...

If you want to calculate uptime, note down server creation time from metadata and calculate the difference after change state.

Thanks Pandiyan.

Hi Parth,

Nova doesn't take the pause/suspended state into account when returning a value for the "uptime" diagnostics value: https://github.com/openstack/nova/blo...

https://github.com/openstack/nova/blob/660ecaee66ccab895b282c2ed45c95c809ad6833/nova/virt/libvirt/driver.py#L7464-L7465

If you want to calculate uptime, note down server creation time from metadata and calculate the difference after change state.

Thanks Pandiyan.