-
Notifications
You must be signed in to change notification settings - Fork 1.3k
server: Get vm network/disk statistics and update database per host #4601
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
5fb64e1 to
7a1638e
Compare
DaanHoogland
left a comment
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.
small nitpickings 👍
| s_logger.warn("Error while collecting vm disk stats from hosts", e); | ||
| }); | ||
| } catch (Exception e) { | ||
| s_logger.warn("Error while collecting vm disk stats from hosts", e); |
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.
we could add host details in this message
| s_logger.warn("Error while collecting vm network stats from hosts", e); | ||
| }); | ||
| } catch (Exception e) { | ||
| s_logger.warn("Error while collecting vm network stats from hosts", e); |
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.
again, we can now add host details to the message
|
@ustcweizhou do you plan to address above comments? @blueorangutan package |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2587 |
|
@DaanHoogland thanks for review. modified some debug message @shwstppr code is changed. |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2591 |
|
@blueorangutan test |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
This may require testing on different hypervisors too |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-3412)
|
|
Trillian test result (tid-3414)
|
|
3 checksum checks that failed on vmware. not related but very disturbing!?! |
DaanHoogland
left a comment
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.
changes are good, but the contained code is not modularised enough.
shwstppr
left a comment
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.
LGTM
Tested changes with a KVM env, stats working fine.
Description
This PR fixes an issue when collect vm network or disk statistics from hosts.
If cloudstack fails to get vm statistics from a host, the whole process will be terminated, and it will not get vm statistics from remaining hosts.
With this pr, the host with problem will be ignored, and cloudstack will continue on remaining hosts.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?