Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=ratagupt@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=linux.vnet.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49yrT75npJzDrC5 for ; Fri, 3 Jul 2020 20:15:54 +1000 (AEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0639XcxH107882 for ; Fri, 3 Jul 2020 06:15:52 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3212aub36h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 Jul 2020 06:15:51 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 063A1pXh014426 for ; Fri, 3 Jul 2020 10:15:46 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03ams.nl.ibm.com with ESMTP id 3217b01hyt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 Jul 2020 10:15:46 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 063AENAX56426930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 3 Jul 2020 10:14:23 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A7BF9AE04D for ; Fri, 3 Jul 2020 10:15:43 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32485AE05F for ; Fri, 3 Jul 2020 10:15:43 +0000 (GMT) Received: from localhost.localdomain (unknown [9.77.201.77]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Fri, 3 Jul 2020 10:15:42 +0000 (GMT) Subject: Re: Redfish EventService Implementation To: openbmc@lists.ozlabs.org References: <019f5263-a7b2-9cb8-4420-cb597bd29afd@gmail.com> <1d2ad757-826d-1993-b88a-e92010b984ed@linux.vnet.ibm.com> <05ec7793-2efa-42da-ef56-94cc1477d2bb@linux.intel.com> <20200616152428.GA4618@heinlein> <7e16df1c-38b0-d488-dbbf-75fe9ac818ab@linux.intel.com> <68f31493-6db6-8e8e-8486-e03c14685abe@linux.vnet.ibm.com> <20200617204516.GE4618@heinlein> <20ab2d6a-00d8-edc6-a18a-c98d93c6cb3c@linux.vnet.ibm.com> <477bd1782b6c5f9cfea6f6340ecd207a9c01fb20.camel@fuzziesquirrel.com> <6fc4c66e-4a0a-1c59-3f77-a6fcff29b97e@linux.intel.com> <8e342c33-25c8-5586-cbd4-e8662fcac6b5@linux.intel.com> From: Ratan Gupta Message-ID: <5b2ab3f9-4e98-b9c3-128b-9eb161ea52f9@linux.vnet.ibm.com> Date: Fri, 3 Jul 2020 15:45:42 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <8e342c33-25c8-5586-cbd4-e8662fcac6b5@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-03_03:2020-07-02, 2020-07-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 cotscore=-2147483648 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 mlxlogscore=999 suspectscore=1 lowpriorityscore=0 mlxscore=0 adultscore=0 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007030070 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: , X-List-Received-Date: Fri, 03 Jul 2020 10:15:56 -0000 On 6/29/20 9:03 PM, Bills, Jason M wrote: > > > On 6/29/2020 1:07 AM, Ratan Gupta wrote: >> >> On 6/26/20 12:25 AM, Bills, Jason M wrote: >>> >>> >>> On 6/25/2020 10:26 AM, Brad Bishop wrote: >>>> One idea floating around to address these is inventing a journal >>>> metadata scheme that is management interface agnostic.  I >>>> understand the >>>> motivation behind that - it is much simpler for an application to >>>> slide >>>> a single journal entry into the journal with all the metadata >>>> needed to >>>> generate events, than it is for an application to snoop multiple >>>> signals >>>> off dbus and pull events out of that. >>>> >>>> But I wonder if inventing a management interface agnostic scheme for >>>> adding events to the journal is really just inventing a new data model >>>> for how we represent things in a server - e.g. are we just working >>>> around our dbus data model?  Maybe we should fix it instead, so >>>> that it >>>> isn't so difficult for applications to use it?  With that said I don't >>>> know how to do this and I could use more concrete details on which >>>> areas >>>> of the data model make it hard to consume signals.  Does anyone >>>> have any >>>> ideas or examples? >>>> >>> >>> On this, I think we may want to separate logging vs. eventing both >>> in this feature discussion and in the tools we want to use. >>> >>> When we were talking about logging, I think the journal made sense >>> since it is designed for logging and has benefits around that usage. >>> However, I agree that it doesn't seem like the right tool for >>> sending and receiving events and signals and that D-Bus sounds like >>> the right tool for that. >>> >>> I think I'm still a little confused at the scope.  My understanding >>> was that this initial design for EventService was only for >>> monitoring event messages and not resources in general. It seems >>> like it may not make sense to try to use the same tools and approach >>> for both message monitoring and resource monitoring? Do we need to >>> treat them separately for now to simplify the discussion? >> Jason, When you say event messages? What do you mean, Do you mean to >> say "/redfish/v1/Systems/system/Logservices/eventlog"? > >> If yes then this should also go as Resource Event, When ever any log >> entry gets created under System Log >> (/redfish/v1/Systems/system/Logservices/eventlog/entries), BMC would >> notify to the Redfish client saying that "ResourceCreated" with the >> URL of the Resource. > Yes, new entries under > "/redfish/v1/Systems/system/Logservices/eventlog", but I thought you > could register for specific MessageIDs, so it's not just a generic > "new resource" event like others would be. Can we register for MessageID? I thought client can register for whole registry not a specific Message ID. > > >> >> After receiving this event Redfish client will do a GET request on >> the URL(retrieved as part of event) to get the content of the log. >> >> This will become generic infra for all types of events. > What I'm saying is I don't know if there is a good generic solution to > cover both the EventLog and all other resources.  I believe the > current EventService implementation was designed only for EventLog and > may not work well for generic resource events. Can you get me the example payload for EventLog which is going to be sent with the current design? I am not sure how the eventlog and other resources are different. For eventLogs also we have the associated D-bus objects(/xyz/openbmc_project/logging,/xyz/openbmc_project/dump etc) > >> >> I would be coming up with few design approaches and downside with >> each approach to take it to conclusion. > Thanks!  What I'm proposing is that we clarify or possibly separate > the discussions about EventLog vs. generic resources to avoid > confusion and come up with the right solutions for each. > >> >> Ratan >>