<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I'm not observing this.  Perhaps a
      change in the @buildsys-build package group on your system.<br>
      <br>
      More inline below ...<br>
      <br>
      On 18-06-29 10:17 AM, Arce Moreno, Abraham wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:EB6706F7B12C4A4A8FB342855D7C5DC48C76A757@FMSMSX119.amr.corp.intel.com">
      <pre wrap="">This is the result of a daily build exercise from zero as part of our StarlingX/Developer Guide creation:
    <a class="moz-txt-link-freetext" href="https://wiki.openstack.org/wiki/StarlingX/Developer_Guide">https://wiki.openstack.org/wiki/StarlingX/Developer_Guide</a>

One of the things to debug failures during build-pkgs is to find out the failed packages, 
a "fail" file is created under each package directory:

    $ find $MY_WORKSPACE/std/results/ -name fail

Now we choose one packages from our failing list e.g. .../shim-signed-12-1.tis.2/fail

We want to verify the specific build failure for that package but its build.log shows only the Mock Version:

    $ cat $MY_WORKSPACE/std/results/aarcemor-starlingx-tis-r5-pike-std/build-info-1.0-3.tis/build.log
    Mock Version: 1.3.4

build-srpm-parallel was successful, we are in build-rpms-parallel stage. One error is common to all packages:

    13:37:39 ERROR: Could not find useradd in chroot, maybe the install failed?

And this is reflected also as our exit error when we try to enter the mock shell:

    $ mock -r $MY_BUILD_CFG --shell</pre>
    </blockquote>
    [SL] If you are using parallel build, please use the b0 config under
    the configs directory ... e.g.<br>
    <pre wrap="">
export MY_BUILD_ENVIRONMENT=$USER-$PROJECT-$SRC_BUILD_ENVIRONMENT
export MY_DEBUG_BUILD_CFG_STD=$MY_WORKSPACE/std/configs/${MY_BUILD_ENVIRONMENT}-std/${MY_BUILD_ENVIRONMENT}-std.b0.cfg
mock -r $MY_DEBUG_BUILD_CFG_STD --shell


</pre>
    If you find that shadow-utils is still missing, I'd add it to ...<br>
    <br>
    $MY_REPO/build-tools/modify-build-cfg<br>
    <br>
    <pre>...
grep -q "config_opts\['chroot_setup_cmd'\] = 'install @buildsys-build pigz lbzip2 yum <font color="#cc0000">shadow-utils</font>'" $FILE || \
    echo "config_opts['chroot_setup_cmd'] = 'install @buildsys-build pigz lbzip2 yum <font color="#cc0000">shadow-utils</font>'" >> $FILE
...
</pre>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:EB6706F7B12C4A4A8FB342855D7C5DC48C76A757@FMSMSX119.amr.corp.intel.com">
      <pre wrap="">
    ...
    Installed: ...
    Dependency Installed: ...
    ...
    Complete!
    Finish: yum install
    ERROR: Could not find useradd in chroot, maybe the install failed?

Then we look for that package, and it is part of shadow-utils

    $ sudo yum whatprovides \*useradd
    shadow-utils-4.1.5.1-24.el7.x86_64
    $ sudo yum install shadow-utils

We look at the content from our mock configuration, the shadow-utils is there:

    $ echo $MY_BUILD_CFG
    /localdisk/loadbuild/aarcemor/starlingx/std/configs/aarcemor-starlingx-tis-r5-pike-std/aarcemor-starlingx-tis-r5-pike-std.cfg
    $ vi $MY_BUILD_CFG
    config_opts['yum_install_command'] = 'install yum yum-utils shadow-utils distribution-gpg-keys'

Looking more into the mock environment, we see no content under /var/lib/mock/.
    
Any help is highly appreciated to debug further.

_______________________________________________
Starlingx-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a>
<a class="moz-txt-link-freetext" href="http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss">http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>