[KVM] Agent LB Fix: Connections from disabled KVM host agents are refused#3617
Conversation
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-306 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-327 |
|
@blueorangutan test |
|
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@andrijapanicsb a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-385 |
|
@blueorangutan test |
|
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
LGTM. Tested manually as following:
|
9fd4de9 to
9bb6477
Compare
|
@blueorangutan test |
|
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-551)
|
|
LGTM. (Extensive manual testing) |
|
Just to keep track on PRs vs Issues. This fixes #3581. |
|
Thanks @andrijapanicsb and @GabrielBrascher, have also added the Issue number on the description after Gabriel's comment |
9bb6477 to
3023a2b
Compare
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-416 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-572)
|
|
Merging based on reviews and test results |
…used (apache#3617) * Remove constraint for just enabled hosts receiving the ms list * Allow sending SetupMSList command when host is in maintenance
Description
Fixes: #3581
This PR introduces a fix for a limitation on the KVM agent load balancing feature.
When a host is in 'Disabled' state and the agent is restarted, then the host is not able to connect to the management server, staying indefinitely in 'Connecting' state
The main reason is that when the administrator changed the value of the global configurations
hostorindirect.agent.lb.algorithm, the LB mechanism in the management server sent the updated values of these configurations only to the hosts in 'Enabled' state. In particular, hosts in 'Disabled' state did not receive the updated management server list (and LB algorithm).Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
In a KVM environment:
Set global settings as following:
• indirect.agent.lb.algorithm set to “roundrobin”
• indirect.agent.lb.check.interval set to 360 (must be different than 0)
Case 1:
Case 2:
hostorindirect.agent.lb.algorithm