Skip notification on unstable health with monitoring_samples > 1
When using monitoring_samples > 1 with the Consul hostmonitor driver, mixed health samples (e.g., [‘up’, ‘up’, ‘down’]) result in an unstable health state containing None values. The _event() method incorrectly treated this as a stable ‘up’ state because ‘down’ not in [None] evaluates to True, causing false STARTED notifications.
This change adds an explicit check for None in host_health to skip notifications when the health state is unstable. This prevents premature STARTED events during host transition from up to down.
Closes-Bug: #2153543 Change-Id: Id569ccdfee7b2661c8c9a21f5b0f927d72cd5d08 Signed-off-by: Maximilian Sesterhenn maximilian.sesterhenn@wiit.cloud
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号