<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">stx/update/extras/scripts/patch_build.sh
--id <patch_name> --release <sw_release>
--reboot-required <Y|N> --summary <summary>
<where-to-install> <rpm></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><sw_release> = can be found under
/etc/build.info on your controller. probably one of ...<br>
</div>
<div class="moz-cite-prefix"> stx 7 = 22.06</div>
<div class="moz-cite-prefix"> stx 6 = 21.12</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><where-to-install> is some
combination of ...<br>
</div>
<div class="moz-cite-prefix"> --controller <rpm> New
package for controller<br>
--worker <rpm> New package for worker node<br>
--worker-lowlatency <rpm> New package for
worker-lowlatency node<br>
--storage <rpm> New package for storage node<br>
--controller-worker <rpm> New package for combined
node<br>
--controller-worker-lowlatency <rpm> New package for
lowlatency combined node<br>
--all-nodes <rpm> New package for all node types<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 2023-03-08 09:18, Bailey, Henry
Albert (Al) wrote:<br>
</div>
<blockquote type="cite" cite="mid:DM6PR11MB28418D478366305DDE277C93E2B49@DM6PR11MB2841.namprd11.prod.outlook.com">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:"\@MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}@font-face
{font-family:-apple-system;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I think if you have the rpm already
pre-built, you can probably bypass building StarlingX and
just try to run the patch-build command<o:p></o:p></p>
<p class="MsoNormal">You just need to make sure the tool can
find the rpm.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Someone else on this channel might have
info about the build problems and environment setup<o:p></o:p></p>
<p class="MsoNormal">Al<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> LiuYongfu
<a class="moz-txt-link-rfc2396E" href="mailto:114769003@qq.com"><114769003@qq.com></a> <br>
<b>Sent:</b> Wednesday, March 8, 2023 7:08 AM<br>
<b>To:</b> Bailey, Henry Albert (Al)
<a class="moz-txt-link-rfc2396E" href="mailto:Al.Bailey@windriver.com"><Al.Bailey@windriver.com></a>; starlingx-discuss
<a class="moz-txt-link-rfc2396E" href="mailto:starlingx-discuss@lists.starlingx.io"><starlingx-discuss@lists.starlingx.io></a><br>
<b>Subject:</b> Re<span style="font-family:"MS
Gothic"">:</span>RE: [Starlingx-discuss] how to
install my own rpm<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt
2.0pt">
<p class="MsoNormal" style="background:#FCFC03"><b><span style="color:black">CAUTION: This email comes from a non
Wind River email account!</span></b><span style="color:black"><br>
</span><span style="font-size:10.0pt;color:black">Do not
click links or open attachments unless you recognize the
sender and know the content is safe.</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">Hi</span><span style="font-size:10.5pt;font-family:"MS
Gothic";color:#2E3033">,</span><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">
thanks very much . so I need to make a pach and
install it . my first step is to build the starlingx
.when I build this. It has some problems as below:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">could
you please help me ? thanks very much.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><img style="width:17.5625in;height:10.5208in" id="_x0000_i1029" src="cid:part1.gG7Ej925.cQCSXtqI@windriver.com" class="" width="1686" height="1010"></span><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><o:p></o:p></span></p>
</div>
<div>
<div class="MsoNormal" style="margin-bottom:7.5pt;text-align:center" align="center">
<hr style="width:37.5pt" width="50" size="0" noshade="noshade" align="center">
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:7.5pt"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<table class="MsoNormalTable" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="width:30.0pt;padding:7.5pt 15.0pt 0in
0in" width="40" valign="top">
<div style="border:solid white 1.0pt;padding:0in
0in 0in 0in;border-radius:50%;box-shadow: 0 0
10px 0 rgba(127,152,178,0.14)">
<p class="MsoNormal" style="vertical-align:top"><span style="border:solid windowtext
1.0pt;padding:0in"><img style="width:1.0416in;height:1.0416in" id="Picture_x0020_3" src="cid:part2.cK0noNHE.Fy1tZaV2@windriver.com" alt="Image removed by sender." class="" width="100" height="100"></span><o:p></o:p></p>
</div>
</td>
<td style="padding:7.5pt 0in 6.0pt 7.5pt" valign="top">
<div>
<p class="MsoNormal" style="line-height:15.0pt"><span style="font-size:10.5pt;color:#33312E">LiuYongfu<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:9.0pt;color:#999896"><a class="moz-txt-link-abbreviated" href="mailto:114769003@qq.com">114769003@qq.com</a><o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<div>
<div>
<p style="line-height:22.5pt"><span style="font-size:9.0pt;color:#959DA6">Original<o:p></o:p></span></p>
</div>
<div>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">From:</span><span style="font-size:9.0pt;color:black">"Bailey, Henry
Albert (Al)"</span><span style="font-size:9.0pt;color:#959DA6"><
<a class="moz-txt-link-abbreviated" href="mailto:Al.Bailey@windriver.com">Al.Bailey@windriver.com</a> >;</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">Date:</span><span style="font-size:9.0pt;color:black">2023/2/18 5:05</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">To:</span><span style="font-size:9.0pt;color:black">"LiuYongfu"</span><span style="font-size:9.0pt;color:#959DA6"><
<a class="moz-txt-link-abbreviated" href="mailto:114769003@qq.com">114769003@qq.com</a> >;</span><span style="font-size:9.0pt;color:black">"starlingx-discuss"</span><span style="font-size:9.0pt;color:#959DA6"><
<a class="moz-txt-link-abbreviated" href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a> >;</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">Subject:</span><span style="font-size:9.0pt;color:black">RE:
[Starlingx-discuss] how to install my own rpm</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">With
StarlingX, the way to add an rpm to the platform is
through a patch.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Within
the StarlingX patching system it will install the rpm,
and will prevent it from being removed by a reboot.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">There
is a video from the Open Infrastructure Foundation
that shows an example of creating your own patch to
allow an rpm to be installed. It uses the
<a href="https://urldefense.com/v3/__http:/patch_build.sh__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FS32Fr3Wg$" moz-do-not-send="true">
patch_build.sh</a> command<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://urldefense.com/v3/__https:/www.youtube.com/watch?v=vwqhxpgaxXE__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FSRIDIU8M$" moz-do-not-send="true">https://www.youtube.com/watch?v=vwqhxpgaxXE</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">For
example, if I wanted to add an RPM for pyflame my
patch_build.sh syntax would look something like
this:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>#
Run this script from within $MY_WORKSPACE</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PATH=$MY_REPO/stx/update/extras/<a class="moz-txt-link-freetext" href="scripts:$PATH">scripts:$PATH</a></i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PATCH_ID=PYFLAME</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>DIR=std/rpmbuild/RPMS</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PYFLAME=pyflame-1.6.6-4.el7.tis.1.x86_64.rpm</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i> </i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i><a href="https://urldefense.com/v3/__http:/patch_build.sh__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FS32Fr3Wg$" moz-do-not-send="true">patch_build.sh</a> \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--id
${PATCH_ID} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--reboot-required=Y
\</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--summary
"New pyflame rpm " \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--desc
"Adds a new pyflame rpm "\</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller
${DIR}/${PYFLAME} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller-worker
${DIR}/${PYFLAME} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller-worker-lowlatency
${DIR}/${PYFLAME}</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Be
aware that in this example, I am ‘adding’ an rpm
rather than updating one, so I needed to include
special fields<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">(--controller
, --controller-worker ,
--controller-worker-lowlatency ) so that the platform
knows that the rpm belongs on controller and AIO hosts
(and in this example it will not install it on worker
or storage nodes)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The
video (and my example) assume you have a development
environment setup with your variables, etc.. already
defined. If that is not the case, you may need to
ensure you have the starlingx/update repo checked out
and make the appropriate changes to the commands.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Al<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b>
LiuYongfu <a class="moz-txt-link-rfc2396E" href="mailto:114769003@qq.com"><114769003@qq.com></a>
<br>
<b>Sent:</b> Saturday, February 11, 2023 5:52 AM<br>
<b>To:</b> starlingx-discuss
<a class="moz-txt-link-rfc2396E" href="mailto:starlingx-discuss@lists.starlingx.io"><starlingx-discuss@lists.starlingx.io></a><br>
<b>Subject:</b> [Starlingx-discuss] how to install
my own rpm<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt
2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FCFC03"><b><span style="color:black">CAUTION: This email comes
from a non Wind River email account!</span></b><span style="color:black"><br>
</span><span style="font-size:10.0pt;color:black">Do
not click links or open attachments unless you
recognize the sender and know the content is safe.</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">Brief Description<br>
-----------------</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">when I install my
private(own) rpm to the compute node. when the
node is restarted .my private rpm is deleted.<br>
so I want to know : are there some ways to
install my own rpm on compute nodes or is it
just a bug?</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">Steps to Reproduce<br>
------------------<br>
I installed my GPU rpm packages on the compute
node,and it worked right.</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">Expected Behavior<br>
------------------</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">the rpm packages
works correctly all the time.</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white"><span style="font-size:9.0pt;font-family:"Courier
New";color:#333333">Actual Behavior<br>
when reboot the compute nodes .my gpu rpm
packages are removed by the system.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
thanks very much.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
<br>
<br>
</span><o:p></o:p></p>
</div>
<div>
<table class="MsoNormalTable" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="width:30.0pt;padding:7.5pt 15.0pt
0in 0in" width="40" valign="top">
<div style="border:solid white
1.0pt;padding:0in 0in 0in
0in;border-radius:50%;box-shadow: 0 0
10px 0 rgba(127,152,178,0.14)">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:top"><span style="border:solid windowtext
1.0pt;padding:0in"><img style="width:1.0416in;height:1.0416in" id="Picture_x0020_1" src="cid:part2.cK0noNHE.Fy1tZaV2@windriver.com" class="" width="100" height="100" border="0"></span><o:p></o:p></p>
</div>
</td>
<td style="padding:7.5pt 0in 6.0pt 7.5pt" valign="top">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:15.0pt"><span style="font-size:10.5pt;color:#33312E">LiuYongfu</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:13.5pt"><span style="font-size:9.0pt;color:#999896"><a class="moz-txt-link-abbreviated" href="mailto:114769003@qq.com">114769003@qq.com</a></span><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Starlingx-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>