From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 28 22:09:31 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D7FB88E for ; Tue, 28 Oct 2014 22:09:31 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68B31E1C for ; Tue, 28 Oct 2014 22:09:31 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9SM9Vtl048364 for ; Tue, 28 Oct 2014 22:09:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194672] New: [carp] Changing advskew to 0 from another value doesn't work Date: Tue, 28 Oct 2014 22:09:31 +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: 10.1-RC2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cmb@pfsense.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit 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.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 22:09:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194672 Bug ID: 194672 Summary: [carp] Changing advskew to 0 from another value doesn't work Product: Base System Version: 10.1-RC2 Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: cmb@pfsense.org When you configure advskew in CARP to be something other than 0, then try to change it back to 0, FreeBSD refuses to do so. It can be changed to any value other than 0, but never back to 0. This is a semi-common scenario, as it's how people would generally demote a system from master to backup for maintenance or other purposes, and would generally want to set it back to 0 afterwards. Initially setting it to 0 works fine. Tested on 10.0 release and 10.1-RC3, both behave the same. The following shows the issue and how to replicate. # ifconfig em0 vhid 55 advskew 0 pass PASSWORD alias 192.168.124.222/24 # ifconfig em0 em0: flags=8943 metric 0 mtu 1500 options=9b ether 00:0c:29:11:5e:be inet 192.168.124.132 netmask 0xffffff00 broadcast 192.168.124.255 inet 192.168.124.222 netmask 0xffffff00 broadcast 192.168.124.255 vhid 55 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active carp: MASTER vhid 55 advbase 1 advskew 0 Change it, it'll work. # ifconfig em0 vhid 55 advskew 100 # ifconfig em0 | grep carp: carp: MASTER vhid 55 advbase 1 advskew 100 Try changing it back to 0, and it won't. # ifconfig em0 vhid 55 advskew 0 # ifconfig em0 | grep carp: carp: MASTER vhid 55 advbase 1 advskew 100 But can change it to 1 or other values. # ifconfig em0 vhid 55 advskew 1 # ifconfig em0 | grep carp: carp: MASTER vhid 55 advbase 1 advskew 1 -- You are receiving this mail because: You are the assignee for the bug.