apache / apache/cloudstack

VR HealthCheck fails when there are no VMs deployed

未關閉
#12,643 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
component:virtual-router Severity:Minor type:bug
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
32

描述

### problem

A VR HA pair or single VR report the health check as failed when there are no VMs deployed to that VR. This causes alerts in the logs, triggering investigations.

Under the VR health check:
"dhcp_check.py" reports "No VMs running data available, skipping" (which is good)
"webserver.service" reports "warning" "service down at last check xxxxxxx" (which is bad)

This issue goes away if a VM is deployed and returns if it is deleted. If there is an VR HA pair, the failure report bounces back and forth between the 2 VR in the HA pair.

The attached screenshot has r-517/r518 in an HA pair as well as r-519/r-520.

Image

### versions

This is on CloudStack 4.22.

### The steps to reproduce the bug

1. Create a VR Router (HA or not) and an isolated network
2. Deploy a VM to that isolated network
3. Delete the VM
4. The next health check will then report as failed

### What to do about it?

The VR healthcheck should not fail if there are no VMs deployed.

貢獻指南

開啟貢獻指南

研究方向

從 dhcp_check.py 和 webserver.service 的 health-check 路徑開始,然後在刪除其 VM 後,於具有隔離網路的 VR 上重現該問題。完成的標準是:沒有已部署 VM 的 VR 仍保持健康,且不會發出所回報的 failure alert,包括 HA 配對的情況。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
cloud, infrastructure, observability
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
56/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。