Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=phoenix.com (client-ip=63.128.21.170; helo=us-smtp-delivery-170.mimecast.com; envelope-from=patrick_voelker@phoenix.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=phoenix.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=phoenix.com header.i=@phoenix.com header.a=rsa-sha256 header.s=mimecast20170203 header.b=hDmrLUal; dkim=pass (1024-bit key) header.d=phoenix.com header.i=@phoenix.com header.a=rsa-sha256 header.s=mimecast20170203 header.b=hDmrLUal; dkim-atps=neutral Received: from us-smtp-delivery-170.mimecast.com (us-smtp-delivery-170.mimecast.com [63.128.21.170]) (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 49TLCM5Nx4zDqxj for ; Sat, 23 May 2020 08:05:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phoenix.com; s=mimecast20170203; t=1590185127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=9OKoGLoe8fJ9Wrh2dD1yRywtNIKDAHjOAtu0s0tdjGY=; b=hDmrLUalYBJMRVLb+9Mkk6c8w10njecNdCDUuukvYSnyc4RJ7DDjLTz7oBmI5/3bEy7bbS f3ucxJ0eDFx/DHHMsvGHd54bCNYCRGDb1R2RCTwbd69BVMAhquWHB7gB6D3vzTZxYAQeuG kJ1S0fs8tUmiziyt/1AIHtZPpfszy74= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phoenix.com; s=mimecast20170203; t=1590185127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=9OKoGLoe8fJ9Wrh2dD1yRywtNIKDAHjOAtu0s0tdjGY=; b=hDmrLUalYBJMRVLb+9Mkk6c8w10njecNdCDUuukvYSnyc4RJ7DDjLTz7oBmI5/3bEy7bbS f3ucxJ0eDFx/DHHMsvGHd54bCNYCRGDb1R2RCTwbd69BVMAhquWHB7gB6D3vzTZxYAQeuG kJ1S0fs8tUmiziyt/1AIHtZPpfszy74= Received: from SCL-EXCHMB-13.phoenix.com (67.51.239.50 [67.51.239.50]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-7AuK7BD9OOqOIWJfpCVw3Q-1; Fri, 22 May 2020 18:05:23 -0400 X-MC-Unique: 7AuK7BD9OOqOIWJfpCVw3Q-1 X-CrossPremisesHeadersFilteredBySendConnector: SCL-EXCHMB-13.phoenix.com Received: from SCL-EXCHMB-13.phoenix.com (10.122.68.16) by SCL-EXCHMB-13.phoenix.com (10.122.68.16) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Fri, 22 May 2020 15:05:21 -0700 Received: from SCL-EXCHMB-13.phoenix.com ([fe80::fd2e:a8f8:f740:cb3b]) by SCL-EXCHMB-13.phoenix.com ([fe80::fd2e:a8f8:f740:cb3b%12]) with mapi id 15.00.1156.000; Fri, 22 May 2020 15:05:21 -0700 From: Patrick Voelker To: "OpenBMC (openbmc@lists.ozlabs.org)" CC: Benjamin Fair , Patrick Venture Subject: phosphor-ipmi-flash state recovery Thread-Topic: phosphor-ipmi-flash state recovery Thread-Index: AdYwe01TRgfLKJ7fSOiPeZ5iSAOYbQ== Date: Fri, 22 May 2020 22:05:21 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [50.39.166.255] MIME-Version: 1.0 X-OrganizationHeadersPreserved: SCL-EXCHMB-13.phoenix.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: phoenix.com Content-Type: multipart/alternative; boundary="_000_bbd0955547ff46728528fd14d52fb04dSCLEXCHMB13phoenixcom_" 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, 22 May 2020 22:05:37 -0000 --_000_bbd0955547ff46728528fd14d52fb04dSCLEXCHMB13phoenixcom_ Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable When running burn_my_bmc, if I exit the program during image upload with ct= rl-c, it seems that the bmc gets left in a state that is difficult to recov= er from. When attempting to run the update again I can see that the /flash/active/im= age blob is present. burn_my_bmc opens the cleanup blob, commits it, and t= hen closes it but the state doesn't change. I don't have the cleanup-delete= option enabled but it doesn't look like that cleans up the state anyhow. Internally, it looks like I need to get to abortProcess() but to do that I = need to close the current session but I don't have a way to obtain the sess= ionID after the fact. Also the stale session doesn't seem to expire (as me= ntioned in the readme.md) and I can't find the support for that in the code= . Can you give me a pointer on the best known way to recover from this scenar= io without rebooting the BMC? --_000_bbd0955547ff46728528fd14d52fb04dSCLEXCHMB13phoenixcom_ Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable

When running burn_my_bmc, if I exit the program duri= ng image upload with ctrl-c, it seems that the bmc gets left in a state tha= t is difficult to recover from.

 

When attempting to run the update again I can see th= at the /flash/active/image blob is present.  burn_my_bmc opens the cle= anup blob, commits it, and then closes it but the state doesn’t chang= e. I don’t have the cleanup-delete option enabled but it doesn’t look like that cleans up the state anyhow.=

 

Internally, it looks like I need to get to abortProc= ess() but to do that I need to close the current session but I don’t = have a way to obtain the sessionID after the fact.  Also the stale ses= sion doesn’t seem to expire (as mentioned in the readme.md) and I can’t find the support for that in the code.

 

Can you give me a pointer on the best known way to r= ecover from this scenario without rebooting the BMC?

 

--_000_bbd0955547ff46728528fd14d52fb04dSCLEXCHMB13phoenixcom_--