get_server_diagnostics must define a hypervisor-independent API

Bug #1240043 reported by Bob Ball on 2013-10-15
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)

Bug Description

get_server_diagnostics currently returns an unrestricted dictionary, which is only lightly documented in a few places, e.g.:

That documentation shows explicit differences between libvirt and XenAPI.

There are moves to test + enforce the return values, and suggestions that Ceilometer may be interested in consuming the output, therefore we need an API which is explicitly defined and not depend on hypervisor-specific behaviour.

Bob Ball (bob-ball) on 2013-10-15
tags: added: libvirt xenserver
Sean Dague (sdague) wrote :

It's actually pretty problematic to have this data format completely unspecified, and vary wildly based on back end implementation. I think some commonality is needed here across hypervisors as this is a public facing interface. At minimum it should return the hypervisor type of the environment, so there could be per / hypervisor schema.

Changed in nova:
status: New → Confirmed
importance: Undecided → High
Matt Riedemann (mriedem) wrote :

Related tempest patch to skip the test until this is fixed:

Alvaro Lopez (aloga) on 2013-11-21
tags: added: xen
Gary Kotton (garyk) wrote :

This is being addressed by the blueprint
xen support -
vmware support -
libvirt -
When all of the above are though I'll update the tempest tests ...

Changed in nova:
assignee: nobody → Gary Kotton (garyk)
milestone: none → icehouse-2
tags: added: vmware
Bob Ball (bob-ball) wrote :

Following discussion on ML, new fixes are now at
libvirt (+generic support)

Thierry Carrez (ttx) on 2014-01-22
Changed in nova:
milestone: icehouse-2 → icehouse-3
Thierry Carrez (ttx) on 2014-03-05
Changed in nova:
milestone: icehouse-3 → icehouse-rc1
Matt Riedemann (mriedem) wrote :

Dropping from icehouse since the blueprint was moved out:

Changed in nova:
milestone: icehouse-rc1 → none
Gary Kotton (garyk) wrote :
Changed in nova:
milestone: none → juno-3
status: Confirmed → In Progress
tags: removed: vmware xen xenserver
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2014-09-05
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2014-10-16
Changed in nova:
milestone: juno-3 → 2014.2
Anna Babich (ababich) wrote :

Since the fix released was targeted for V3 REST API, which is not supported currently, we still don't have consistent format of diagnostics data output for different virt drivers. At the moment, the nova diagnostics + libvirt returns:

Response - Headers: {'status': '200', 'content-length': '675', 'content-location': '', 'x-compute-request-id': 'req-301bd0d7-ebf4-4ef7-9e71-8b6e495cc5c9', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1', 'date': 'Wed, 29 Jun 2016 14:58:34 GMT', 'content-type': 'application/json'}
        Body: {"tap443f65b3-94_rx_errors": 0, "memory-available": 49056, "vda_write": 214016, "cpu0_time": 12490000000, "memory-major_fault": 11, "vdz_write": 0, "vdz_write_req": 0, "memory-swap_out": 0, "tap443f65b3-94_tx_packets": 9, "tap443f65b3-94_rx": 976, "tap443f65b3-94_tx_errors": 0, "tap443f65b3-94_rx_packets": 12, "vdz_errors": -1, "vda_read": 23142400, "vda_write_req": 36, "memory-actual": 65536, "memory-swap_in": 0, "vdz_read_req": 142, "tap443f65b3-94_tx_drop": 0, "vdz_read": 1731584, "memory-minor_fault": 21668, "tap443f65b3-94_tx": 999, "memory": 65536, "memory-rss": 127992, "memory-unused": 30472, "vda_read_req": 1076, "vda_errors": -1, "tap443f65b3-94_rx_drop": 0}

and nova diagnostics + xenapi returns:

Response - Headers: {'content-length': '669', 'status': '200', 'x-compute-request-id': 'req-c24610d8-c004-444f-8a86-7915e1caa045', 'date': 'Tue, 01 Mar 2016 07:35:45 GMT', 'content-location': '', 'content-type': 'application/json', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1'}
        Body: {"vbd_xvdd_iowait": "0.0", "vbd_xvdd_read": "0.0", "vbd_xvda_write": "0.0", "vbd_xvdd_iops_read": "0.0", "vbd_xvda_avgqu_sz": "0.0", "vbd_xvdd_io_throughput_total": "0.0", "vif_0_tx": "0.0", "vbd_xvda_io_throughput_total": "0.0", "cpu0": "0.0003", "vif_0_rx": "180.5545", "vbd_xvda_iowait": "0.0", "vbd_xvdd_avgqu_sz": "0.0", "memory_target": "67108864.0000", "vbd_xvda_iops_write": "0.0", "last_update": "1456817745", "vbd_xvda_read": "0.0", "vbd_xvdd_iops_total": "0.0", "vbd_xvda_iops_read": "0.0", "vbd_xvdd_inflight": "0.0", "memory": "67108864.0000", "vbd_xvdd_write": "0.0", "vbd_xvda_iops_total": "0.0", "vbd_xvda_inflight": "0.0", "vbd_xvdd_iops_write": "0.0"}

It would be nice do not bury what has been already done (at least, we have etc.) and to implement a microversion with support of consistent format of diagnostics data

Roman Podoliaka (rpodolyaka) wrote :

I'll double check this on my devstack and see what we can do.

Changed in nova:
assignee: Gary Kotton (garyk) → Roman Podoliaka (rpodolyaka)
status: Fix Released → Confirmed
Matt Riedemann (mriedem) wrote :

Yes we need a spec in the nova-specs repo for ocata to add a microversion so that the os-diagnostics API uses the get_instance_diagnostics method in the compute API/manager, which is what was added for the now defunct v3 API.

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).

Changed in nova:
assignee: Roman Podoliaka (rpodolyaka) → nobody
importance: High → Undecided
status: Confirmed → Expired
Roman Podoliaka (rpodolyaka) wrote :

As Matt stated in this was fixed in API v3, which we dropped, so we still need to fix this in API v2.1 by the means of a new micro version.


Changed in nova:
status: Expired → Confirmed
assignee: nobody → Roman Podoliaka (rpodolyaka)
milestone: 2014.2 → next
Changed in nova:
assignee: Roman Podoliaka (rpodolyaka) → Sergey Nikitin (snikitin)
Changed in nova:
status: Confirmed → In Progress
Changed in nova:
importance: Undecided → Low
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing
the status back to the previous state and unassigning. If
there are active reviews related to this bug, please include
links in comments.

Changed in nova:
status: In Progress → Confirmed
assignee: Sergey Nikitin (snikitin) → nobody
Sean Dague (sdague) wrote :

Automatically discovered version grizzly in description. If this is incorrect, please update the description to include 'nova version: ...'

tags: added: openstack-version.grizzly
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers