[Starlingx-discuss] Mount error when executing build-pkgs

Hu, Yong yong.hu at intel.com
Fri Jan 25 01:26:48 UTC 2019


There are a few new packages added as the build dependencies or sources.
In “stx-tools” git, you can see them by “$ git blame centos-mirror-tools/tarball-dl.lst”, in the tail of the output.
Most of them were added in “2019-01-xxx”, so if you miss those, you can either use the downloading script or manually (wget) to get the tarballs.
One more thing, you have to rename these tarballs with the specified names (indicated in tarball-dl.lst) accordingly.
As ususal, these tarballs need be stored in mirror “downloads” folder.


From: "xiongzhiwei at baicells.com" <xiongzhiwei at baicells.com>
Date: Thursday, 24 January 2019 at 11:58 PM
To: "Lin, Shuicheng" <shuicheng.lin at intel.com>, "Qi, Mingyuan" <mingyuan.qi at intel.com>, starlingx-discuss <starlingx-discuss at lists.starlingx.io>
Subject: Re: [Starlingx-discuss] Mount error when executing build-pkgs

Hi Shuicheng,
Yes, I had checked /localdisk/loadbuild/ubuntu/starlingx/std/results/ubuntu-starlingx-tis-r5-pike-std/registry-token-server-1.0.0-1.tis.1/build.log, found below informations:

+ cd registry-token-server-1.0.0
+ /usr/bin/pigz -dc /builddir/build/SOURCES/gorilla-mux-456bcfa82d672db7cae587c9b541463f65bc2718.tar.gz
+ /usr/bin/tar -xvvof -
drwxrwxr-x root/root         0 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/
-rw-rw-r-- root/root       292 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/.travis.yml
-rw-rw-r-- root/root      1476 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/LICENSE
-rw-rw-r-- root/root     11972 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/README.md
-rw-rw-r-- root/root      1399 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/bench_test.go
-rw-rw-r-- root/root       380 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/context_gorilla.go
-rw-rw-r-- root/root       868 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/context_gorilla_test.go
-rw-rw-r-- root/root       380 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/context_native.go
-rw-rw-r-- root/root       690 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/context_native_test.go
-rw-rw-r-- root/root      8528 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/doc.go
-rw-rw-r-- root/root     15842 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/mux.go
-rw-rw-r-- root/root     58658 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/mux_test.go
-rw-rw-r-- root/root     17516 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/old_test.go
-rw-rw-r-- root/root      8956 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/regexp.go
-rw-rw-r-- root/root     19752 2017-05-22 15:17 mux-456bcfa82d672db7cae587c9b541463f65bc2718/route.go
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mkdir -p _build/src/github.com/gorilla/
+ mv gorilla-mux _build/src/github.com/gorilla/mux
BUILDSTDERR: mv: cannot stat 'gorilla-mux': No such file or directory
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.fu9L2u (%prep)
RPM build errors:
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.fu9L2u (%prep)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 636, in do
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
Error: Command failed:
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/registry-token-server.spec


It seems there is no 'gorilla-mux' in gorilla-mux-456bcfa82d672db7cae587c9b541463f65bc2718.tar.gz, is this package correct?
I had added its download link in tarball-dl.lst as https://github.com/openstack/stx-tools/blob/master/centos-mirror-tools/tarball-dl.lst.

How can I fix it?

Thank you very much

BR
Tim Xiong




From: Lin, Shuicheng<mailto:shuicheng.lin at intel.com>
Date: 2019-01-23 09:37
To: xiongzhiwei at baicells.com<mailto:xiongzhiwei at baicells.com>; Qi, Mingyuan<mailto:mingyuan.qi at intel.com>; starlingx-discuss<mailto:starlingx-discuss at lists.starlingx.io>
Subject: RE: [Starlingx-discuss] Mount error when executing build-pkgs
Hi Tim,
Please check the “build.log” in below folder. You should get the failure info in it.
INFO: Results and/or logs in: /localdisk/loadbuild/ubuntu/starlingx/std/results/ubuntu-starlingx-tis-r5-pike-std/registry-token-server-1.0.0-1.tis.1


Best Regards
Shuicheng

From: xiongzhiwei at baicells.com [mailto:xiongzhiwei at baicells.com]
Sent: Wednesday, January 23, 2019 8:50 AM
To: Qi, Mingyuan <mingyuan.qi at intel.com>; starlingx-discuss <starlingx-discuss at lists.starlingx.io>
Subject: Re: [Starlingx-discuss] Mount error when executing build-pkgs


Hi Mingyuna,

After changed the nr_inode as your suggestion, I encounter a new issue as below, do you know how can I fix it?



00:43:41 Start: build phase for registry-token-server-1.0.0-1.tis.1.src.rpm
00:43:41 Start: build setup for registry-token-server-1.0.0-1.tis.1.src.rpm
00:43:41 Finish: build setup for registry-token-server-1.0.0-1.tis.1.src.rpm
00:43:41 Start: rpmbuild registry-token-server-1.0.0-1.tis.1.src.rpm
00:43:41 Start: Outputting list of installed packages
00:43:41 Finish: Outputting list of installed packages
00:43:41 ERROR: Exception(/localdisk/loadbuild/ubuntu/starlingx/std/rpmbuild/SRPMS/registry-token-server-1.0.0-1.tis.1.src.rpm) Config(mock/b0) 0 minutes 7 seconds
00:43:41 INFO: Results and/or logs in: /localdisk/loadbuild/ubuntu/starlingx/std/results/ubuntu-starlingx-tis-r5-pike-std/registry-token-server-1.0.0-1.tis.1
00:43:41 ERROR: Command failed:
00:43:41  # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/registry-token-server.spec
00:43:41
00:43:42 End build on 'b0': /localdisk/loadbuild/ubuntu/starlingx/std/rpmbuild/SRPMS/registry-token-server-1.0.0-1.tis.1.src.rpm
00:43:42 Error building registry-token-server-1.0.0-1.tis.1.src.rpm on 'b0'.
00:43:42 Will try to build again (if some other package will succeed).
00:43:42 ===== iteration 1 complete =====




Thank you very much.



Tim Xiong


From: Qi, Mingyuan<mailto:mingyuan.qi at intel.com>
Date: 2019-01-22 23:41
To: xiongzhiwei at baicells.com<mailto:xiongzhiwei at baicells.com>; starlingx-discuss<mailto:starlingx-discuss at lists.starlingx.io>
Subject: RE: [Starlingx-discuss] Mount error when executing build-pkgs
Hi Tim,

It’s nr_inode=0 issue, please try below cmd in container and build again:
sudo sed -i 's/nr_inodes=0/nr_inodes=100k/g' /usr/lib/python2.7/site-packages/mockbuild/plugins/tmpfs.py

Mingyuan

From: xiongzhiwei at baicells.com<mailto:xiongzhiwei at baicells.com> [mailto:xiongzhiwei at baicells.com]
Sent: Tuesday, January 22, 2019 18:32
To: starlingx-discuss <starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>>
Subject: [Starlingx-discuss] Mount error when executing build-pkgs

Hi all,

When I execute the "build-pkgs" in container, below errors printed:

06:22:54 mock_update_or_init: in
06:22:55 b1: mock_update_or_init_cfg: /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b1.cfg
06:22:55 b1: Updating the mock environment
06:22:55 b1: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b1.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b1: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b1.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b1: INFO: mock.py version 1.4.13 starting (python version = 2.7.5)...
06:22:55 b1: Start: init plugins
06:22:55 b1: INFO: tmpfs initialized
06:22:55 b1: INFO: selinux disabled
06:22:55 b1: Finish: init plugins
06:22:55 b1: Start: run
06:22:55 b1: Start: chroot init
06:22:55 b1: INFO: mounting tmpfs at /localdisk/loadbuild/ubuntu/starlingx/std/mock/b1/root.
06:22:55 b1: ERROR: Command failed:
06:22:55 b1:  # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=11g mock_chroot_tmpfs /localdisk/loadbuild/ubuntu/starlingx/std/mock/b1/root
06:22:55 b1:
06:22:55 b2: mock_update_or_init_cfg: /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b2.cfg
06:22:55 b2: Updating the mock environment
06:22:55 b2: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b2.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b2: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b2.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b2: INFO: mock.py version 1.4.13 starting (python version = 2.7.5)...
06:22:55 b2: Start: init plugins
06:22:55 b2: INFO: tmpfs initialized
06:22:55 b2: INFO: selinux disabled
06:22:55 b2: Finish: init plugins
06:22:55 b2: Start: run
06:22:55 b2: Start: chroot init
06:22:55 b2: INFO: mounting tmpfs at /localdisk/loadbuild/ubuntu/starlingx/std/mock/b2/root.
06:22:55 b2: ERROR: Command failed:
06:22:55 b2:  # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=11g mock_chroot_tmpfs /localdisk/loadbuild/ubuntu/starlingx/std/mock/b2/root
06:22:55 b2:
06:22:55 b3: mock_update_or_init_cfg: /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b3.cfg
06:22:55 b3: Updating the mock environment
06:22:55 b3: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b3.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b3: /usr/bin/mock -r /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std/ubuntu-starlingx-tis-r5-pike-std.b3.cfg --configdir /localdisk/loadbuild/ubuntu/starlingx/std/configs/ubuntu-starlingx-tis-r5-pike-std --update
06:22:55 b3: INFO: mock.py version 1.4.13 starting (python version = 2.7.5)...
06:22:55 b3: Start: init plugins
06:22:55 b3: INFO: tmpfs initialized
06:22:55 b3: INFO: selinux disabled
06:22:55 b3: Finish: init plugins
06:22:55 b3: Start: run
06:22:55 b3: Start: chroot init
06:22:55 b3: INFO: mounting tmpfs at /localdisk/loadbuild/ubuntu/starlingx/std/mock/b3/root.
06:22:55 b3: ERROR: Command failed:
06:22:55 b3:  # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=11g mock_chroot_tmpfs /localdisk/loadbuild/ubuntu/starlingx/std/mock/b3/root

The full log attached.

Who can help me to fix it? thanks

BR
Tim Xiong


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190125/800076d9/attachment-0001.html>


More information about the Starlingx-discuss mailing list