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=-5.6 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,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 864E3C47082 for ; Wed, 26 May 2021 20:51:42 +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 DF242613CC for ; Wed, 26 May 2021 20:51:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF242613CC Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com 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 4Fr35m4tTHz307W for ; Thu, 27 May 2021 06:51:40 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=K1PzTszN; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2607:f8b0:4864:20::1031; helo=mail-pj1-x1031.google.com; envelope-from=wltu@google.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=K1PzTszN; dkim-atps=neutral Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 4Fr34r6VDqz2xtl for ; Thu, 27 May 2021 06:50:51 +1000 (AEST) Received: by mail-pj1-x1031.google.com with SMTP id o17-20020a17090a9f91b029015cef5b3c50so1024851pjp.4 for ; Wed, 26 May 2021 13:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=/qBBLq71HTVNOHIzBuBGbByXoUhYvz9vr+dyxmGWymI=; b=K1PzTszNBxft9X+VgpPkTKADZTm5BIeZ32miQpVaexJUlU2zLK3RzmlUXROKGZD1Ny Pg1b9N8JGDTBzgDxc6QKfCgtktIaiuWFjsKYeZvhxXBTZsZni4lJ0ISlXWebdX16ZdRo nAB7OAseBsWvQnsRuVr22Zq39YJ8/DqSnqsqZJTm7IH04yuxKwNNSN9+vKdpq4/fYIvc 0mCXSIxUt9UsBEObfk0xasQc3kJuSsKmsKtTjZ09OIMofRBeVuHLr1CqWnMKfYNBTeiz ChshLQtjkWoT+82dotky0AOzpAuko5TdZzbDQCK28reR8RaP2bPSu4Qdxq2Ms50cMqcY Yvmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=/qBBLq71HTVNOHIzBuBGbByXoUhYvz9vr+dyxmGWymI=; b=prtNSCgHYdRHJgK2hcE6DyF0GtQLuZjtBWjvwwCrSoIK43+C+7anl4RByHL47TO0h+ q6Ej7vkdwVeBEKMgJtzBLU0sfpPIw2hPRDNphv2wr5CI1jO9lFGfJYv88V/nlct4/gQX /Ty+gBggtB9sY8k62mVyNCNFdkK66VIf8wsRp3tLrB+Nx6XaBzUv6WxiFobi9ISuxhHP zxxaW1xEP8hF6rDrhmMYOHl0CJtwwROZEF3sOWhHngwibWHICagX8x5pCqtCYFVR3tDu BLFlUMCl5D4hjNV+1Bh1Kjidklg19G69vn3fHC+EfblB9JhE3yzvQFs+0T5T+lBDe3rR ToIA== X-Gm-Message-State: AOAM531F3Y2DKucWQOhZvPbpEmCaDg8KDkNUmEox1U+F09xDnX/L5cIc D7cWlPo7Pf7rCUTK+YwKwB61HwueQEr6VxKMGeoSYYEhJqn+hQ== X-Google-Smtp-Source: ABdhPJytLOwDc3b0CHigVmMhdy6Y5232TgmoJQWAo8G8zMMzejhlcc+dXaTsidBHwUfjO/y+CsvYRM3UrbcBdLME3Ug= X-Received: by 2002:a17:90a:5288:: with SMTP id w8mr5780656pjh.170.1622062247376; Wed, 26 May 2021 13:50:47 -0700 (PDT) MIME-Version: 1.0 From: Willy Tu Date: Wed, 26 May 2021 13:50:36 -0700 Message-ID: Subject: [bmcweb] Device Level Logging Services To: OpenBMC Maillist Content-Type: multipart/alternative; boundary="0000000000000f50ee05c341cc43" 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: Ed Tanous , Derek Chan , Nan Zhou , Rui Zhang Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --0000000000000f50ee05c341cc43 Content-Type: text/plain; charset="UTF-8" Hi all, Main discussion: https://lore.kernel.org/openbmc/CAHwn2XknKWyv6Bsq48tkvA52rHKZRFoEJgUuZUmMj6uZb584JQ@mail.gmail.com/ (a bit outdated) This will be a sub-thread about logging services that will be used to support Drive (and could support others). For bmcweb, I am wondering if we can support custom logging services other than the static ones that we have in https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/log_services.hpp . I am thinking about supporting custom log service at a device level that can be exported by different hardwares log entries that are more specific. Then at each device resource can link the Status.Condition to the LogEntries. Initial Idea, For example, I want to have log entries for Drive devices. ComputerSystemId could still be system or bmc and the Redfish endpoint will be something like. ``` /redfish/v1/Systems/system/LogServices/Drive0LogService/Entries ``` On the D-bus side, the service exporting the log can add log entry under. We can have ``` /xyz/openbmc_project/logging/device/drive_0 |__/xyz/openbmc_project/logging/device/drive_0/entry/... ``` We can parse the `xyz.openbmc_project.ObjectMapper` at `/xyz/openbmc_project/logging/device` with depth of 1 to get all the new device log services and so on. Please let me know if there are any questions about it. If no one is against it, I'll work on implementing it. Best, Willy Tu Best, Willy Tu --0000000000000f50ee05c341cc43 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,


This will be a sub-thread about logging serv= ices that=C2=A0will be used to support Drive (and could support others).

For bmcweb, I am wondering if we can support custom = logging services other than the=C2=A0static ones that we have in=C2=A0https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/= log_services.hpp.

I am thinking about supporti= ng custom log=C2=A0service at a device level that can be exported by differ= ent hardwares log=C2=A0entries that are more specific. Then at each device = resource can link=C2=A0 the Status.Condition to the=C2=A0LogEntries.

Initial Idea,

For=C2=A0exam= ple, I want to have log entries for Drive devices.=C2=A0

ComputerSystemId could still be system or bmc and the Redfish endpoi= nt=C2=A0will be something like.

```
=
/redfish/v1/Systems/system/LogServices/Drive0LogService/Entries
```

On the D-bus side, the service e= xporting the log can add=C2=A0log entry=C2=A0under.

We can have=C2=A0
```
/xyz/openbmc_project/logging/device/drive_0
|__/xyz/openbmc_project/logging/device/drive_0/entry/...
``= `

We can parse the `xyz.openbmc_project.ObjectMapp= er` at `/xyz/openbmc_project/logging/device` with depth of 1 to get all the= new device log services and so on.

Please let me = know if there are any questions about it. If no one is against it, I'll= work on implementing it.

Best,

Willy Tu




=
Best,

Willy Tu
--0000000000000f50ee05c341cc43--