Merge "Fixed some nits for microversion 2.48"

This commit is contained in:
Jenkins 2017-06-06 23:27:49 +00:00 committed by Gerrit Code Review
commit f42ecdf88f
5 changed files with 9 additions and 9 deletions

View File

@ -53,7 +53,7 @@ will be reported as ``None`` in the response.
- disk_details: disk_details_diagnostics - disk_details: disk_details_diagnostics
- nic_details: nic_details_diagnostics - nic_details: nic_details_diagnostics
**Example Server diagnostics** **Example Server diagnostics (2.48)**
.. literalinclude:: ../../doc/api_samples/os-server-diagnostics/v2.48/server-diagnostics-get-resp.json .. literalinclude:: ../../doc/api_samples/os-server-diagnostics/v2.48/server-diagnostics-get-resp.json
:language: javascript :language: javascript
@ -62,7 +62,7 @@ will be reported as ``None`` in the response.
Before **microversion 2.48** the response format for diagnostics was not Before **microversion 2.48** the response format for diagnostics was not
well defined. Each hypervisor had its own format. well defined. Each hypervisor had its own format.
**Example Old Server diagnostics** **Example Server diagnostics (2.1)**
Below is an example of diagnostics for a libvirt based instance. The unit of the return Below is an example of diagnostics for a libvirt based instance. The unit of the return
value is hypervisor specific, but in this case the unit of vnet1_rx* and value is hypervisor specific, but in this case the unit of vnet1_rx* and

View File

@ -562,5 +562,5 @@ user documentation.
Before version 2.48, VM diagnostics response was just a 'blob' of data Before version 2.48, VM diagnostics response was just a 'blob' of data
returned by each hypervisor. From this version VM diagnostics response is returned by each hypervisor. From this version VM diagnostics response is
standardized. It has a set of fields which each hypervisor will try to fill. standardized. It has a set of fields which each hypervisor will try to fill.
If a hypervisor driver unable to provide a specific field then this field If a hypervisor driver is unable to provide a specific field then this field
will be reported as 'None'. will be reported as 'None'.

View File

@ -58,10 +58,10 @@ class ServerDiagnosticsController(wsgi.Controller):
# Diagnostics object. Old compute returns a dictionary. So we # Diagnostics object. Old compute returns a dictionary. So we
# can't perform a request correctly if compute is too old. # can't perform a request correctly if compute is too old.
msg = _('Compute node is too old. You must complete the ' msg = _('Compute node is too old. You must complete the '
'upgrade process to be able to get a standardized ' 'upgrade process to be able to get standardized '
'diagnostics data which is available since v2.48. However ' 'diagnostics data which is available since v2.48. However '
'you still able to get a diagnostics data in old format ' 'you are still able to get diagnostics data in '
'which is available till v2.47.') 'non-standardized format which is available until v2.47.')
raise webob.exc.HTTPBadRequest(explanation=msg) raise webob.exc.HTTPBadRequest(explanation=msg)
except NotImplementedError: except NotImplementedError:
common.raise_feature_not_supported() common.raise_feature_not_supported()

View File

@ -2017,7 +2017,7 @@ class AttachInterfaceNotSupported(Invalid):
class InstanceDiagnosticsNotSupported(Invalid): class InstanceDiagnosticsNotSupported(Invalid):
msg_fmt = _("Instance diagnostics is not supported by compute node.") msg_fmt = _("Instance diagnostics are not supported by compute node.")
class InvalidReservedMemoryPagesOption(Invalid): class InvalidReservedMemoryPagesOption(Invalid):

View File

@ -2,5 +2,5 @@
features: features:
- Added microversion v2.48 which standardize VM diagnostics response. - Added microversion v2.48 which standardize VM diagnostics response.
It has a set of fields which each hypervisor will try to fill. It has a set of fields which each hypervisor will try to fill.
If a hypervisor driver unable to provide a specific field then this field If a hypervisor driver is unable to provide a specific field then this
will be reported as 'None'. field will be reported as 'None'.