[Starlingx-discuss] Layer Build Testing Issue

Chen, Haochuan Z haochuan.z.chen at intel.com
Mon Nov 4 02:54:01 UTC 2019


Hi Saul

When you begin to build distro layer, before downloading mirror for distro layer building, you firstly should add a local repo

How to set up a local mirror in build container 
1, ensure build output of compile layer, add to lighttpd service
$ cd /www/root/htdocs/
$ ls localdisk/loadbuild/<your user name>/<your project name for compile layer>/

2, generate tis_pkg.lst in ls /localdisk/loadbuild/<your user name>/<your project name for compile layer>/, which should be access
$ cd /localdisk/loadbuild/<your user name>/<your project name for compile layer>/
$ ls std/rpmbuild/RPMS/  rt/rpmbuild/RPMS/  -l  | awk '/.*\.tis\..*/ {print $9}' > tis_pkg.lst

Build distro layer

1, sync code for distro layer
$ repo init -u https://opendev.org/starlingx/manifest.git -m distro.xml
$ repo sync

2, update these file, because you setup a local repo 
Stx-tool/centos-mirror-tools/config/centos/distro/yum.repos.d/StarlingX_cengn_compile_layer.repo
Update this line with your user name and project name for compile layer
baseurl=http://127.0.0.1:8088/localdisk/loadbuild/<your user name>/<compile layer project name>/std/rpmbuild/RPMS/

3, download mirror for distro layer
$ download_mirror.sh -n -g -l distro -c config/centos/distro/yum.conf.sample -S
 Copy download mirror file to mirror folder
$ generate-cgcs-centos-repo.sh --layer=distro  /import/mirrors/distro
$ populate_downloads.sh /import/mirrors/distro

4, Ensure compile built package, with tis named, in distro mirror
martin at martin-ecust:~/workspace/starlingx/workspace/localdisk/designer/martin/distro/cgcs-root/cgcs-centos-repo/Binary/x86_64$ ls *.tis.*
bash-4.2.46-31.el7.tis.4.x86_64.rpm            python-debug-2.7.5-76.el7.tis.4.x86_64.rpm      rpm-debuginfo-4.14.0-1.tis.1.x86_64.rpm
bash-debuginfo-4.2.46-31.el7.tis.4.x86_64.rpm  python-debuginfo-2.7.5-76.el7.tis.4.x86_64.rpm  rpm-devel-4.14.0-1.tis.1.x86_64.rpm
bash-doc-4.2.46-31.el7.tis.4.x86_64.rpm        python-devel-2.7.5-76.el7.tis.4.x86_64.rpm      rpm-libs-4.14.0-1.tis.1.x86_64.rpm
golang-1.12.10-3.tis.1.x86_64.rpm              python-libs-2.7.5-76.el7.tis.4.x86_64.rpm       rpm-plugin-systemd-inhibit-4.14.0-1.tis.1.x86_64.rpm
golang-bin-1.12.10-3.tis.1.x86_64.rpm          python-test-2.7.5-76.el7.tis.4.x86_64.rpm       rpm-python-4.14.0-1.tis.1.x86_64.rpm
golang-dep-0.5.0-0.tis.x86_64.rpm              python-tools-2.7.5-76.el7.tis.4.x86_64.rpm      rpm-sign-4.14.0-1.tis.1.x86_64.rpm
golang-race-1.12.10-3.tis.1.x86_64.rpm         rpm-4.14.0-1.tis.1.x86_64.rpm                   tkinter-2.7.5-76.el7.tis.4.x86_64.rpm
golang-shared-1.12.10-3.tis.1.x86_64.rpm       rpm-build-4.14.0-1.tis.1.x86_64.rpm
python-2.7.5-76.el7.tis.4.x86_64.rpm           rpm-build-libs-4.14.0-1.tis.1.x86_64.rpm

5, build pkgs for distro layer
$ build-pkgs

For develop process, we have to setup a local repo to emulate cengn mirror change, which is task 35961 and task 35962 for this story.
Also after all the patch merged for layer building. Scott and Penny should update cengn. And I currently comment setting in these file, request scott or Penney to update depending on their CENGA setting.

cgcs-root/build-tools/build_iso/centos_required_build_layer.cfg
stx-tools/centos-mirror-tools/config/centos/flock/yum.repos.d/StarlingX_cengn_distro_layer.repo
stx-tools/centos-mirror-tools/config/centos/flock/yum.repos.d/StarlingX_cengn_compile_layer.repo
stx-tools/centos-mirror-tools/config/centos/distro/yum.repos.d/StarlingX_cengn_compile_layer.repo

BR!

Martin, Chen
SSP, Software Engineer
021-61164330

-----Original Message-----
From: starlingx-discuss-request at lists.starlingx.io <starlingx-discuss-request at lists.starlingx.io> 
Sent: Friday, November 1, 2019 11:48 PM
To: starlingx-discuss at lists.starlingx.io
Subject: Starlingx-discuss Digest, Vol 18, Issue 26

Send Starlingx-discuss mailing list submissions to
	starlingx-discuss at lists.starlingx.io

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
or, via email, send a message with subject or body 'help' to
	starlingx-discuss-request at lists.starlingx.io

You can reach the person managing the list at
	starlingx-discuss-owner at lists.starlingx.io

When replying, please edit your Subject line so it is more specific than "Re: Contents of Starlingx-discuss digest..."


Today's Topics:

   1. Layer Build Testing Issue (Saul Wold)


----------------------------------------------------------------------

Message: 1
Date: Thu, 31 Oct 2019 16:05:45 -0700
From: Saul Wold <sgw at linux.intel.com>
To: "starlingx-discuss at lists.starlingx.io"
	<starlingx-discuss at lists.starlingx.io>
Subject: [Starlingx-discuss] Layer Build Testing Issue
Message-ID: <9685602e-c53f-8a99-1cbf-1d9d2b61c716 at linux.intel.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"


Hi Martin:

I am continuing to test the layer'ed build, I was able to build compile standalone, and then attempted to build distro in the same build area, but I seem to get a failure in kubernetes package build.

See the attached root.log.

Thanks
    Sau!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: root.log
Type: text/x-log
Size: 218642 bytes
Desc: not available
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191031/97a4982f/attachment.bin>

------------------------------

Subject: Digest Footer

_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


------------------------------

End of Starlingx-discuss Digest, Vol 18, Issue 26
*************************************************


More information about the Starlingx-discuss mailing list