apache / apache/cloudstack

VR HealthCheck fails when there are no VMs deployed

Aberta
#12,643 2 comentários 0 reações 0 responsáveis Ver no GitHub
component:virtual-router Severity:Minor type:bug
Linguagem predominante
Java
Estrelas
3.1k
Forks
1.4k
Merge médio
6d 19h
PRs com merge (30d)
32

Descrição

### 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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece com dhcp_check.py e o caminho de health-check de webserver.service; em seguida, reproduza o problema em um VR com uma rede isolada após excluir sua VM. O trabalho estará concluído quando um VR sem VMs implantadas permanecer saudável e não emitir o alerta de falha relatado, inclusive para um par HA.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
cloud, infrastructure, observability
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
56/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.