-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardization of VM diagnostics info API.
Before this patch, VM diagnostics response was just a 'blob' of data returned by each hypervisor. New API version makes diagnostics response standardized. New response has a set of fields which each hypervisor will try to fill. If hypervisor unable to provide a specific field then this field will be reported as 'None'. Tempest tests: I7757c5beeea3d3b0bc15a51cafc5ea2ada65e76c DocImpact: admin guide docs should be updated to mention standardized version of the diagnostics response blueprint: restore-vm-diagnostics Change-Id: If0b1493cc5c1c7f0d9896dd68342ad4dea4f7da2
- Loading branch information
Showing
15 changed files
with
512 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
doc/api_samples/os-server-diagnostics/v2.48/server-diagnostics-get-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"config_drive": true, | ||
"cpu_details": [ | ||
{ | ||
"id": 0, | ||
"time": 17300000000, | ||
"utilisation": 15 | ||
} | ||
], | ||
"disk_details": [ | ||
{ | ||
"errors_count": 1, | ||
"read_bytes": 262144, | ||
"read_requests": 112, | ||
"write_bytes": 5778432, | ||
"write_requests": 488 | ||
} | ||
], | ||
"driver": "libvirt", | ||
"hypervisor": "kvm", | ||
"hypervisor_os": "ubuntu", | ||
"memory_details": { | ||
"maximum": 524288, | ||
"used": 0 | ||
}, | ||
"nic_details": [ | ||
{ | ||
"mac_address": "01:23:45:67:89:ab", | ||
"rx_drop": 200, | ||
"rx_errors": 100, | ||
"rx_octets": 2070139, | ||
"rx_packets": 26701, | ||
"rx_rate": 300, | ||
"tx_drop": 500, | ||
"tx_errors": 400, | ||
"tx_octets": 140208, | ||
"tx_packets": 662, | ||
"tx_rate": 600 | ||
} | ||
], | ||
"num_cpus": 1, | ||
"num_disks": 1, | ||
"num_nics": 1, | ||
"state": "running", | ||
"uptime": 46664 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.