From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7877C433B4 for ; Tue, 6 Apr 2021 16:51:59 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31A0E613A7 for ; Tue, 6 Apr 2021 16:51:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31A0E613A7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tanous.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FFD8F5LCTz30BG for ; Wed, 7 Apr 2021 02:51:57 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=tanous-net.20150623.gappssmtp.com header.i=@tanous-net.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=t/HTJgzl; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=tanous.net (client-ip=2607:f8b0:4864:20::b2f; helo=mail-yb1-xb2f.google.com; envelope-from=ed@tanous.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=tanous-net.20150623.gappssmtp.com header.i=@tanous-net.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=t/HTJgzl; dkim-atps=neutral Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FFD7q6ClDz2xgQ for ; Wed, 7 Apr 2021 02:51:35 +1000 (AEST) Received: by mail-yb1-xb2f.google.com with SMTP id 82so6367305yby.7 for ; Tue, 06 Apr 2021 09:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tanous-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zi2KNWbIMjf91d8FWqJjdXLXhvKmIqFEa0TfOijIBoE=; b=t/HTJgzl1zZAZXjMU9+JL7mM4EaQLC84FUgUEnO64+lFLBUCRAcdOixBkQCJvucsqb gjYA+fHVjgpKSOoiZ67QI4vt5xNmgErhyxDr0Wvm0KFQy8TSS71DJQgbtbzfNqQ0nVaF CSjyotHTE2ve33FF7TINhU0Md2YjJvMU517MypUnnIjSM6uqCz46lYTBRYcuV/QVVy4x piyuKyhy8QpZDyZHHvk+tkz4XMQhgGc54VXL0PyQKtK++oF6AG+IOCCbpX7Ac5nUKxr7 I1wZ1NI2dIaTVcRRZ/JpGP1sl3Gy+pd3Vp4+yxcWW+ARg61wlf7BzK4QfyjJWuLGRLCm c8Jg== 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:content-transfer-encoding; bh=zi2KNWbIMjf91d8FWqJjdXLXhvKmIqFEa0TfOijIBoE=; b=X1AOtwoVL3lDZ/2lPJwFevRH/+gUGRRkkzny+ll38RdGKwFHogVl3/YZIjG0P05xRA MlxabozGCKAoOsRYCJUaW5Oe8AH61zUoT2vSd/Pq3IiFW2zScu2K6t0wjj7BQlWsfBhT mt0KTkHv3eteXWj993pEd28GviVAHL8Vi6i0GPxlvhhGsd8MRb+V2PJ6UYlc3vV197ro CVAcwwMNgEUICKZWzYFwGydGUvIO68SvQZqbwU/PcDS7HRHVv40MqNlBFviU6fwix8iE HNxGaeg7IZrbCpk0LIR+lJr20P7pu678CjbBQhQz0c+UVjjv7BmDaeGE2QLeizN1+yVU 6y8Q== X-Gm-Message-State: AOAM530zPhqoMTwFWgizZRnijC9F5beG9R1VOmAvrZeQsv/jtmSwcsTA VvXR6wnD4GCMEgIf72FwDKL3yf+WKvmtSkg+IWnNjQ== X-Google-Smtp-Source: ABdhPJyimAom+F6SDL/NDhjGhhmFbtwgqhzLDcwil2Vb0CDsLuAwMj0EKUGXLrySx+yI64MqhFUAu8XdBVwTXdyQCFY= X-Received: by 2002:a5b:881:: with SMTP id e1mr23291377ybq.480.1617727893108; Tue, 06 Apr 2021 09:51:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ed Tanous Date: Tue, 6 Apr 2021 09:51:22 -0700 Message-ID: Subject: Re: ClientOriginIPAddress is 0.0.0.0 or "" To: =?UTF-8?B?SnVuLUxpbiBDaGVuICjpmbPkv4rpnJYp?= , sunithaharish04@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "openbmc@lists.ozlabs.org" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Tue, Mar 23, 2021 at 3:28 PM Jun-Lin Chen (=E9=99=B3=E4=BF=8A=E9=9C=96) wrote: > > Hi, > > If continously send POST sessions Redfish request via Postman. I observe = bmcweb debug logs, it will established connection at first request then not= fetch user ip after the second request. > > > > That's why ClientOriginIPAddress in session after the second created is a= lways 0.0.0.0 (not be assigned). > > > > In HTTP 1.1 It uses keep-alive Header default. so BMC does not fetch user= IP when its connection is established. > > > > Is this behavior we expect? > > > > Best regards, > > Jun-Lin Chen Sunitha, Considering this is code you wrote, would you mind replying to Jun-Lin about his experience and what the expected behavior is? For what it's worth, I've seen it report 0.0.0.0 before on my system, I just haven't had a chance to chase it down and debug it. -Ed > > > > From: Jun-Lin Chen (=E9=99=B3=E4=BF=8A=E9=9C=96) > Sent: Friday, March 5, 2021 4:05 PM > To: sunharis@in.ibm.com > Cc: openbmc@lists.ozlabs.org > Subject: ClientOriginIPAddress is 0.0.0.0 or "" > > > > Hi Sunitha, > > > > I found some problem when I create session. > > The property =E2=80=9CClientOriginIPAddress=E2=80=9D is =E2=80=9C=E2=80= =9D after POST https://${bmc}/login -d '{"username": <>,"password": <>} > > And it is 0.0.0.0 after POST https://${bmc}/redfish/v1/SessionService/Ses= sions -d '{"username": <>,"password": <>}' > > Both of them looked like something wrong. And I also look for source code= in bmcweb repository. > > There only defined the default value: =E2=80=9C=E2=80=9D in generateUserS= ession() and not found fetch user ip in elsewhere. > > I think it is why ClientOriginIPAddress is strange. > > > > May I ask what step or something I lack in creation session so this prope= rty is abnormal? > > > > > > Best regards, > > Jun-Lin Chen > >