From dev-return-112925-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Tue Apr 23 15:59:36 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 50A13180621 for ; Tue, 23 Apr 2019 17:59:36 +0200 (CEST) Received: (qmail 62607 invoked by uid 500); 23 Apr 2019 15:59:32 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 62583 invoked by uid 99); 23 Apr 2019 15:59:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2019 15:59:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 76439C2C9D; Tue, 23 Apr 2019 15:59:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id xg2jDt2No_Pf; Tue, 23 Apr 2019 15:59:21 +0000 (UTC) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4A1F2611D6; Tue, 23 Apr 2019 15:02:35 +0000 (UTC) Received: by mail-ed1-f51.google.com with SMTP id i13so12893716edf.11; Tue, 23 Apr 2019 08:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2fQVazHxrW5ZFZxdtB2Bwh2IOjCbnQH6Ya3Vlqrs3Pg=; b=oj/F8zCOxkRocu7lojR3nYh5VBbKOFQ/8AiypP5rZ5oGp4OPgeJwgjRDDXd18aNNHW Tim953TsFw7i/DyAAVhIZl6eJn1WDqpRFStat81yQTz6xSZGNRuCb5V6JIjB4m1SCT6o elLzR+UEnibIqqYTGcC2ip1ydksI8X56PPs5PAE31J5/ideBdO0TcmeKgoegRZxfaLyg OScUoAa9HMlFN2Dy9/R7cMFq8NGIj+NivRCcl3fzbNoSLC+VIJ93ENkK8N8oYgDWrOqy sZCnVfhXvto9JUz50FsXIpQExEU7DMzufunuKD67WKfNPb8P6RnFPBDlhkCUsn2PulL4 pIlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2fQVazHxrW5ZFZxdtB2Bwh2IOjCbnQH6Ya3Vlqrs3Pg=; b=QG5JKb10OXKbJRAALvQC/LT1iK8ZfbGMk0p5JrzKIun1kFze0Pl+SWL0lmx4UyTshL exgL8VHb5GDNyALRjxYPWQMTq752GxNETEDiCTL0KC7FqJbxnuorO1xBXsQIG8XJXsNK iGIsCG3Kw7Z4jr9Et9EJQmGKM7QKHTpJjv2Y7fhwt1olhgtHaSY3SbPpLVfIdjumt/Ga UUMh1/+CSwQdPJpBexHCzMIOeKDUtc7QCTXc/6qrBudkShpNH+92wkhETU2BJlZ+CSvb bnBJPBc9yrL1qoSOqmKMVYMx6HytanXubSBab10f/TvE3OH5efKYEq/DjAdJVll2Q3UY zxrg== X-Gm-Message-State: APjAAAWHkcVgROGAEAfarF4q8kajsL+QBtNR8AfDEWoX/E12HmfVVIlX WAMWqFyg1TSnwanPr6dpXP2MdM2ZS2Y1w3vK20iU8w== X-Google-Smtp-Source: APXvYqzoyFMDY6VE3uldds8B4kn5vkZ1QtRsla0e/dM9NOVpRXXRSx14SutZlJCnxkI0Q39nly3lpL27m8ez2V3VL+E= X-Received: by 2002:a17:906:4014:: with SMTP id v20mr1427712ejj.91.1556031754750; Tue, 23 Apr 2019 08:02:34 -0700 (PDT) MIME-Version: 1.0 References: <870724F3-2A05-43D6-AF91-0D7F01D1B9ED@shapeblue.com> In-Reply-To: From: Andrija Panic Date: Tue, 23 Apr 2019 17:02:18 +0200 Message-ID: Subject: Re: Cloudstack-agent gets the local IP address exception To: dev Cc: "users@cloudstack.apache.org" Content-Type: multipart/alternative; boundary="00000000000000502a058733e0cb" --00000000000000502a058733e0cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That sounds great Li, glad you solved the problem. On Tue, 23 Apr 2019 at 16:49, li jerry wrote: > Hi Andrija > > > > Your method is very good. I just tested agent. lb. When management > fails, the agent can complete switching in a very short time. > > > > > > ________________________________ > =E5=8F=91=E4=BB=B6=E4=BA=BA: Andrija Panic > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: Tuesday, April 23, 2019 10:22:47 PM > =E6=94=B6=E4=BB=B6=E4=BA=BA: dev > =E6=8A=84=E9=80=81: users@cloudstack.apache.org > =E4=B8=BB=E9=A2=98: Re: Cloudstack-agent gets the local IP address except= ion > > Hi Jerry, > > not a good idea, if you don't mind me saying that. > > Are you using 4.11 release ? If so you should use the internal LB logic > that is now part of Agent on KVM side - please check this one: > https://www.shapeblue.com/software-based-agent-lb-for-cloudstack/ > > Let me know if this works for you. > > Best, > Andrija > > On Tue, 23 Apr 2019 at 14:59, li jerry wrote: > > > HI Dag Sonstebo > > > > We deploy management and agent on the same host, with three such nodes. > > So we need to deploy keepalived on these three nodes, elect a VIP, and > let > > all agents communicate with this VIP. > > > > =E5=8F=91=E4=BB=B6=E4=BA=BA: Dag Sonstebo > > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2019=E5=B9=B44=E6=9C=8823=E6=97= =A5 17:08 > > =E6=94=B6=E4=BB=B6=E4=BA=BA: users@cloudstack.apache.org; > > dev@cloudstack.apache.org > > =E4=B8=BB=E9=A2=98: Re: Cloudstack-agent gets the local IP address exce= ption > > > > Li, > > > > Why do you run with this configuration? If this is for network resilien= ce > > you would run a bond/team, not keepalived. > > > > Regards, > > Dag Sonstebo > > Cloud Architect > > ShapeBlue > > > > > > =EF=BB=BFOn 22/04/2019, 14:37, "li jerry" wrote: > > > > HI All > > > > > > my kvm host [ip:10.226.16.11] virtualized a vip[10.226.16.10] via > > keepalived. > > > > After I started the cloudstack-agent, I got vip[10.226.16.10] and I > > couldn't get the correct IP [10.226.16.11]; > > > > Can I have any way to get the cloudstack agent to get the correct I= P > > address? > > > > > > > > Cloudstack 4.11.2 > > CentOS 7.5 > > > > > > > > br2: mtu 1500 qdisc noqueue state > UP > > group default qlen 1000 > > link/ether ac:1f:6b:ba:96:ea brd ff:ff:ff:ff:ff:ff > > inet 10.226.16.11/24 brd 10.226.16.255 scope global > noprefixroute > > br2 > > valid_lft forever preferred_lft forever > > inet 10.226.16.10/24 scope global secondary br2 > > valid_lft forever preferred_lft forever > > inet6 fe80::1456:f9ff:fe06:6228/64 scope link > > valid_lft forever preferred_lft forever > > > > > > > > Dag.Sonstebo@shapeblue.com > > www.shapeblue.com > > Amadeus House, Floral Street, London WC2E 9DPUK > > @shapeblue > > > > > > > > > > -- > > Andrija Pani=C4=87 > --=20 Andrija Pani=C4=87 --00000000000000502a058733e0cb--