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

xiongzhiwei at baicells.com xiongzhiwei at baicells.com
Wed Jan 23 09:03:37 UTC 2019


Hi Shuicheng and Mingyuan,

 Indeed, this gorilla-mux-456bcfa82d672db7cae587c9b541463f65bc2718.tar.gz was downloaded successfully with download_mirror.sh and copy to correct mirror directory. but this exception is still reported.

[ubuntu at 0270dda4c544 cgcs-root]$ ls stx/downloads/
dep-v0.5.0.tar.gz                                                        integrity                                              MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64.tgz
docker-distribution-48294d928ced5dd9b378f7fd7c6f5da3ff3f2c89.tar.gz      integrity-kmod-e6aef069.tar.gz                         MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64.tgz
docker-libtrust-fa567046d9b14f6aa788882a950d69651d230b21.tar.gz          ixgbe-5.3.7.tar.gz                                     openstack-helm-9d72fe1a501bc609a875eebf7b6274e18600ed70.tar.gz
dpkg_1.18.24.tar.xz                                                      ixgbevf-4.3.5.tar.gz                                   openstack-helm-infra-5d356f9265b337b75f605dee839faa8cd0ed3ab2.tar.gz
drbd-8.4.11-1.tar.gz                                                     keycodemapdb-16e5b07.tar.gz                            puppet
drbd-8.4.3.tar.gz                                                        kubernetes-contrib-v1.12.1.tar.gz                      python-cephclient-v0.1.0.5.tar.gz
dtc-1.4.4.tar.gz                                                         kubernetes-v1.12.1.tar.gz                              python-setuptools-v38.5.1.tar.gz
e1000e-3.4.2.1.tar.gz                                                    kvm-unit-tests.git-4ea7633.tar.bz2                     python-smartpm-1.4.1.tar.gz
gnocchi-4.2.5.tar.gz                                                     ldapscripts-2.0.8.tgz                                  qat1.7.upstream.l.1.0.3-42.tar.gz
gnocchiclient-7.0.1.tar.gz                                               libibverbs-41mlnx1-OFED.4.2.1.0.6.42120.src.rpm        rdma-core-43mlnx1-1.43101.src.rpm
gnulib-ffc927e.tar.gz                                                    libibverbs-41mlnx1-OFED.4.3.0.1.8.43101.src.rpm        rdma-core-43mlnx1-1.43302.src.rpm
gophercloud-gophercloud-aa00757ee3ab58e53520b6cb910ca0543116400a.tar.gz  libibverbs-41mlnx1-OFED.4.3.2.1.6.43302.src.rpm        requests-toolbelt-0.5.1.tar.gz
gorilla-context-08b5f424b9271eedf6f9f0ce86cb9396ed337a42.tar.gz          libtpms-0.6.0-4f0d59d.tar.gz                           rpm-4.14.0.tar.bz2
gorilla-mux-456bcfa82d672db7cae587c9b541463f65bc2718.tar.gz              lldpd-0.9.0.tar.gz                                     Sirupsen-logrus-55eb11d21d2a31a3cc93838241d04800f52e823d.tar.gz
helm-v2.12.1-linux-amd64.tar.gz                                          mariadb-10.1.28.tar.gz                                 spectre-meltdown-checker-0.37+-5cc77741.tar.gz
i40e-2.4.10.tar.gz                                                       mlnx-ofa_kernel-4.3-OFED.4.3.1.0.1.1.g8509e41.src.rpm  swtpm-0.1.0-253eac5.tar.gz
i40evf-3.5.13.tar.gz                                                     mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.src.rpm  tpm-kmod-e6aef069.tar.gz
ibsh-0.3e.tar.gz                                                         MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64.tgz         tss2-930.tar.gz

When I rename it to gorilla-mux.tar.gz, the exception " find: ‘/import/mirrors/CentOS/pike/downloads/gorilla-mux-456bcfa82d672db7cae587c9b541463f65bc2718.tar.gz’: No such file or directory"  printed.

Thanks

BR
Tim Xiong
 
From: Lin, Shuicheng
Date: 2019-01-23 16:14
To: xiongzhiwei at baicells.com; Qi, Mingyuan; starlingx-discuss
Subject: RE: RE: [Starlingx-discuss] Mount error when executing build-pkgs
Hi Tim,
Please use “dl_tarball.sh” to download this file.
You could modify the “tarball-dl.lst” to keep the line for this package only, then run “dl_tarball.sh” to get it.
Then copy it to cgcs-root/stx/download folder.
 
The issue you have is the folder name is “mux-456bcfa82d672db7cae587c9b541463f65bc2718/”, while for correct case it should be “gorilla-mux”.
 
 
Best Regards
Shuicheng
 
From: xiongzhiwei at baicells.com [mailto:xiongzhiwei at baicells.com] 
Sent: Wednesday, January 23, 2019 3:20 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: 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
Date: 2019-01-23 09:37
To: xiongzhiwei at baicells.com; Qi, Mingyuan; starlingx-discuss
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
Date: 2019-01-22 23:41
To: xiongzhiwei at baicells.com; starlingx-discuss
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] 
Sent: Tuesday, January 22, 2019 18:32
To: starlingx-discuss <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/20190123/c5284a22/attachment-0001.html>


More information about the Starlingx-discuss mailing list