apache / apache/cloudstack

Redundant VPC VR goes dual PRIMARY (race condition?)

Đang mở
#11,710 23 bình luận 1 reaction 0 người được giao Xem trên GitHub
component:virtual-router status:needs-investigation
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện trạng thái dual-primary bằng cấu hình Terraform được liên kết trong issue, với VPC, các tầng mạng và các VM instance trên CloudStack 4.21.0. Đọc thông tin gỡ lỗi trong các bình luận và lần theo thông tin địa chỉ đã bị biến đổi qua việc lập trình interface và các cấu hình keepalived khác nhau. Được xem là hoàn tất khi việc tạo tầng mạng nhanh không còn tạo ra hai VPC primary hoặc một VIP dùng chung, và hành vi khôi phục được bao phủ bởi một regression test phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
terraform
Lĩnh vực
cloud, networking
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.