From owner-freebsd-stable@freebsd.org Mon Aug 17 16:22:17 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A633C9BB9CF for ; Mon, 17 Aug 2015 16:22:17 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A147104B for ; Mon, 17 Aug 2015 16:22:16 +0000 (UTC) (envelope-from ml@my.gd) Received: by labd1 with SMTP id d1so82901121lab.1 for ; Mon, 17 Aug 2015 09:22:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=9R+Le/geo/klSKQOmPRzSIYtQyEVv3anqCEYR5yDd2o=; b=AI3vZLtZBqvxNRrct6UfAfli4nBjC95gc1T45d5Ha8yKCgsCIbe2O78PWYlLECvGTV ns3uiBfcr8NT8fFcENGHxGZpqDXlqSBRYL7tX6mgpQccf5RPSVzwUr8geAIh3BZ60Ie+ zWD4B1tveRiqPEgUXkBBdSTBQS1adua1ykzy0okqLKRTHAKV6z/qzAgIEF/5jdh+FFzF YLWUjXvYp2srF6rkmjaqmsdWlkaq6q/3P3N75ravAErkLvw57zoa09M9+vTu0Xwm8Kxq MUlroKxob2MATkfPOWentCiV0Py2bL25G9x0vkHW4AiqN/5s59ZFNUv2x/gHBF08QEGR jz2g== X-Gm-Message-State: ALoCoQn4nI0DQPQzQElAL6k7vc+fdbPGmjBw+oC5BUw052XPPBle2+4SZegsv6iEBBv4vFIJOEtu MIME-Version: 1.0 X-Received: by 10.112.145.1 with SMTP id sq1mr1791329lbb.54.1439828529305; Mon, 17 Aug 2015 09:22:09 -0700 (PDT) Received: by 10.112.60.34 with HTTP; Mon, 17 Aug 2015 09:22:09 -0700 (PDT) Date: Mon, 17 Aug 2015 18:22:09 +0200 Message-ID: Subject: [POSSIBLE BUG] 10-STABLE CARP erroneously becomes master on boot From: Damien Fleuriot To: "freebsd-stable@freebsd.org" Cc: Damien Fleuriot Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2015 16:22:17 -0000 Hello list, I'm seeing this very peculiar behaviour between 2 10-STABLE boxes. Host A is CARP Master with advskew 20 and runs 10.2-BETA1 from 10/07 Host B is CARP Backup with advskew 150 and runs 10.2-PRERELEASE from 12/08 When I configure CARP in rc.conf on host B, it becomes Master on boot, and host A remains Master as well. When I force a state change on host B (ifconfig vlanx vhid y state backup), it transitions to Backup then again to Master. When I comment out the CARP configuration in rc.conf , and configure CARP manually on host B's interfaces after it boots, it correctly becomes and remains Backup. Below is the excerpt from rc.conf pertaining to CARP configuration, the only difference between the 2 hosts being their advskew. Host A == BEGIN ifconfig_vlan410_alias0="vhid 110 pass passhere advskew 20 alias 10.104.10.251/32" == END Host B == BEGIN ifconfig_vlan410_alias0="vhid 110 pass passhere advskew 150 alias 10.104.10.251/32" == END Additionally, the sysctls for CARP for both boxes : == BEGIN net.inet.carp.ifdown_demotion_factor: 240 net.inet.carp.senderr_demotion_factor: 240 net.inet.carp.demotion: 0 net.inet.carp.log: 1 net.inet.carp.preempt: 1 net.inet.carp.allow: 1 net.pfsync.carp_demotion_factor: 240 == END The hosts can see each other correctly, as evidenced by manually configuring the CARP aliases on Host B after it boots, and it retaining Backup status. Has anyone experienced the same problem ? I'm thinking of upgrading Host A to 10.2-PRERELEASE so they're on the same revision level, but I'm afraid it may break CARP on boot as on Host B.