Floating ip issue

petruzzo

Member
Jun 23, 2022
12
0
6
Hi all
I have a setup with 2 HAProxy in failover with a floating IP working with keepalive on VMware.
Now, I migrated this setup to Proxmox with Openvswitch. When the master VM stops working, the floating IP is assigned to the slave, but the VM responds only with the machine's single IP and not with the shared.
It is the same with other software that uses floating IP.
Does someone have an idea because the floating IP doesn't make traffic?
 
Sorry for not reaply queekly
VMware Node
Code:
network:
    ethernets:
        ens160:
            addresses:
            - 10.150.252.140/28
            dhcp4: false
            gateway4: 10.150.252.142
            nameservers:
                addresses:
                - 8.8.8.8
                search: []
    version: 2
Code:
! Configuration File for keepalived

global_defs {
   notification_email {
     ***********
   }
   notification_email_from ********+
   smtp_server localhost
   smtp_connect_timeout 30
}

vrrp_script chk_haproxy {           # Requires keepalived-1.1.13
        script "killall -0 haproxy"     # cheaper than pidof
        interval 2                      # check every 2 seconds
        weight 2                        # add 2 points of prio if OK
}


vrrp_instance VI_1 {
    state MASTER
    interface ens160
    virtual_router_id 101
    priority 101
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        10.150.252.129
    }
}
cat: .: Is a directory

proxmox
Code:
network:
    ethernets:
        ens18:
            addresses:
            - 10.150.252.141/28
            dhcp4: false
            gateway4: 10.150.252.142
            nameservers:
                addresses:
                - 8.8.8.8
                search: []
    version: 2
Code:
! Configuration File for keepalived


global_defs {
   notification_email {
     ******
   }
   notification_email_from ******
   smtp_server localhost
   smtp_connect_timeout 30
}


vrrp_script chk_haproxy {
  script "killall -0 haproxy" # check the haproxy process
  interval 2 # every 2 seconds
  weight 2 # add 2 points if OK
}


vrrp_instance VI_1 {
    state MASTER
    interface ens18
    virtual_router_id 101
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        10.150.252.129
    }
}
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!