Deploy issues on our Centos


#1

Build blues on 13.6 … We had similar problems with 13.3, but we weren’t yet using MPI and the linear algebra libraries, so we did without.
Now, however …
Our machine is

[quote]LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final[/quote]

Am I not using deploy correctly? Did I mess up other repos in the system when deploy "Cleaned up everything?"
As root:

[code][root@mas-nn scidb-13.6.0.6358]# deployment/deploy.sh prepare_chroot scidb localhost
Source path: /att/data01/gfekete/src/scidb-13.6.0.6358
Script common path: /att/data01/gfekete/src/scidb-13.6.0.6358/deployment/common
Build path: /att/data01/gfekete/src/scidb-13.6.0.6358
SciDB version: 13.6
Executing: prepare_chroot scidb localhost

Enter scidb’s password (only once):Prepare for build SciDB packages in chroot on localhost
Register SciDB 3rdparty repository on localhost
spawn ssh -o StrictHostKeyChecking=no root@localhost rm -rf /tmp/root/deployment && mkdir -p /tmp/root
… some random output from gov’t computers telling you to behave or else …
spawn scp -r -q -o StrictHostKeyChecking=no /att/data01/gfekete/src/scidb-13.6.0.6358/deployment/common root@localhost:/tmp/root/deployment
spawn ssh -o StrictHostKeyChecking=no root@localhost cd /tmp/root/deployment && ./register_3rdparty_scidb_repository.sh
name=SciDB 3rdparty repository
baseurl=http://downloads.paradigm4.com/centos6.3/3rdparty
gpgkey=http://downloads.paradigm4.com/key
gpgcheck=1
enabled=0
Loaded plugins: refresh-packagekit, security
Cleaning repos: NCCS_ATT base centosplus cloudera-cdh4 cloudera-impala
: cloudera-manager contrib epel extras linuxtech-release pgdg92
: puppetlabs-deps puppetlabs-products scidb updates
Cleaning up Everything
spawn ssh -o StrictHostKeyChecking=no root@localhost rm -rf /tmp/root/deployment

spawn ssh -o StrictHostKeyChecking=no root@localhost rm -rf /tmp/root/deployment && mkdir -p /tmp/root

spawn scp -r -q -o StrictHostKeyChecking=no /att/data01/gfekete/src/scidb-13.6.0.6358/deployment/common root@localhost:/tmp/root/deployment
spawn ssh -o StrictHostKeyChecking=no root@localhost cd /tmp/root/deployment && ./prepare_chroot.sh scidb

Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package gcc-4.4.7-3.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package rpm-build-4.8.0-32.el6.x86_64 already installed and latest version
Package python-argparse-1.2.1-2.el6.noarch already installed and latest version
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package git-svn-1.7.1-3.el6_4.1.noarch already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package mock.noarch 0:1.1.32-1.el6 will be installed
–> Processing Dependency: python-decoratortools for package: mock-1.1.32-1.el6.noarch
–> Processing Dependency: pigz for package: mock-1.1.32-1.el6.noarch
–> Processing Dependency: createrepo for package: mock-1.1.32-1.el6.noarch
–> Running transaction check
—> Package createrepo.noarch 0:0.9.9-17.el6 will be installed
–> Processing Dependency: python-deltarpm for package: createrepo-0.9.9-17.el6.noarch
—> Package pigz.x86_64 0:2.2.5-1.el6 will be installed
—> Package python-decoratortools.noarch 0:1.7-4.1.el6 will be installed
–> Running transaction check
—> Package python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed
–> Processing Dependency: deltarpm = 3.5-0.5.20090913git.el6 for package: python-deltarpm-3.5-0.5.20090913git.el6.x86_64
–> Running transaction check
—> Package deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size

Installing:
mock noarch 1.1.32-1.el6 epel 209 k
Installing for dependencies:
createrepo noarch 0.9.9-17.el6 base 94 k
deltarpm x86_64 3.5-0.5.20090913git.el6 base 71 k
pigz x86_64 2.2.5-1.el6 epel 41 k
python-decoratortools noarch 1.7-4.1.el6 base 27 k
python-deltarpm x86_64 3.5-0.5.20090913git.el6 base 27 k

Transaction Summary

Install 6 Package(s)

Total download size: 469 k
Installed size: 1.3 M
Downloading Packages:

Total 97 kB/s | 469 kB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pigz-2.2.5-1.el6.x86_64 1/6
Installing : deltarpm-3.5-0.5.20090913git.el6.x86_64 2/6
Installing : python-deltarpm-3.5-0.5.20090913git.el6.x86_64 3/6
Installing : createrepo-0.9.9-17.el6.noarch 4/6
Installing : python-decoratortools-1.7-4.1.el6.noarch 5/6
Installing : mock-1.1.32-1.el6.noarch 6/6
Verifying : createrepo-0.9.9-17.el6.noarch 1/6
Verifying : python-decoratortools-1.7-4.1.el6.noarch 2/6
Verifying : deltarpm-3.5-0.5.20090913git.el6.x86_64 3/6
Verifying : mock-1.1.32-1.el6.noarch 4/6
Verifying : python-deltarpm-3.5-0.5.20090913git.el6.x86_64 5/6
Verifying : pigz-2.2.5-1.el6.x86_64 6/6

Installed:
mock.noarch 0:1.1.32-1.el6

Dependency Installed:
createrepo.noarch 0:0.9.9-17.el6
deltarpm.x86_64 0:3.5-0.5.20090913git.el6
pigz.x86_64 0:2.2.5-1.el6
python-decoratortools.noarch 0:1.7-4.1.el6
python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6

spawn ssh -o StrictHostKeyChecking=no scidb@localhost rm -rf /tmp/scidb/deployment && mkdir -p /tmp/scidb
scidb@localhost’s password:
spawn scp -r -q -o StrictHostKeyChecking=no /att/data01/gfekete/src/scidb-13.6.0.6358/deployment/common scidb@localhost:/tmp/scidb/deployment
scidb@localhost’s password:
spawn scp -r -q -o StrictHostKeyChecking=no /att/data01/gfekete/src/scidb-13.6.0.6358/utils/chroot_build.py scidb@localhost:/tmp/scidb/deployment
scidb@localhost’s password:
spawn ssh -o StrictHostKeyChecking=no scidb@localhost cd /tmp/scidb/deployment && ./chroot_build.sh
scidb@localhost’s password:
Will use mock for chrooting. Checking environment…
Will init chroot for centos-6-x86_64
Initializing centos-6-x86_64
ERROR: Could not find required config file: /etc/mock/centos-6-x86_64.cfg
[/code]

It’s looking for /etc/most/centos-… is it supposed to be there?
All the files in /etc/mock begin with fedora or epel…

Just how much trouble am I in?

George


#2

George,

As far as I know, “mock” is a tool that builds RPM packages in a chroot environment. It is just something used to make RPM files. The build guys say that you might be having the wrong distribution of mock installed. The recommendation is to remove the standard and install the package that SciDB knows how to use - i.e.:

sudo yum remove mock
sudo yum install --disablerepo=epel --enablerepo=scidb mock

Let me know how this works.


#3

I had this same problem on Centos 6.4, here is what I did…

** Fix to mock problem not finding centos.cfg file…
Changed scidb-13.12.0.6872/deployment/common/prepare_chroot.sh
[color=#0000FF]function centos6 ()
{

yum install --enablerepo=scidb3rdparty -y gcc make rpm-build mock python-argparse git git-svn[/color]

[color=#008000]yum install -y --enablerepo=scidb3rdparty -y gcc make rpm-build python-argparse git git-svn
yum install -y --disablerepo=epel --enablerepo=scidb mock[/color]
[color=#0000FF]chroot_sudoers_mock
}[/color]