Get Diagnostics Data API#27
Get Diagnostics Data API#27dhlaluku wants to merge 1 commit intomainshapeblue/cloudstack:mainfrom retrieve-diagnostics-datashapeblue/cloudstack:retrieve-diagnostics-dataCopy head branch name to clipboard
Conversation
c06d256 to
fa5379a
Compare
423d1c6 to
18b55a0
Compare
...src/main/java/org/apache/cloudstack/api/response/diagnostics/GetDiagnosticsDataResponse.java
Show resolved
Hide resolved
...sors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
Outdated
Show resolved
Hide resolved
...sors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/cloudstack/diagnostics/DiagnosticsDataObject.java
Show resolved
Hide resolved
server/src/main/java/org/apache/cloudstack/diagnostics/DiagnosticsDataTO.java
Outdated
Show resolved
Hide resolved
|
@dhlaluku this has been passed to me for testing but the title still says "work in progress"? |
|
@borisstoyanov let me fix the merge conflict and remove the WIP from the label |
bbbe373 to
fda69b2
Compare
fda69b2 to
ff46636
Compare
DaanHoogland
left a comment
There was a problem hiding this comment.
some questions and comments
...src/main/java/org/apache/cloudstack/api/command/admin/diagnostics/GetDiagnosticsDataCmd.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/apache/cloudstack/api/command/admin/diagnostics/GetDiagnosticsDataCmd.java
Show resolved
Hide resolved
...src/main/java/org/apache/cloudstack/api/response/diagnostics/GetDiagnosticsDataResponse.java
Show resolved
Hide resolved
| _eachTimeout = Duration.standardSeconds(cmd.getTimeout()); | ||
| final ExecutionResult result = _vrDeployer.executeInVR(cmd.getRouterAccessIp(), VRScripts.RETRIEVE_DIAGNOSTICS, fileList, _eachTimeout); | ||
| if (result.isSuccess()){ | ||
| return new PrepareFilesAnswer(cmd, true, result.getDetails()); |
There was a problem hiding this comment.
no validation of result.details?
There was a problem hiding this comment.
No validation required here, success/fail is handled in the service layer class "DiagnosticsServiceImpl"
There was a problem hiding this comment.
No need for validation here, script/command execution should be propagated back to service layer using command-answer pattern
core/src/main/java/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
Show resolved
Hide resolved
...sors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
Outdated
Show resolved
Hide resolved
| * @param fileName filepath inside system vm, /root/diagnostics_files_xxxx.tar | ||
| */ | ||
| protected void cleanUpFileInVm(String vmIP, String fileName) { | ||
| final String PERM_KEY = "/root/.ssh/id_rsa.cloud"; |
There was a problem hiding this comment.
done, extracted Zip file in system vm file cleanup to Network element command which makes it hypervisor agnostic
| return false; | ||
| } | ||
|
|
||
| public boolean imageStoreHasEnoughCapacity(DataStore imageStore, Double storeCapThreshold) { |
There was a problem hiding this comment.
javadoc to explain how storeCapThreshold is used would be nice
server/src/main/java/org/apache/cloudstack/diagnostics/DiagnosticsServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/cloudstack/diagnostics/DiagnosticsServiceImpl.java
Outdated
Show resolved
Hide resolved
BT-HF66 Publish disk resize event in cloud_usage
679e170 to
fbbee31
Compare
* Complete UI integration * Complete marvin test * Complete Secondary storage GC background task
fbbee31 to
0b247be
Compare
* Add new grid values new classes to replace inline stlyes with it * Fix navigation scroll behavior Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
Hi @dependabot[bot], your pull request has merge conflicts. Can you fix the conflicts and sync your branch with the base branch? |
Get Diagnostics Data from system VMs
Docs; https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Get+Diagnostics+Data+API
Description
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?