<div><br></div><div><font __editorwarp__="1" style="display: inline; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0); font-weight: 400; font-style: normal;">Yes, building the rpm of the starlingx dashboard is a necessary step for my build-iso.</font></div><div><font __editorwarp__="1" style="display: inline; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0); font-weight: 400; font-style: normal;"><br></font></div><div><includetail><div>Maybe Saul can respond to the question that python builds allow several versions of components.</div><div><br></div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Penney, Don"<Don.Penney@windriver.com>;</div><div><b>Date: </b> Wed, Mar 25, 2020 10:11 PM</div><div><b>To: </b> "何义鹏"<yipeng.he@jitstack.com>; "Saul Wold(sgw@linux.intel.com)"<sgw@linux.intel.com>; <wbr></div><div><b>Cc: </b> "'starlingx-discuss@lists.starlingx.io'(starlingx-discuss@lists.starlingx.io)"<starlingx-discuss@lists.starlingx.io>; <wbr></div><div><b>Subject: </b> RE: Re:RE: [Starlingx-discuss] enable pbr version</div></div><div> </div><div style="position:relative;"><div id="tmpcontent_res"></div>



<style></style><!--[endif]----><!--[endif]---->


<div class="WordSection1">
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">Please keep starlingx-discuss on the receiver list.<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">You had indicated build-iso was failing, but the build.log you provided appears to be the RPM build log for starlingx-dashboard.<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">Processing files: starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.noarch<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">error: File not found: /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64/usr/lib/python2.7/site-packages/starlingx_dashboard-2.9999.9999.rc1.dev23*.egg-info<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">RPM build errors:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">    File not found: /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64/usr/lib/python2.7/site-packages/starlingx_dashboard-2.9999.9999.rc1.dev23*.egg-info<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">Child return code was: 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">EXCEPTION: [Error()]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">    result = func(*args, **kw)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 746, in do_with_status<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">mockbuild.exception.Error: Command failed:
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; "> # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/starlingx-dashboard.spec<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">Looking through the build.log, I see the following:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">Copying starlingx_dashboard.egg-info to build/bdist.linux-x86_64/wheel/starlingx_dashboard-2.9999.9999rc1.dev23-py2.7.egg-info<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">So in the build, it’s creating the egg with the version set to 2.9999.9999rc1.dev23, while the %files is expecting it to be 2.9999.9999.rc1.dev23.<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">Looking further through the build.log, there’s the following:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">+ /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">/usr/lib/python2.7/site-packages/setuptools/dist.py:355: UserWarning: Normalizing '2.9999.9999.rc1.dev23' to '2.9999.9999rc1.dev23'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">  normalized_version,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style=" font-size:11.0pt ; ; ; ; ">running install<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">Maybe the python build only allows 4 version components?<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style=" font-size:10.0pt ; ; ; ; ">From:</span></b><span style=" font-size:10.0pt ; ; ; ; ">
</span><span style=" font-size:10.0pt ; ; ; ; ">何</span><span style=" font-size:10.0pt ; ; ; ; ">义鹏</span><span style=" font-size:10.0pt ; ; ; ; "> [mailto:yipeng.he@jitstack.com]
<br>
<b>Sent:</b> Tuesday, March 24, 2020 9:59 PM<br>
<b>To:</b> Penney, Don<br>
<b>Subject:</b> Re:RE: [Starlingx-discuss] enable pbr version<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Saul,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style=" font-size:10.5pt ; ; ; ;;color:black ">I added the error log to the attachment. Do you need other files for analysis?</span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style=" font-size:10.5pt ; ; ; ;;color:black ">Thank you for your help.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">   yipeng.he!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style=" font-size:9.0pt ; ; ; ;;color:black ">------------------ Original ------------------<o:p></o:p></span></p>
</div>
<div>
<div id="menu_sender">
<p class="MsoNormal" style="background:#EFEFEF"><b><span style="font-size:9.0pt;color:black">From:
</span></b><span style="font-size:9.0pt;color:black"> "Penney, Don"<Don.Penney@windriver.com>;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span style="font-size:9.0pt;color:black">Date:
</span></b><span style="font-size:9.0pt;color:black"> Wed, Mar 25, 2020 04:24 AM<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span style="font-size:9.0pt;color:black">To:
</span></b><span style="font-size:9.0pt;color:black"> "Saul Wold"<sgw@linux.intel.com>; "</span><span style=" font-size:9.0pt ; ;;color:black ">何</span><span style="font-size:9.0pt;font-family:MingLiU;color:black">义鹏</span><span style="font-size:9.0pt;color:black">"<yipeng.he@jitstack.com>;
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span style="font-size:9.0pt;color:black">Cc:
</span></b><span style="font-size:9.0pt;color:black"> "</span><span style=" font-size:9.0pt ; ;;color:black ">桂来</span><span style="font-size:9.0pt;font-family:MingLiU;color:black">军</span><span style="font-size:9.0pt;color:black">"<helen.gui@jitstack.com>;
 "</span><span style="font-size:9.0pt;font-family:MingLiU;color:black">杨永金</span><span style="font-size:9.0pt;color:black">"<wesley.yang@jitstack.com>; "</span><span style=" font-size:9.0pt ; ;;color:black ">曹明</span><span style="font-size:9.0pt;font-family:MingLiU;color:black">晓</span><span style="font-size:9.0pt;color:black">"<cherish.cao@jitstack.com>;
 "starlingx-discuss"<starlingx-discuss@lists.starlingx.io>; <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span style="font-size:9.0pt;color:black">Subject:
</span></b><span style="font-size:9.0pt;color:black"> RE: [Starlingx-discuss] enable pbr version<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Hi Yipeng,<br>
<br>
Can you provide more info? What was the error you saw from build-iso?<br>
<br>
<br>
-----Original Message-----<br>
From: Saul Wold [mailto:sgw@linux.intel.com] <br>
Sent: Monday, March 23, 2020 6:45 PM<br>
To: </span><span style="  ;;color:black ">何</span><span style="font-family:MingLiU;color:black">义鹏</span><span style="color:black"><br>
Cc: </span><span style="  ;;color:black ">桂来</span><span style="font-family:MingLiU;color:black">军</span><span style="color:black">;
</span><span style="font-family:MingLiU;color:black">杨永金</span><span style="color:black">;
</span><span style="  ;;color:black ">曹明</span><span style="font-family:MingLiU;color:black">晓</span><span style="color:black">; starlingx-discuss<br>
Subject: Re: [Starlingx-discuss] enable pbr version<br>
<br>
<br>
Hi Yipeng,<br>
<br>
I was out last week on vacation, so I am catching up now.<br>
<br>
I think you would have to investigate build-iso and associated scripts <br>
and tools to see if there is an awk, sed or some other command that is <br>
not parsing the extended version.  I have not investigated this further, <br>
that's my initial assessment.<br>
<br>
Can you be more specific about what the error is or provide a log file <br>
of the build-iso process?<br>
<br>
Thanks for working on this project.<br>
<br>
  Sau!<br>
<br>
<br>
<br>
On 3/19/20 12:21 AM, </span><span style="  ;;color:black ">何</span><span style="font-family:MingLiU;color:black">义鹏</span><span style="color:black"> wrote:<br>
> Hello Saul<br>
> <br>
> I'm Yipeng He from JITStack, and I'm taking over the tasks of PBR.<br>
> I encountered the following issue when trying to build iso:<br>
> It fails when the suffix of the version generated by the PBR tool ended <br>
> with number, for instance the building fails if the version id is <br>
> 2.999.9999.rc1.dev23,<br>
> and when I replaced it with 2.999.9999.rc1.dev, the ISO building was <br>
> successful.<br>
> I don't knwo why this happens, could please support and advice the <br>
> solution for this issue.<br>
> <br>
> <br>
> Yipeng.He<br>
> <br>
> _______________________________________________<br>
> Starlingx-discuss mailing list<br>
> Starlingx-discuss@lists.starlingx.io<br>
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss<br>
> <br>
<br>
_______________________________________________<br>
Starlingx-discuss mailing list<br>
Starlingx-discuss@lists.starlingx.io<br>
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss<o:p></o:p></span></p>
</div>
</div>
</div>
</div>


</div></div><!--<![endif]--></includetail></div>