stackhpc / sib-kayobe-config

Kayobe configuration for SIB OpenStack development
Apache License 2.0
1 stars 1 forks source link

kolla_external_vip_address missing on the controller #14

Closed jovial closed 5 years ago

jovial commented 5 years ago

The external virtual IP address was missing on the controller (possibly after re-configuring the network):

[stack@control-0 ~]$ ip a | grep '10.12.9'
    inet 10.12.9.3/24 brd 10.12.9.255 scope global brem3.79
[stack@control-0 ~]$ ip a | grep '10.12.4'
    inet 10.12.4.3/24 brd 10.12.4.255 scope global brem3.74
    inet 10.12.4.254/32 scope global brem3.74

This was added manually:

[stack@control-0 network-scripts]$ sudo ip addr add 10.12.9.254/32 dev brem3.79

resulting in:

[stack@control-0 network-scripts]$ ip a | grep '10.12.9'
    inet 10.12.9.3/24 brd 10.12.9.255 scope global brem3.79
    inet 10.12.9.254/32 scope global brem3.79

It appears that this was being set correctly in the config:

kayobe-config/etc/kolla/globals.yml:kolla_external_vip_address: "10.12.9.254"
jovial commented 5 years ago

Mark informs me that this can be fixed by restarting the `keepalived container:

[stack@control-0 network-scripts]$ cat /etc/kolla/keepalived/keepalived.conf 
vrrp_script check_alive {
    script "/check_alive.sh"
    interval 2
    fall 2
    rise 10
}

vrrp_instance kolla_internal_vip_51 {
    state BACKUP
    nopreempt
    interface brem3.74
    virtual_router_id 51
    priority 1
    advert_int 1
    virtual_ipaddress {
        10.12.4.254 dev brem3.74
        10.12.9.254 dev brem3.79
    }
    track_interface {
        brem3.79
    }
    authentication {
        auth_type PASS
        auth_pass redacted
    }
    track_script {
        check_alive
    }
}