<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1112820369;
mso-list-type:hybrid;
mso-list-template-ids:1642239388 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Saju,<o:p></o:p></p>
<p class="MsoNormal">In order to drill down the cause of build-pkgs failure, clarifying a few things would let us help you further:<o:p></o:p></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1">First of all, have you *<b>successfully</b>* gone through the mirror setup procedures, and assured no packages were missing of downloading? Indeed, the mirror setup is nontrivial and
likely something might go wrong caused by network connectivity, timeout or even upstream repo unavailability. One way to check mirror completeness is to confirm all packages listed in “~/stx-tools/centos-mirror-tools/*.lst” are there after running downloading
scripts. Another way is to check if any packages are listed in *<b>missing</b>*.txt files (which means something wrong when downloading related packages).<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1">Regarding the build log, it would be helpful if you can attach the build log (such as: /localdisk/loadbuild/yourname/starlingx/build-std.log). With this, we can see the wholistic log
and capture some clues. BTW: you can search your log file, to see whether there are any pieces of “Success building” info with any rpm pkgs. If so, it is a good sign that at least your local repo “cgcs-centos-repo” was correctly made and parts of RPMs were
built out already.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1">Back to your build failure, you can actually enter into “/localdisk/loadbuild/starlingx/starlingx/std/results/starlingx-starlingx-tis-r5-pike-std/libvirt-python-4.7.0-1.tis.3/” and
there are many build logs in next level details. And “build.log” and “root.log” should the most important 2 files you like to look into what’s happening inside.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1">Last but not least, about the question “how to rebuild failed packages”. The answer is you couldn’t or don’t have to. If the build-pkgs ended up with failures, rebuilding won’t work,
until you fix the issues caused the build failures. In another word, *<b>IF</b>* build setup was done correctly in advance, the build would *<b>iterate</b>* for more than rounds automatically, and eventually ALL the packages should be built out.
<o:p></o:p></li></ol>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hope this kind of info give you a structural way to narrow down the build issues you are facing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Yong<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Saju M <sajuptpm@gmail.com><br>
<b>Date: </b>Friday, 16 November 2018 at 5:52 PM<br>
<b>To: </b>"starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io><br>
<b>Subject: </b>[Starlingx-discuss] ISO build Failing : Command "build-pkgs", How to rebuild failed packages<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><a name="_MailOriginalBody">Hi,<o:p></o:p></a></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">I am following the link
</span><a href="https://docs.starlingx.io/developer_guide/index.html#build-packages" target="_blank"><span style="mso-bookmark:_MailOriginalBody">https://docs.starlingx.io/developer_guide/index.html#build-packages</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">When I run "build-pkgs" and it returns list of "<b>Failed to build packages: ",
</b>I have attached the name of failed packages<b>.</b><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">I could not find
</span><a href="http://127.0.0.1:8088/localdisk/loadbuild/starlingx/starlingx/installer/rpmbuild/RPMS/repodata/repomd.xml" target="_blank"><span style="mso-bookmark:_MailOriginalBody">http://127.0.0.1:8088/localdisk/loadbuild/starlingx/starlingx/installer/rpmbuild/RPMS/repodata/repomd.xml</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody">
in my setup.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b>I am getting 2 types of build errors.
</b></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b>============ Build Error Type - 1 ===========</b></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">20:49:00 Finish: Outputting list of installed packages<br>
20:49:00 ERROR: Exception(/localdisk/loadbuild/starlingx/starlingx/std/rpmbuild/SRPMS/lldpd-0.9.0-0.tis.4.src.rpm) Config(starlingx-starlingx-tis-r5-pike-std/mock) 0 minutes 5 seconds<br>
20:49:00 INFO: Results and/or logs in: /localdisk/loadbuild/starlingx/starlingx/std/results/starlingx-starlingx-tis-r5-pike-std/lldpd-0.9.0-0.tis.4<br>
<b>20:49:00 ERROR: Command failed: <br>
20:49:00 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/lldpd.spec</b><br>
20:49:00 <br>
20:49:00 End build: /localdisk/loadbuild/starlingx/starlingx/std/rpmbuild/SRPMS/lldpd-0.9.0-0.tis.4.src.rpm<br>
20:49:00 Error building lldpd-0.9.0-0.tis.4.src.rpm.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b>============ Build Error Type - 2 ===========</b></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">20:41:07 Start: build setup for libvirt-python-4.7.0-1.tis.3.src.rpm<br>
20:41:07 ERROR: Exception(/localdisk/loadbuild/starlingx/starlingx/std/rpmbuild/SRPMS/libvirt-python-4.7.0-1.tis.3.src.rpm) Config(starlingx-starlingx-tis-r5-pike-std/mock) 0 minutes 4 seconds<br>
20:41:07 INFO: Results and/or logs in: /localdisk/loadbuild/starlingx/starlingx/std/results/starlingx-starlingx-tis-r5-pike-std/libvirt-python-4.7.0-1.tis.3<br>
<b>20:41:07 ERROR: Command failed: <br>
20:41:07 # /usr/bin/yum-builddep --installroot /localdisk/loadbuild/starlingx/starlingx/std/mock/root/ --releasever 7 /localdisk/loadbuild/starlingx/starlingx/std/mock/root//builddir/build/SRPMS/libvirt-python-4.7.0-1.tis.3.src.rpm</b><br>
20:41:07 Failed to set locale, defaulting to C<br>
<b>20:41:07 </b></span><a href="http://127.0.0.1:8088/localdisk/loadbuild/starlingx/starlingx/installer/rpmbuild/RPMS/repodata/repomd.xml" target="_blank"><span style="mso-bookmark:_MailOriginalBody"><b>http://127.0.0.1:8088/localdisk/loadbuild/starlingx/starlingx/installer/rpmbuild/RPMS/repodata/repomd.xml</b></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><b>:
[Errno 14] HTTP Error 404 - Not Found</b></span><span style="mso-bookmark:_MailOriginalBody"><br>
20:41:07 Trying other mirror.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b>============= Failed Packages ======================</b></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b>20:33:10 Failed to build packages: vm-topology-1.0-1.tis.src.rpm swtpm-0.1.0-2.tis.0.src.rpm qemu-kvm-ev-2.10.0-0.tis.0.src.rpm python-networking-sfc-5.0.0-1.tis.2.src.rpm python-networking-bgpvpn-7.0.0-0.tis.3.src.rpm
pxe-network-installer-1.0-27.tis.src.rpm platform-kickstarts-1.0.0-2.tis.src.rpm openvswitch-2.9.0-3.el7.tis.1.src.rpm openstack-neutron-11.0.0-1.tis.9.src.rpm lldpd-0.9.0-0.tis.4.src.rpm libvirt-python-4.7.0-1.tis.3.src.rpm libvirt-4.7.0-1.tis.23.src.rpm
libtpms-0.6.0-2.tis.0.src.rpm libfdt-1.4.4-0.tis.1.src.rpm ldapscripts-2.0.8-0.tis.2.src.rpm ixgbevf-kmod-4.3.5-0.tis.2.src.rpm ixgbe-kmod-5.3.7-0.tis.1.src.rpm i40evf-kmod-3.5.13-0.tis.1.src.rpm i40e-kmod-2.4.10-0.tis.1.src.rpm e1000e-kmod-3.4.1.1-0.tis.1.src.rpm
drbd-kernel-8.4.7-1.tis.4.src.rpm drbd-8.4.3-0.tis.6.src.rpm dpkg-1.18.24-0.tis.1.src.rpm cgcs-users-1.0-0.tis.2.src.rpm
</b></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>