From nobody Tue Nov 21 23:14:34 2023 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SZgF738pXz51GCJ for ; Tue, 21 Nov 2023 23:14:35 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SZgF726qXz4Rt0 for ; Tue, 21 Nov 2023 23:14:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700608475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iSMC+LF4hiSlqGv++OIDysh0ckTUY+PGYJv4yuMFuAs=; b=GPV7XwpUS1Ss9EKhl1GbONt9xvSRavIIHRJi0qGCSjhJJt6p6PHtIC/VVnDgajQB40j5u0 1CLeCwcKqLB6dgZ9ez2Bc6r+iHdgeHiGhawrZOunqH68C0Dzrw5/g/EG1V3XejMvM4Nv6n DYlhSH4uyPAktKoa0UZjL966E9cSWySPXDtjJIav1/xgw4dVI6nNj2YnIAOklvgpb77CBV Z9CIAL+p0SnZt6p69HWqsMOIjdu8/Yn3h9v7f6l48dkbsN0lvXpZ5kf6ZvV5qxh1ff+/8S xT9dZw4IjsLubF2uJtgJ/ZrmICEi4/qWrdfgcT3lWufo/uPPOA1qx83bhP2qmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700608475; a=rsa-sha256; cv=none; b=ASUHW1MQKaoZYkLmbkowan5+BcIeHoWj2fInn4qwpF5GyUXlnTGVvJgIa8QzsxGmEG4Ym8 mPLI3ahgQLZSun5oc8pl0O0AZOfhP4fOOZzsGTvjCvmceUR5rAXelNgsv1vUWkRkGLMcce n9vKd2sQBYpMwmZVIuXXbXlGIWUomWbvQMZxJu0qxFSmbffkVexJENd/Gu4dqSCRNHYeMj WQpomtC8jhRtPow+zz8wMVv+Rcgm+lfF2wuiy5R4tIxuUu1VoLyzTXuNE7vKMk8KQBqDmn 1vL/8QSpKDVioNhki/K9OtXdYbZK77PPFrPrYKjuBaiJ8frKoefYfxknCXsHFg== 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 4SZgF71BdWzv8T for ; Tue, 21 Nov 2023 23:14:35 +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 3ALNEZS2044305 for ; Tue, 21 Nov 2023 23:14:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3ALNEZMa044302 for net@FreeBSD.org; Tue, 21 Nov 2023 23:14:35 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: net@FreeBSD.org Subject: [Bug 275225] On ARM64 carp preempt not working as expected Date: Tue, 21 Nov 2023 23:14:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linnemannr@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275225 Reid Linnemann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linnemannr@gmail.com --- Comment #1 from Reid Linnemann --- I think you've misunderstood net.inet.carp.preempt: net.inet.carp.preempt Allow virtual hosts to preempt each other. When enabled, a vhid in a backup state would preempt a mas= ter that is announcing itself with a lower advskew. Disabled by default. Here, 'virtual host' refers to the shared address associated with a VHID. T= his setting allows a host with multiple VHIDs to assume the master role on all VHIDs if just one of them fails over. See in carp(4): Assume that host A is the preferred master and we are running the 192.168.1.0/24 prefix on em0 and 192.168.2.0/24 on em1. This is the setup for host A (advskew is above 0 so it could be overwritten in the emergency situation from the other host): ifconfig em0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.1/= 24 ifconfig em1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.2.1/= 24 The setup for host B is identical, but it has a higher advskew: ifconfig em0 vhid 1 advskew 200 pass mekmitasdigoat 192.168.1.1/= 24 ifconfig em1 vhid 2 advskew 200 pass mekmitasdigoat 192.168.2.1/= 24 When one of the physical interfaces of host A fails, advskew is demoted to a configured value on all its carp vhids. Due to the preempt optio= n, host B would start announcing itself, and thus preempt host A on both interfaces instead of just the failed one. It seems likely to me that in your RPI/ROCKPRO setup that your two hosts are not actually exchanging CARP messages correctly and both believe that they = are the lowest advbase for the VHID. --=20 You are receiving this mail because: You are the assignee for the bug.=