mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-89) Identify when config issue is present
This commit adds vmpooler inspection of configuration issues to host selection. Specifically, configIssue is checked, which should allow an issue like quickstats not being reported to be identified even when the alarm will not trigger. Without this change a host will continue to be used if quickstats are not reported when alarms are not triggered because of this condition, which results in a single host being the target for all deploys and migrations, overloading the host and causing its VMs to have degraded performance.
This commit is contained in:
parent
03e8933d2b
commit
2f5e43284d
3 changed files with 16 additions and 1 deletions
|
|
@ -1903,6 +1903,16 @@ EOT
|
|||
end
|
||||
end
|
||||
|
||||
context "host with configuration issue" do
|
||||
let(:host) { mock_RbVmomi_VIM_HostSystem({
|
||||
:config_issue => 'No quickstats',
|
||||
})
|
||||
}
|
||||
it 'should return nil' do
|
||||
expect(subject.get_host_utilization(host,model,limit)).to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
# CPU utilization
|
||||
context "host which exceeds limit in CPU utilization" do
|
||||
let(:host) { mock_RbVmomi_VIM_HostSystem({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue