[Gluster-devel] Centos8/RHEL8 Nightly Build for glusterfs needs to be created

Niels de Vos ndevos at redhat.com
Tue Oct 13 15:32:02 UTC 2020


On Tue, Oct 13, 2020 at 07:23:56PM +0530, Rinku Kothiya wrote:
> Hi Team,
> 
> I have been trying to run the following command to fix the centos ci
> nightly builds but Its failing I am not sure what's wrong here.
> Any help would be appreciated.

For me, the following works:

    $ mkdir centos8-fluster
    $ cd centos8-gluster
    $ vagrant init centos/8
    $ vagrant up
    $ cat << EOF | vagrant ssh -c 'sudo sh'
    dnf -y update
    dnf -y install epel-release
    curl https://termbin.com/sc70j > nightly-build.sh
    export CENTOS_VERSION=8 CENTOS_ARCH=x86_64 GERRIT_BRANCH=master
    sh -x nightly-build.sh
    EOF

The https://termbin.com/sc70j is a slightly modified version of the
jobs/scripts/nightly-builds/nightly-builds.sh script from the
gluster/centosci repository. It has some adaptions for CentOS-8, which
will need to get merged in a cleaner way into the original script.

You mentioned over chat that this didn't work for you. So I am wondering
if others have problems with the above steps too.

The CI environment provides a clean CentOS system for every run. It is
installed with the minimal set of packages, similar to the Vagrant box.

HTH,
Niels


> 
> # /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
> .
> .
> .
> RPM build errors:
> error: Directory not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster
> error: File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__init__.*
> error: File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__pycache__
> error: File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/cliutils
>     Directory not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster
>     File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__init__.*
>     File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/__pycache__
>     File not found:
> /builddir/build/BUILDROOT/glusterfs-20201007.d1d7a6f-0.0.el8.x86_64/gluster/cliutils
> Finish: rpmbuild glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm
> Finish: build phase for glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm
> ERROR:
> Exception(/root/centosci/glusterfs/glusterfs-20201007.d1d7a6f-0.0.autobuild.src.rpm)
> Config(epel-8-x86_64) 6 minutes 19 seconds
> INFO: Results and/or logs in: /srv/gluster/nightly/master/8/x86_64
> INFO: Cleaning up build root ('cleanup_on_failure=True')
> Start: clean chroot
> Finish: clean chroot
> ERROR: Command failed:
>  # /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 "\033]0;<mock-chroot>\007"
> --setenv=PS1=<mock-chroot> \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
> 
> Regards
> Rinku
> 
> On Fri, Oct 9, 2020 at 12:22 PM Niels de Vos <ndevos at redhat.com> wrote:
> 
> > On Thu, Oct 08, 2020 at 04:21:50PM +0530, Rinku Kothiya wrote:
> > > Hi Niels,
> > >
> > > Yaniv wanted the glusterfs nightly builds generated to be tested for
> > > performance bottlenecks.
> > >
> > > I was working on the below project :
> > > https://github.com/gluster/gluster-performance-test-suite
> > >
> > > As of now we are running the above script on the glusterfs-nightly builds
> > > every night through a jenkins machine.
> > > Currently we have only been using Glusterfs-EL7 Nightly builds. But for
> > > testing the Gusfterfs-EL8 nightly build, I  need those nightly builds to
> > be
> > > generated.
> > > I raised a request with Deepshikha and she said that you have been
> > looking
> > > at it in the past.
> >
> > Please have a look at the Jenkins Jobs Builder scripts from
> > https://github.com/gluster/centosci/ that are used to run these jobs.
> > For the nightly GlusterFS builds, there are two jobs involved:
> >
> > 1. jobs/build-rpms.yml contains the different versions and architectures
> >    that the gluster_build-rpms job can build. It needs to be extended to
> >    support the `release-8` branch
> >
> > 2. jobs/nightly-rpm-builds.yml does the triggering of the 1st job. It
> >    passes parameters to the job, which then will do the builds. Som in
> >    order to add a build for GlusterFS-8, inlucde an new `trigger-build`
> >    section.
> >
> > 3. jobs/scripts/nightly-builds/nightly-builds.sh is the script that does
> >    the actual work. You should be able to execute it manually on a
> >    CentOS system (set the environment like the parameters from 2) and
> >    see if it works for GlusterFS-8. Ideally the script does not need any
> >    changes.
> >
> > You can send a PR with changes that you need, and once it is merged (by
> > Deepshika or one of the other active maintainers), it should
> > automatically get updated in the Jenkins environment, and the next day
> > there should be a new "Gluster 8 Nightly" repository.
> >
> > Adding gluster-devel to CC, as this information should enable others to
> > add or improve CI jobs too.
> >
> > Good luck!
> > Niels
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 858 bytes
Desc: not available
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20201013/c58ca26c/attachment.sig>


More information about the Gluster-devel mailing list