From nobody Tue Nov 21 06:18:12 2023 X-Original-To: bugs@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 4SZDhN6JCkz51tvJ for ; Tue, 21 Nov 2023 06:18:12 +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 4SZDhN1wnYz4HKD for ; Tue, 21 Nov 2023 06:18:12 +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=1700547492; 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; bh=Xi+OjEUdIwaAvAtx3OfZr07zwjcLDytU0QLDUA722OM=; b=RlxEE93IZjYbxFcj4c99hgv2z/oCNpWeUI8lSEj0YJ+8uk5Y99DUfGz7PRqGr0LRymceN5 it3bSN+h8M14Ik91WOikMBvfTD2eEuUCUmN0GupPjkwZZFWSg/Yglr2h8GUjdxl0YzJdLd iSVW6ekL0Cj7DfvwmcH6Yf24H9fO1u6LR/vZBaO5p4sFeQz0csYpC+aNKQ0DQTFsa+WY+V wp/6VhpsjCZ7ZGqH17K9r6jzzoNJo9eV6/rpXK1r/t3zBIhuGgavmfgnJPsCBUO6MSEYUg 5sqDScf6AoEYliuKilo09v/qAVO62wiTYz/MDE42VOUbRFJOqfHN/me0g9nN7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700547492; a=rsa-sha256; cv=none; b=M/m2nuO3lP6fcCQrhaz5zHte1OXAuEMdaWN4kf+cTbJdLhRZUkMJ+Gz5Y95N0/HtCaHoc1 ImQEUBe1wEtvIgsei9MZ5C896qyfgPtdUehjuHLgvA94+B55DIb7DGaJLoIn58tRgS5oHw D1+JOKrut2R7DNJz0ZVc+reDYGTRjLqATCxHLoWoRz/Xgk3Ggm7id//c/ErgQZxxwA8Jgp 1RfRJD15vy+1RgGuQrMpcFEKH9Vlb9BH4y0Vh9psrCnrMFasMjWSzYXTnRuQgjXqBEg6Xf DAizxYLdtoHTcVzPw0PonjzGtPRxDr/fZCQbnb++65N9q3TV2hFhXWNU8k1jug== 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 4SZDhN0sclz8w7 for ; Tue, 21 Nov 2023 06:18:12 +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 3AL6ICaK076973 for ; Tue, 21 Nov 2023 06:18:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AL6ICqw076972 for bugs@FreeBSD.org; Tue, 21 Nov 2023 06:18:12 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 275225] On ARM64 carp preempt not working as expected Date: Tue, 21 Nov 2023 06:18:12 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eimar.koort@tutamail.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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275225 Bug ID: 275225 Summary: On ARM64 carp preempt not working as expected Product: Base System Version: 14.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: eimar.koort@tutamail.com Hello, It seems that carp completely ignores net.inet.carp.preempt value and always promotes "master" to host having higher advskew. Two hosts, RPI4 and Pine Rockpro64. Same issue with FBSD 13.1 and 14.0 Config: /boot/loader.conf: carp_load=3D"YES" /etc/sysctl.conf: net.inet.carp.preempt=3D0 RPI4 /etc/rc.conf: # primary ifconfig_genet0=3D"inet 192.168.1.19 netmask 255.255.255.0" defaultrouter=3D"192.168.1.1" ifconfig_genet0_alias0=3D"inet vhid 1 pass xyz alias 192.168.1.20/24" #ifconfig_genet0_alias0=3D"inet vhid 1 advskew 100 pass xyz alias 192.168.1.20/24" ROCKPRO64 /etc/rc.conf: ifconfig_dwc0=3D"inet 192.168.1.21 netmask 255.255.255.0" defaultrouter=3D"192.168.1.1" # primary #ifconfig_dwc0_alias0=3D"inet vhid 1 pass xyz alias 192.168.1.20/24" # backup ifconfig_dwc0_alias0=3D"inet vhid 1 advskew 100 pass xyz alias 192.168.1.20= /24" As told before when host having higher advskew comes online it will always promoted to be a primary regardless net.inet.carp.preempt=3D0/1 setting. I tested with same configuration in Virtualbox with two AMD64 FBSD14 VM-s. = It worked as expected: primary A goes down, secondary B takes over, primary A comes up and stays secondary and former secondary B stays primary. --=20 You are receiving this mail because: You are the assignee for the bug.=