[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.17] tools/oxenstored: Fix Oxenstored Live Update


  • To: Henry Wang <Henry.Wang@xxxxxxx>
  • From: Edwin Torok <edvin.torok@xxxxxxxxxx>
  • Date: Thu, 20 Oct 2022 16:56:55 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VFK7ujOBaZ8kb7KrzY1TRCkXR6h3FeT3MJVabsJSrAI=; b=OxE9o3zzK4cM4aKsv333ryE8QBgVVl+0PLydYkXcQqt20a8B8s1A5Afuap464ftX647E5cllrPlEGU3+MwK/zNJM+QQQi3Ot8S71pYv/OHipYg0ihdVyjw1ACo/+3+kc5aQWcpGL/X/4iYuHQ2Lnu5KeT1XUv5MXdSuJwSgG1OpxiKg5aLTlMAB5vtL6qApDGqpELKN+syCPlX3pTpyIHuZda2YZJ1sbP9ggvyIetK00NClVKW4h2XkYJuLrN9UmtuMLbsPMfoKngqKl9NFvy2JE59XssLtUkcg9CTDzv0lNw0Vy3T4xYGLj2FQrRUpVqwchokrXRetMI/OqcdKzzg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bSl/dYKBc09/KV/nSH0dlEVIGty5MteY+86NC10Z936UopbYOzFB/P1UmqHhpWJpY419yVhh1QZ4nIeU/AEJD7ijJwXZr5i0Gxk0YDggjIK1FAAjxVCAsUNfybrtWX/a44MXtDmUCzzTKt5kcC3H4KfT+ONSobJWR2KzSPXtl/tU7pC6URvcDiwQ4Dwpl/DpwwvGpDU/Y/AoNFkRnOzzht1UEu7iH0099ZCkO02DbN9cCZJdNj6xq158slW/VmaP4UWI2MhP/E4zeSBGkZY4tu5rAxq/mEMCVxMOzp2nCsrCcxwGuOOyVdc7s6hGmElYHwLhXGkTrQGUebzNaAnNUw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Rob Hoes <Rob.Hoes@xxxxxxxxxx>
  • Delivery-date: Thu, 20 Oct 2022 16:57:25 +0000
  • Ironport-data: A9a23:lzwjVq/MUbu5BOztM1EVDrUDo3+TJUtcMsCJ2f8bNWPcYEJGY0x3z 2IbD2uGbKqJZDH3fohwYN/jp08F756BndYyHAA4pCk8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOC6UIYoAwgpLSd8UiAtlBl/rOAwh49skLCRDhiE/ Nj/uKUzAnf8s9JPGj9Suv/rRC9H5qyo4mpA5ARmP5ingXeF/5UrJMNHTU2OByOQrrl8RoaSW +vFxbelyWLVlz9F5gSNy+uTnuUiG9Y+DCDW4pZkc/HKbitq/0Te5p0TJvsEAXq7vh3S9zxHJ HehgrTrIeshFvWkdO3wyHC0GQkmVUFN0OevzXRSLaV/ZqAJGpfh66wGMa04AWEX0r4pAG5e8 94DEh4IPgmppNjr2rPqR8A506zPLOGzVG8ekldJ6GiDSNMZG9XESaiM4sJE1jAtgMwIBezZe 8cSdTtoalLHfgFLPVAUTpk5mY9EhFGmK2Ee9A3T+/RxvzK7IA9ZidABNPLYdsKLQ4NJmVyfp UrN/njjAwFcP9uaodaA2iL21reRzXKrMG4UPJSj6ttnoGOr/W0OIRYPdlqcn8afj0HrDrqzL GRRoELCt5Ma1EGtVMi7YBS+r1aNpBtaUN1Ve8Uq5QfIxqfK7gKxAmkfUiUHeNEgrNUxRzEhy hmOhdyBLTBmrrC9U3+W8baQ6zSoNkAowXQqYCYFSU4A/IPlqYRq1BbXFI4/Suiyk8H/Hiz2z 3aSti8iir4PjMkNkaKm4VTAhDHqrZ/MJuIo2jjqsquexlsRTOaYi0aAsAGzASpoRGpBcmS8g Q==
  • Ironport-hdrordr: A9a23:j4WDIasb0Bi8BOB9Kyg9e9U87skC1YMji2hC6mlwRA09TyXGra 2TdaUgvyMc1gx7ZJh5o6H6BEGBKUmslqKceeEqTPqftXrdyRGVxeZZnMffKlzbamfDH4tmuZ uIHJIOb+EYYWIasS++2njBLz9C+qjJzEnLv5a5854Fd2gDBM9dBkVCe3+m+yZNNWt77O8CZf 6hD7181l+dkBosDviTNz0gZazuttfLnJXpbVotHBg88jSDijuu9frTDwWY9g12aUIP/Z4StU z+1yDp7KSqtP+2jjXG0XXI0phQkNz9jvNeGc23jNQPIDmEsHfpWG0hYczAgNkGmpDr1L8Yqq iJn/7mBbU115rlRBD2nfIq4Xin7N9h0Q669bbSuwqfnSWwfkNHNyMGv/MWTvKR0TtfgPhslK 1MxG6XrJxREFfJmzn8/cHBU1VwmlOzumdKq59bs5TOObFuF4O5gLZvi3+9Kq1wah7S+cQiCq 1jHcvc7PFZfReTaG3YpHBmxJipUm4oFhmLT0AesojNugIm10xR3g8d3ogSj30A/JUyR91N4P nFKL1hkPVLQtUNZaxwCe8dSY+8C3DLQxjLLGWOSG6XXJ0vKjbIsdr68b817OaldNgBy4Yzgo 3IVBdCuWs7ayvVeLmzNV1wg2XwqUmGLEfQI5tllulEU5XHNcrWGDzGTkwymM29pPhaCtHHWp +ISeBrP8M=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHY5HiAz+6eZQJ7aky5mf6JNm1Bia4XOrgAgABGQAA=
  • Thread-topic: [PATCH for-4.17] tools/oxenstored: Fix Oxenstored Live Update


> On 20 Oct 2022, at 13:45, Henry Wang <Henry.Wang@xxxxxxx> wrote:
> 
> Hi Andrew,
> 
>> -----Original Message-----
>> From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> Subject: [PATCH for-4.17] tools/oxenstored: Fix Oxenstored Live Update
>> 
>> tl;dr This hunk was part of the patch emailed to xen-devel, but was missing
>> from what ultimately got committed.
>> 
>> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fxen-&amp;data=05%7C01%7Cedvin.torok%40citrix.com%7Cfd3a03c987ce448875f808dab29903ee%7C335836de42ef43a2b145348c2ee9ca5b%7C0%7C0%7C638018667544851864%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=8AnK0Bhh9D%2B0KR75I0zeqwB8GB10JLjUtqkwTtprans%3D&amp;reserved=0
>> devel/4164cb728313c3b9fc38cf5e9ecb790ac93a9600.1610748224.git.edvin.t
>> orok@xxxxxxxxxx/
>> is the patch in question, but was part of a series that had threading issues.
>> I have a vague recollection that I sourced the commits from a local branch,
>> which clearly wasn't as up-to-date as I had thought.
>> 
>> Either way, it's my fault/mistake, and this hunk should have been part of
>> what
>> got comitted.
>> 
>> Fixes: 00c48f57ab36 ("tools/oxenstored: Start live update process")
>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> ---
>> CC: Christian Lindig <christian.lindig@xxxxxxxxxx>
>> CC: David Scott <dave@xxxxxxxxxx>
>> CC: Edwin Torok <edvin.torok@xxxxxxxxxx>
>> CC: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
>> CC: Henry Wang <Henry.Wang@xxxxxxx>
>> 
>> Found while reviewing the XenServer patchqueue.  This is low risk for 4.17
>> and
>> fixes a feature which we thought had been working since 4.15.
> 
> The commit message and above scissors line have described the situation
> quite clear, so I don't think there is any reason to ignore this patch.
> 
> Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>

Thanks.
Further testing has revealed another bug, patch here:
 
https://lore.kernel.org/xen-devel/12d90632bf881e96e0b6c256df193f00df187dc1.1666284745.git.edvin.torok@xxxxxxxxxx/T/#u

For convenience the commit is also available from git:
 
https://github.com/edwintorok/xen/commit/12d90632bf881e96e0b6c256df193f00df187dc1

With both of these patches a smoketest 'xenstore-control live-update' with a 
stopped toolstack works now.

Best regards,
--Edwin

> 
> Kind regards,
> Henry
> 
> 
>> ---
>> tools/ocaml/xenstored/xenstored.ml | 5 +++++
>> 1 file changed, 5 insertions(+)
>> 
>> diff --git a/tools/ocaml/xenstored/xenstored.ml
>> b/tools/ocaml/xenstored/xenstored.ml
>> index d44ae673c42a..fc90fcdeb5d6 100644
>> --- a/tools/ocaml/xenstored/xenstored.ml
>> +++ b/tools/ocaml/xenstored/xenstored.ml
>> @@ -352,6 +352,11 @@ let _ =
>>              rw_sock
>>      ) in
>> 
>> +    (* required for xenstore-control to detect availability of live-update 
>> *)
>> +    Store.mkdir store Perms.Connection.full_rights (Store.Path.of_string
>> "/tool");
>> +    Store.write store Perms.Connection.full_rights
>> +            (Store.Path.of_string "/tool/xenstored")
>> Sys.executable_name;
>> +
>>      Sys.set_signal Sys.sighup (Sys.Signal_handle sighup_handler);
>>      Sys.set_signal Sys.sigterm (Sys.Signal_handle (fun _ ->
>>              info "Received SIGTERM";
>> --
>> 2.11.0
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.