How yassminefeki/resilient-ip-gateway-and-multi-tenant-routing works
FelCloud is an OpenStack-based high-availability gateway and multi-tenant routing system. Its operator workflow provisions isolated networks, gateways, and sandbox VMs with Pulumi; generates Ansible inventory from stack outputs; configures gateway routing and VRRP; and serves client traffic through a shared VIP to tenant backends. The Python IPAM control plane adds lease lifecycle, sandbox provisioning, and gateway synchronization. Most Pulumi relationships and key IPAM calls are visible in excerpts; Ansible wiring and several documented product behaviors rely on the README because those sources were not sampled.
Main entry points: main.go Pulumi Entrypoint · site.yml Gateway Playbook · router.go Edge Router · main.yml HAProxy Routing
Components 23
Infrastructure Provisioning
- Pulumi Entrypoint
infra/main.go - Isolated Networks
infra/network.go - Edge Router
infra/router.go - Security Groups
infra/security.go - VIP Reservation
infra/vip.go - Gateway Ports
infra/gateway_ports.go - Gateway Instances
infra/gateways.go - Bastion Host
infra/bastion.go
Gateway Configuration
- Inventory Generator
ansible/inventory/generate_inventory.py - Gateway Playbook
ansible/site.yml - Interface Resolution
ansible/roles/interface_resolve/tasks/main.yml
IPAM Control Plane
- IPAM REST API
ipam/ipam_control.py - Lease Lifecycle
ipam/ipam_control.py - Gateway Sync
ipam/ipam_control.py - SQLite State
ipam/ipam_control.py
Gateway Traffic
- HAProxy Routing
ansible/roles/haproxy/tasks/main.yml - VRRP Failover
ansible/roles/keepalived/tasks/main.yml - External Clients
- Active VIP
Tenant Workloads
- Sandbox Instances
infra/sandboxes.go - Team Backends
Other components
- Operator
- OpenStack
Connections 31
- Operator → Pulumi Entrypoint: runs provisioning
README.md - Pulumi Entrypoint → Isolated Networks: creates networks
infra/main.go - Pulumi Entrypoint → Edge Router: creates router
infra/main.go - Pulumi Entrypoint → Security Groups: creates rules
infra/main.go - Pulumi Entrypoint → VIP Reservation: reserves VIP
infra/main.go - Pulumi Entrypoint → Gateway Ports: creates ports
infra/main.go - Pulumi Entrypoint → Gateway Instances: creates gateways
infra/main.go - Pulumi Entrypoint → Bastion Host: creates bastion
infra/main.go - Pulumi Entrypoint → Sandbox Instances: creates sandboxes
infra/main.go - Isolated Networks → OpenStack: provisions networks
infra/network.go - Edge Router → OpenStack: attaches edge subnet
infra/router.go - Security Groups → OpenStack: creates access rules
infra/security.go - Gateway Ports → OpenStack: creates ports
infra/gateway_ports.go - Gateway Instances → OpenStack: creates instances
infra/gateways.go - Bastion Host → OpenStack: creates instance
infra/bastion.go - Sandbox Instances → OpenStack: creates instances
infra/sandboxes.go - Pulumi Entrypoint → Inventory Generator: exports stack values
ansible/inventory/generate_inventory.py - Operator → Gateway Playbook: runs configuration
- Gateway Playbook → HAProxy Routing: configures routing
- Gateway Playbook → VRRP Failover: configures failover
- Gateway Playbook → Interface Resolution: resolves interfaces
- External Clients → Edge Router: sends HTTP(S)
README.md - Edge Router → Active VIP: forwards traffic
README.md - Active VIP → HAProxy Routing: reaches active gateway
README.md - HAProxy Routing → Team Backends: proxies by host
README.md - VRRP Failover → Active VIP: moves VIP
README.md - IPAM REST API → Lease Lifecycle: handles lease routes
ipam/ipam_control.py - IPAM REST API → Gateway Sync: invokes sync
ipam/ipam_control.py - Lease Lifecycle → SQLite State: stores lease state
README.md - Gateway Sync → HAProxy Routing: validates and reloads
README.md - IPAM REST API → Team Backends: provisions sandbox route
ipam/ipam_control.py