apache / apache/cloudstack

Redundant VPC VR goes dual PRIMARY (race condition?)

Aperta
#11,710 23 commenti 1 reazione 0 assegnatari Vedi su GitHub
component:virtual-router status:needs-investigation
Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 19h
PR unite (30g)
32

Descrizione

### problem

When multiple network tiers are brought up in quick succession in a redundant VPC, I can consistently reproduce both VPCs going primary.

This is really bad because the VIP is then owned by both Virtual Routers and it means traffic is getting dropped like crazy, it makes the entire VPC unusable. Restarting the VPC recovers it to a good state.

Please see the comments for debugging information, but in short it appears at least one of the nodes ends up getting munged address information which causes the wrong ips to be programmed on interfaces and the keepalived configs to diverge between nodes which causes the dual primary. The underlying cause of the issue is this munged address information.

### versions

4.21.0

### The steps to reproduce the bug

Use Terraform to create the VPC, network tiers, and VM Instances.
Terraform configuration being used is here: https://github.com/bradh352/terraform-config

### What to do about it?

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo lo stato dual-primary usando la configurazione Terraform collegata nell’issue, con la VPC, i livelli di rete e le istanze VM su CloudStack 4.21.0. Leggi le informazioni di debugging nei commenti e segui le informazioni sugli indirizzi alterate attraverso la programmazione delle interfacce e le configurazioni divergenti di keepalived. Il lavoro è completato quando la creazione rapida dei livelli di rete non produce più due VPC primarie o una VIP condivisa e il comportamento di ripristino è coperto da un test di regressione appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
terraform
Ambito
cloud, networking
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.