From owner-freebsd-bugs@freebsd.org Sat Oct 10 18:16:26 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 17B7E3FF80B for ; Sat, 10 Oct 2020 18:16:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7tRs6G7bz47rm for ; Sat, 10 Oct 2020 18:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D4EF03FF6FD; Sat, 10 Oct 2020 18:16:25 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D4AF23FF7B0 for ; Sat, 10 Oct 2020 18:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C7tRs3fDwz47ZZ for ; Sat, 10 Oct 2020 18:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5C5A3EF04 for ; Sat, 10 Oct 2020 18:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 09AIGP19044822 for ; Sat, 10 Oct 2020 18:16:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09AIGPVl044821 for bugs@FreeBSD.org; Sat, 10 Oct 2020 18:16:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250257] carp - preempt not working when net.inet.carp.demotion is not zero Date: Sat, 10 Oct 2020 18:16:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ozkan.kirik@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2020 18:16:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250257 Bug ID: 250257 Summary: carp - preempt not working when net.inet.carp.demotion is not zero Product: Base System Version: 12.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ozkan.kirik@gmail.com I'm using FreeBSD 12.1-STABLE.=20 carp works as expected while all cables are plugged (demotion=3D0). But when cables unplugged from one interface from each host (demotion=3D240 both), after unplugging one more cable from Host A, preempt dont work. so s= ome interfaces left MASTER some of BACKUP at Host B. Host A: Master igb0 - vhid 226 - advskew 0 - carp: INIT - unplugged=20 igb1 - vhid 227 - advskew 0 - carp: MASTER - plugged igb2 - vhid 228 - advskew 0 - carp: INIT - unplugged both hosts igb3 - vhid 229 - advskew 0 - carp: MASTER - plugged net.inet.carp.preempt=3D1 net.inet.carp.demotion=3D480 # ifconfig igb1 igb1: flags=3D8943 metric 0= mtu 1500 =20=20=20=20=20=20=20 options=3De527bb ether 0c:c4:7a:33:d0:6d inet6 fe80::ec4:7aff:fe33:d06d%igb1 prefixlen 64 scopeid 0x2 inet 10.0.0.2 netmask 0xffffff00 broadcast 10.10.99.255 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.10.99.255 vhid 227 groups: lanlar carp: MASTER vhid 227 advbase 1 advskew 0 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D21 ------------------------------------------------------------------------- Host B: Backup igb0 - vhid 226 - advskew 100 - carp: MASTER - plugged igb1 - vhid 227 - advskew 100 - carp: BACKUP - plugged igb2 - vhid 228 - advskew 100 - carp: INIT - unplugged both hosts igb3 - vhid 229 - advskew 100 - carp: BACKUP - plugged net.inet.carp.preempt=3D1 net.inet.carp.demotion=3D240 # ifconfig igb1 igb1: flags=3D8943 metric 0= mtu 1500 =20=20=20=20=20=20=20 options=3De527bb ether 0c:c4:7a:33:d0:6d inet6 fe80::ec4:7aff:fe33:d06d%igb1 prefixlen 64 scopeid 0x2 inet 10.0.0.3 netmask 0xffffff00 broadcast 10.10.99.255 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.10.99.255 vhid 227 groups: lanlar carp: MASTER vhid 227 advbase 1 advskew 0 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D21 ------------------------------------------------------------------------- This behaviour is wrong. Host B should preempt to become master. In this condition the Host A should announce advskew=3D480 but announcing as advskew=3D240. on Host B; tcpdump -ni igb1 -T carp carp shows that: 21:10:31.394012 IP 10.0.0.2 > 224.0.0.18: CARPv2-advertise 36: vhid=3D227 advbase=3D1 advskew=3D240 authlen=3D7 counter=3D248643719741960624 As seen above, Host A is still announcing as advskew=3D240. There is something wrong when net.inet.carp.demotion from 240 to 480, announcement cannot switch to 480. --=20 You are receiving this mail because: You are the assignee for the bug.=