Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=mspinler@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.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 45FGqg2WCbzDqSg for ; Fri, 31 May 2019 04:50:38 +1000 (AEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4UIflCH007507 for ; Thu, 30 May 2019 14:50:36 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 2stkat3cpp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 May 2019 14:50:35 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 May 2019 19:50:35 +0100 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 30 May 2019 19:50:33 +0100 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4UIoWXH7995794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 30 May 2019 18:50:32 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4067C7805E for ; Thu, 30 May 2019 18:50:32 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 202187805C for ; Thu, 30 May 2019 18:50:32 +0000 (GMT) Received: from [9.10.99.36] (unknown [9.10.99.36]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP for ; Thu, 30 May 2019 18:50:31 +0000 (GMT) To: OpenBMC Maillist From: Matt Spinler Subject: New Event Log Create API Date: Thu, 30 May 2019 13:50:31 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 19053018-0012-0000-0000-0000173DA78B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011186; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01210862; UDB=6.00636204; IPR=6.00991897; MB=3.00027122; MTD=3.00000008; XFM=3.00000015; UTC=2019-05-30 18:50:34 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19053018-0013-0000-0000-00005777AB85 Message-Id: <8568a036-80b4-4066-8cbc-cc201ca392a6@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-30_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=957 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905300131 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: Thu, 30 May 2019 18:50:40 -0000 Hi, I proposed a pure D-Bus API to create an OpenBMC event log here: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/22053. I did this for a few reasons: 1) To avoid scraping the journal to find the metadata, and then just turning around and making a D-Bus call anyway. 2) To allow the code to pass through some extra data that could go to a logging extension. (see my proposal here: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-logging/+/21897). 3) It's hard to write code (I think) that uses new error logs, as the error yaml has to merge before you can compile, and you have to do things like use an sdbusplus namespace for the log type, and an xyz namespace for the metadata.  Or if you put the YAML in your own repo, then you have to make sure you bbappend phosphor-logging to tell them about the metadata. There would be no plans to change the existing interfaces, like elog/commit/report, which can also still be used to return exceptions across D-Bus calls. This does mean an error wouldn't have to be in the YAML files. Does anyone feel strongly about this?  If so, can anyone think of another way to ease the pain of 3), while also solving 2)? Thanks, Matt