Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identical configuration does not work on ubuntu 22.04 while 20.04 works fine #236

Open
plandolt opened this issue Aug 19, 2022 · 2 comments
Labels
help wanted People looking for help (no code change yet) invalid Not an ansible-keepalived issue/bug no-answer No answer from original author for two weeks or more. Used to expire stale issues or PR. pending-user-answer Waiting for a user response

Comments

@plandolt
Copy link

plandolt commented Aug 19, 2022

I am not sure if this here is the right place. But as the very same configuration is working in ubuntu 20.04 I think it's worth a shot here.

This is my demo config:

global_defs {
  enable_script_security
  script_user root
}

vrrp_script check_script_dummy {
  script "/usr/bin/test -f /var/keepalive"
  interval 2
  fall 2
  rise 2
}

vrrp_instance VI_01_V4 {
  interface ens3
  state MASTER
  virtual_router_id 51
  priority 101
  advert_int 1

  unicast_src_ip [LOCAL-IP]
  unicast_peer {
    [PEER-IP]
  }
  virtual_ipaddress {
    [FLOATING-IP] dev dummy0
  }
  track_script {
    check_script_dummy
  }

}

The other server has the same configuration, except it defaults to BACKUP and 102 priority.

I tested this configuration with ubuntu 20.04 and 22.04 with exactly the same provisioning for both. While ubuntu 20.04 negotiates a MASTER quickly, the ubuntu 22.04 servers do not send VRRP packages at all.

The issue probably is not within this package (right?). But if someone could point me in a direction to look, I'd be very grateful!

@evrardjp
Copy link
Owner

evrardjp commented Dec 17, 2022

As you can see, I didn't give much love of keepalived recently. (i didn't get the chance with new job). I will have a look (if all goes well!) when I will be on vacation next week. Sorry for the VERY long delay.

@evrardjp
Copy link
Owner

evrardjp commented Dec 17, 2022

Oh, btw... you're right: this role wouldn't change the behaviour of keepalived.

Your case is interesting. FYI, I would give at least a 100 difference in priority, to start with. Did you check with tcpdump ? What does the starting of keepalived do ?

@evrardjp evrardjp added help wanted People looking for help (no code change yet) no-answer No answer from original author for two weeks or more. Used to expire stale issues or PR. pending-user-answer Waiting for a user response invalid Not an ansible-keepalived issue/bug and removed help wanted People looking for help (no code change yet) pending-user-answer Waiting for a user response labels Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted People looking for help (no code change yet) invalid Not an ansible-keepalived issue/bug no-answer No answer from original author for two weeks or more. Used to expire stale issues or PR. pending-user-answer Waiting for a user response
Projects
None yet
Development

No branches or pull requests

2 participants