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=2.4 required=3.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, 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 9E3BEC5519F for ; Fri, 20 Nov 2020 05:48:14 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 B68F522244 for ; Fri, 20 Nov 2020 05:48:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B68F522244 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=quantatw.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4Cclvc0WLKzDq6q for ; Fri, 20 Nov 2020 16:48:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=quantatw.com (client-ip=220.128.79.91; helo=mx02.quantatw.com; envelope-from=prvs=5833891c6=jun-lin.chen@quantatw.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=quantatw.com Received: from mx02.quantatw.com (mx02.quantatw.com [220.128.79.91]) by lists.ozlabs.org (Postfix) with ESMTP id 4Cb2V000X3zDqR7 for ; Tue, 17 Nov 2020 21:38:27 +1100 (AEDT) IronPort-SDR: Nd2iUQOIHhzm99L8NWhr0jgb663zYtnz6MdokuXRbt98pE0ak1zFf2qET+T2yhj9ZdZEwAXpBv 2ancm5S4lgKQ== Received: from unknown (HELO mailbx09.quanta.corp) ([10.243.91.106]) by mx02.quantatw.com with ESMTP; 17 Nov 2020 18:38:25 +0800 Received: from mailbx09.quanta.corp (10.243.91.106) by mailbx09.quanta.corp (10.243.91.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Tue, 17 Nov 2020 18:38:24 +0800 Received: from mailbx09.quanta.corp ([192.168.57.9]) by mailbx09.quanta.corp ([192.168.57.9]) with mapi id 15.01.2044.004; Tue, 17 Nov 2020 18:38:24 +0800 From: =?big5?B?SnVuLUxpbiBDaGVuICizr6tUwE0p?= To: "openbmc@lists.ozlabs.org" Subject: The Subscription will disappear and config of EventService restore initial value after reboot Thread-Topic: The Subscription will disappear and config of EventService restore initial value after reboot Thread-Index: Ada8zTtwo1eSvSPzTqi+6szJ11/xAA== Date: Tue, 17 Nov 2020 10:38:24 +0000 Message-ID: <94a84c0d54f94193be2f21212e3749a7@quantatw.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.243.91.252] Content-Type: multipart/alternative; boundary="_000_94a84c0d54f94193be2f21212e3749a7quantatwcom_" MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 20 Nov 2020 16:41:40 +1100 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: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --_000_94a84c0d54f94193be2f21212e3749a7quantatwcom_ Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 SGksDQpJIGhhdmUgYW4gaXNzdWUgYWJvdXQgRXZlbnRTZXJ2aWNlOiBhZnRlciByZWJvb3QsIFN1 YnNjcmlwdGlvbiBkaXNhcHBlYXIgYW5kIGNvbmZpZyBvZiBFdmVudFNlcnZpY2UgcmVzdG9yZSBp bml0aWFsIHZhbHVlLg0KSSBsb29rIHVwIHRoZSBjb2RlcyBpbiBldmVudF9zZXJ2aWNlX21hbmFn ZXIuaHBwIGFuZCBmb3VuZCBTdWJzY3JpcHRpb24gYW5kIEV2ZW50U2VydmljZSBjb25maWcgd2ls bCBzdG9yZSBpbiAvdmFyL2xpYi9ibWN3ZWIvZXZlbnRzZXJ2aWNlX2NvbmZpZy5qc29uLg0KQnV0 IElmIEJNQyBoYXMgbm8gYm1jd2ViIGZvbGRlciBpbiAvdmFyL2xpYi8gLCBJdCBub3Qgc2F2ZSBl dmVudHNlcnZpY2VfY29uZmlnLmpzb24uDQoNCkkgdHJ5IGNyZWF0ZSBibWN3ZWIgZm9sZGVyIG1h bnVhbGx5IGFuZCBQT1NUIGEgbmV3IFN1YnNjcmlwdGlvbiB0aGVuIHJlYm9vdCwgdGhlIFN1YnNj cmlwdGlvbiB3aWxsIGJlIHNhdmVkIGFuZCBub3QgZGlzYXBwZWFyIHRoaXMgdGltZS4NClRoaXMg cGVyZm9ybWFuY2Ugc2VlbXMgdG8gYmUgaW5jb25zaXN0ZW50IHdpdGggdGhlIGRlc2lnbiBjb25j ZXB0IGlmIHRoZXJlIGlzIG5vIGJtY3dlYiBmb2xkZXIgYXQgdGhlIGJlZ2lubmluZy4gRG9lcyBu ZWVkIHRvIGFkZCB0byB0aGUgY29kZSB0aGF0IGRldGVjdCB0aGUgcGF0aCBpcyB2YWxpZD8NCg0K SmltDQoNCg== --_000_94a84c0d54f94193be2f21212e3749a7quantatwcom_ Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable

Hi,

I have an issue about EventServ= ice: after reboot, Subscription disappear and config of EventService restor= e initial value.

I look up the codes in event_se= rvice_manager.hpp and found Subscription and EventService config will store= in /var/lib/bmcweb/eventservice_config.json.

But If BMC has no bmcweb folder= in /var/lib/ , It not save eventservice_config.json.

 

I try create bmcweb folder manu= ally and POST a new Subscription then reboot, the Subscription will be save= d and not disappear this time.

This performance seems to be in= consistent with the design concept if there is no bmcweb folder at the begi= nning. Does need to add to the code that detect the path is valid?

 

Jim

 

--_000_94a84c0d54f94193be2f21212e3749a7quantatwcom_--