<div dir="ltr">Hi Team, <div><br></div><div><div>I have been trying to run the following command to fix the centos ci nightly builds but Its failing I am not sure what&#39;s wrong here. <br></div><div>Any help would be appreciated. </div><div><br></div><div># /usr/bin/mock --root epel-8-x86_64 --with=gnfs --resultdir /srv/gluster/nightly/master/8/x86_64 --rebuild /root/centosci/glusterfs/glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm<br>.<br>.<br>.<br>RPM build errors:<br>error: Directory not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster<br>error: File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__init__.*<br>error: File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__pycache__<br>error: File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/cliutils<br>    Directory not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster<br>    File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__init__.*<br>    File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__pycache__<br>    File not found: /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/cliutils<br>Finish: rpmbuild glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm<br>Finish: build phase for glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm<br>ERROR: Exception(/root/centosci/glusterfs/glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm) Config(epel-8-x86_64) 6 minutes 19 seconds<br>INFO: Results and/or logs in: /srv/gluster/nightly/master/8/x86_64<br>INFO: Cleaning up build root (&#39;cleanup_on_failure=True&#39;)<br>Start: clean chroot<br>Finish: clean chroot<br>ERROR: Command failed: <br> # /usr/bin/systemd-nspawn -q -M e76a1e2f68cc4c88af4159fea2987ad1 -D /var/lib/mock/epel-8-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.kxdftj8r:/etc/resolv.conf --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf &quot;\033]0;&lt;mock-chroot&gt;\007&quot; --setenv=PS1=&lt;mock-chroot&gt; \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/glusterfs.spec<br></div></div><div><br></div><div>Regards</div><div>Rinku </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 12:22 PM Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Oct 08, 2020 at 04:21:50PM +0530, Rinku Kothiya wrote:<br>
&gt; Hi Niels,<br>
&gt; <br>
&gt; Yaniv wanted the glusterfs nightly builds generated to be tested for<br>
&gt; performance bottlenecks.<br>
&gt; <br>
&gt; I was working on the below project :<br>
&gt; <a href="https://github.com/gluster/gluster-performance-test-suite" rel="noreferrer" target="_blank">https://github.com/gluster/gluster-performance-test-suite</a><br>
&gt; <br>
&gt; As of now we are running the above script on the glusterfs-nightly builds<br>
&gt; every night through a jenkins machine.<br>
&gt; Currently we have only been using Glusterfs-EL7 Nightly builds. But for<br>
&gt; testing the Gusfterfs-EL8 nightly build, I  need those nightly builds to be<br>
&gt; generated.<br>
&gt; I raised a request with Deepshikha and she said that you have been looking<br>
&gt; at it in the past.<br>
<br>
Please have a look at the Jenkins Jobs Builder scripts from<br>
<a href="https://github.com/gluster/centosci/" rel="noreferrer" target="_blank">https://github.com/gluster/centosci/</a> that are used to run these jobs.<br>
For the nightly GlusterFS builds, there are two jobs involved:<br>
<br>
1. jobs/build-rpms.yml contains the different versions and architectures<br>
   that the gluster_build-rpms job can build. It needs to be extended to<br>
   support the `release-8` branch<br>
<br>
2. jobs/nightly-rpm-builds.yml does the triggering of the 1st job. It<br>
   passes parameters to the job, which then will do the builds. Som in<br>
   order to add a build for GlusterFS-8, inlucde an new `trigger-build`<br>
   section.<br>
<br>
3. jobs/scripts/nightly-builds/nightly-builds.sh is the script that does<br>
   the actual work. You should be able to execute it manually on a<br>
   CentOS system (set the environment like the parameters from 2) and<br>
   see if it works for GlusterFS-8. Ideally the script does not need any<br>
   changes.<br>
<br>
You can send a PR with changes that you need, and once it is merged (by<br>
Deepshika or one of the other active maintainers), it should<br>
automatically get updated in the Jenkins environment, and the next day<br>
there should be a new &quot;Gluster 8 Nightly&quot; repository.<br>
<br>
Adding gluster-devel to CC, as this information should enable others to<br>
add or improve CI jobs too.<br>
<br>
Good luck!<br>
Niels<br>
</blockquote></div>