-
Notifications
You must be signed in to change notification settings - Fork 6
Get Diagnostics Data API #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Outdated
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no validation of result.details?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No validation required here, success/fail is handled in the service layer class "DiagnosticsServiceImpl"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, extracted Zip file in system vm file cleanup to Network element command which makes it hypervisor agnostic
@@ -1364,6 +1364,14 @@ public boolean imageStoreHasEnoughCapacity(DataStore imageStore) { | |||
return false; | |||
} | |||
|
|||
public boolean imageStoreHasEnoughCapacity(DataStore imageStore, Double storeCapThreshold) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?