Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 377A8C433FE for ; Mon, 7 Nov 2022 09:25:39 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4N5QnY1YqGz3cK7 for ; Mon, 7 Nov 2022 20:25:37 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=sUdHFekR; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=inventron.com.tr (client-ip=185.216.113.70; helo=ns1.ihsdnsx51.com; envelope-from=zehra.ozdemir@inventron.com.tr; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=sUdHFekR; dkim-atps=neutral X-Greylist: delayed 398 seconds by postgrey-1.36 at boromir; Mon, 07 Nov 2022 20:24:38 AEDT Received: from ns1.ihsdnsx51.com (ns1.ihsdnsx51.com [185.216.113.70]) (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 4N5QmQ6N64z30NN for ; Mon, 7 Nov 2022 20:24:37 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventron.com.tr; s=default; t=1667813074; bh=0s806NWSGhw429nnCNKNGAV5UxO1BypQAKMAiYFtpo0=; h=Received:Received:From:To:Subject; b=sUdHFekRvMoM4DtdBK40KVwAaMQ0dXGR8cgJJr1cPURvEXdftx+A8gbIsDN9ZFUOk 1PkK6mCTjWnk5Fb6rnTFWZTwZqXwheOeNVKNhZLerjqPRuEdLGhFuVB21R7gNC1+Ux z+VZkT4g9x4ZRmMm4rIPnk2r7Co+x+wVoORK3mCk= Received: (qmail 1528043 invoked from network); 7 Nov 2022 12:17:53 +0300 Received: from 78.189.148.199.static.ttnet.com.tr (HELO INVLT5250ZO) (78.189.148.199) by ns1.ihsdnsx51.com with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 7 Nov 2022 12:17:52 +0300 From: To: Subject: Phosphor State Manager Does Not Work as Expected Date: Mon, 7 Nov 2022 12:18:00 +0300 Message-ID: <006e01d8f289$d5518340$7ff489c0$@inventron.com.tr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006F_01D8F2A2.FA9FF3C0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdjyfMtwVOh5780ZT32Hsjh4nMSnIA== Content-Language: en-us X-PPP-Message-ID: <166781267327.1528031.7504650190061730459@ns1.ihsdnsx51.com> X-PPP-Vhost: inventron.com.tr 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: "'M. Erhan Yigitbasi'" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This is a multipart message in MIME format. ------=_NextPart_000_006F_01D8F2A2.FA9FF3C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, We are trying to implement phosphor-state-manager to our projects to control the host. Logs are given down below when we trigger the immediate option from GUI: Nov 07 08:53:19 Aselsan-Server phosphor-chassis-state-manager[404]: Change to Chassis Requested Power State: xyz.openbmc_project.State.Chassis.Transition.Off Nov 07 08:53:20 Aselsan-Server systemctl[415]: Job for obmc-chassis-poweron@0.target canceled. Nov 07 08:53:20 Aselsan-Server systemd[1]: op-reset-chassis-on@0.service: Main process exited, code=exited, status=1/FAILURE Nov 07 08:53:20 Aselsan-Server systemd[1]: op-reset-chassis-on@0.service: Failed with result 'exit-code'. Nov 07 08:53:20 Aselsan-Server systemd[1]: Stopped Start chassis0 on after BMC reset. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/obmc-led-group-stop. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/op-power-stop. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/op-powered-off. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/op-wait-power-off. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/phosphor-clear-one-time. Nov 07 08:53:20 Aselsan-Server systemd[1]: Created slice Slice /system/phosphor-reset-sensor-states. Nov 07 08:53:21 Aselsan-Server systemd[1]: Created slice Slice /system/phosphor-set-host-transition-to-off. Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Host0 running after reset. Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Power0 (On). Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Chassis0 power on after reset. Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Power0 On (Starting). Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Power0 On (Pre). Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Multi-User System. Nov 07 08:53:21 Aselsan-Server phosphor-bmc-state-manager[372]: BMC_READY Nov 07 08:53:21 Aselsan-Server phosphor-bmc-state-manager[372]: Setting the BMCState field to xyz.openbmc_project.State.BMC.BMCState.Ready Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Chassis0 (Reset Check). Nov 07 08:53:21 Aselsan-Server systemd[1]: Stopped target Host0 (Reset Check). Nov 07 08:53:21 Aselsan-Server systemd[1]: Starting Wait for /xyz/openbmc_project/control/host0/auto_reboot/one_time... Nov 07 08:53:21 Aselsan-Server systemd[1]: Reset host sensors was skipped because of a failed condition check (ConditionPathExists=!/run/openbmc/host@0-on). Nov 07 08:53:21 Aselsan-Server systemd[1]: Starting Set host state to transition to off... Nov 07 08:53:21 Aselsan-Server systemd[1]: Finished Wait for /xyz/openbmc_project/control/host0/auto_reboot/one_time. Nov 07 08:53:21 Aselsan-Server phosphor-host-state-manager[424]: Change to Host State: xyz.openbmc_project.State.Host.HostState.TransitioningToOff Nov 07 08:53:21 Aselsan-Server systemd[1]: Starting Reset one-time properties on chassis off... Nov 07 08:53:21 Aselsan-Server systemd[1]: Finished Set host state to transition to off. Nov 07 08:53:21 Aselsan-Server systemd[1]: Reached target Stop Host0 (Pre). Nov 07 08:53:21 Aselsan-Server systemd[1]: Reached target Host0 (Stopping). Nov 07 08:53:21 Aselsan-Server systemd[1]: Reached target Host0 (Stopped). Nov 07 08:53:22 Aselsan-Server systemd[1]: Reached target Power0 Off (Pre). Nov 07 08:53:22 Aselsan-Server systemd[1]: Started Stop Power0. Nov 07 08:53:22 Aselsan-Server systemd[1]: Starting Wait for Power0 to turn off... Nov 07 08:53:22 Aselsan-Server systemd[1]: phosphor-clear-one-time@0.service: Deactivated successfully. Nov 07 08:53:22 Aselsan-Server systemd[1]: Finished Reset one-time properties on chassis off. After that, neither Chassis State nor Host State is off. The Chassis State is On and the Host State is TransitioningToOff. Could you please give us some information about what could have caused this condition? ------=_NextPart_000_006F_01D8F2A2.FA9FF3C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

We are = trying to implement phosphor-state-manager to our projects to control = the host. Logs are given down below when we trigger the immediate option = from GUI:

 

Nov 07 08:53:19 Aselsan-Server = phosphor-chassis-state-manager[404]: Change to Chassis Requested Power = State: xyz.openbmc_project.State.Chassis.Transition.Off<= br>Nov 07 08:53:20 Aselsan-Server = systemctl[415]: Job for obmc-chassis-poweron@0.target = canceled.
Nov 07 08:53:20 = Aselsan-Server systemd[1]: op-reset-chassis-on@0.service: Main process = exited, code=3Dexited, status=3D1/FAILURE
Nov 07 08:53:20 Aselsan-Server systemd[1]: = op-reset-chassis-on@0.service: Failed with result = 'exit-code'.
Nov 07 08:53:20 = Aselsan-Server systemd[1]: Stopped Start chassis0 on after BMC = reset.
Nov 07 08:53:20 = Aselsan-Server systemd[1]: Created slice Slice = /system/obmc-led-group-stop.
Nov 07 08:53:20 Aselsan-Server systemd[1]: = Created slice Slice /system/op-power-stop.
Nov 07 08:53:20 Aselsan-Server systemd[1]: = Created slice Slice /system/op-powered-off.
Nov 07 08:53:20 Aselsan-Server systemd[1]: = Created slice Slice /system/op-wait-power-off.
Nov 07 08:53:20 Aselsan-Server systemd[1]: = Created slice Slice /system/phosphor-clear-one-time.
Nov 07 08:53:20 Aselsan-Server systemd[1]: = Created slice Slice = /system/phosphor-reset-sensor-states.
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Created slice Slice = /system/phosphor-set-host-transition-to-off.
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Host0 running after reset.
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Power0 (On).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Chassis0 power on after reset.
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Power0 On (Starting).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Power0 On (Pre).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Multi-User System.
Nov 07 08:53:21 Aselsan-Server = phosphor-bmc-state-manager[372]: BMC_READY
Nov 07 08:53:21 Aselsan-Server = phosphor-bmc-state-manager[372]: Setting the BMCState field to = xyz.openbmc_project.State.BMC.BMCState.Ready
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Chassis0 (Reset Check).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Stopped target Host0 (Reset Check).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Starting Wait for = /xyz/openbmc_project/control/host0/auto_reboot/one_time...
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Reset host sensors was skipped because of a failed condition check = (ConditionPathExists=3D!/run/openbmc/host@0-on).

Nov 07 08:53:21 Aselsan-Server systemd[1]: = Starting Set host state to transition to off...
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Finished Wait for = /xyz/openbmc_project/control/host0/auto_reboot/one_time.
Nov 07 08:53:21 Aselsan-Server = phosphor-host-state-manager[424]: Change to Host State: = xyz.openbmc_project.State.Host.HostState.TransitioningToOff
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Starting Reset one-time properties on chassis off...
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Finished Set host state to transition to off.
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Reached target Stop Host0 (Pre).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Reached target Host0 (Stopping).
Nov 07 08:53:21 Aselsan-Server systemd[1]: = Reached target Host0 (Stopped).
Nov 07 08:53:22 Aselsan-Server systemd[1]: = Reached target Power0 Off (Pre).
Nov 07 08:53:22 Aselsan-Server systemd[1]: = Started Stop Power0.
Nov 07 = 08:53:22 Aselsan-Server systemd[1]: Starting Wait for Power0 to turn = off...
Nov 07 08:53:22 = Aselsan-Server systemd[1]: phosphor-clear-one-time@0.service: = Deactivated successfully.
Nov = 07 08:53:22 Aselsan-Server systemd[1]: Finished Reset one-time = properties on chassis off.

 

 

After that, = neither Chassis State nor Host State is off. The Chassis State is On and = the Host State is TransitioningToOff. Could you please give us some = information about what could have caused this condition? =  

------=_NextPart_000_006F_01D8F2A2.FA9FF3C0--