Mock Version: 1.4.8 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/stolon.spec'], chrootPath='/var/lib/mock/701050-epel-7-x86_64-1515858311.631940/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '633c721d279e40d3aeec7e4bd0499154', '-D', '/var/lib/mock/701050-epel-7-x86_64-1515858311.631940/root', '-a', '--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;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/stolon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False warning: Could not canonicalize hostname: 633c721d279e40d3aeec7e4bd0499154 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/stolon-0.7.0-1.fec5140.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/stolon.spec'], chrootPath='/var/lib/mock/701050-epel-7-x86_64-1515858311.631940/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '74be4911779e49c1a95086e37676821f', '-D', '/var/lib/mock/701050-epel-7-x86_64-1515858311.631940/root', '-a', '--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;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/stolon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mE9JSU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stolon-fec51408a83e6909c51e62ff54127d89748148fc + /usr/bin/gzip -dc /builddir/build/SOURCES/fec51408a83e6909c51e62ff54127d89748148fc.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd stolon-fec51408a83e6909c51e62ff54127d89748148fc + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p /builddir/build/BUILD/go/src/github.com/sorintlab/stolon + cp -R CHANGELOG.md DCO LICENSE README.md build cmd common doc examples glide.lock glide.yaml licenses pkg scripts test tests vendor /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/. + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.I1238E + umask 022 + cd /builddir/build/BUILD + cd stolon-fec51408a83e6909c51e62ff54127d89748148fc + export GOPATH=/builddir/build/BUILD/go + GOPATH=/builddir/build/BUILD/go + cd /builddir/build/BUILD/go/src/github.com/sorintlab/stolon + bash -x build + set -e +++ dirname build ++ readlinkdashf . ++ [[ -d . ]] ++ cd . ++ pwd -P + BASEDIR=/builddir/build/BUILD/go/src/github.com/sorintlab/stolon + BINDIR=/builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin + '[' /builddir/build/BUILD/go/src/github.com/sorintlab/stolon '!=' /builddir/build/BUILD/go/src/github.com/sorintlab/stolon ']' + ORG_PATH=github.com/sorintlab + REPO_PATH=github.com/sorintlab/stolon + export GOPATH=/builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath + GOPATH=/builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath + rm -f /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath/src/github.com/sorintlab/stolon + mkdir -p /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath/src/github.com/sorintlab + ln -s /builddir/build/BUILD/go/src/github.com/sorintlab/stolon /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath/src/github.com/sorintlab/stolon + mkdir -p /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin + export GO15VENDOREXPERIMENT=1 + GO15VENDOREXPERIMENT=1 + use_go_install= ++ go env GOROOT + go_root_dir=/usr/lib/golang ++ go env GOHOSTOS + go_host_os=linux ++ go env GOHOSTARCH + go_host_arch=amd64 + cgodisabled_pkg_dir=/usr/lib/golang/pkg/linux_amd64_cgo + '[' -e /usr/lib/golang/pkg/linux_amd64_cgo ']' + '[' -w /usr/lib/golang/pkg ']' + '[' -z ']' ++ whoami + echo 'Cannot find/create a go stdlib created with cgo disabled for the go release installed at /usr/lib/golang since /usr/lib/golang/pkg is not writable by mockbuild' Cannot find/create a go stdlib created with cgo disabled for the go release installed at /usr/lib/golang since /usr/lib/golang/pkg is not writable by mockbuild The build will use "go build" instead of "go install". This is slower since every run will need to rebuild all the needed packages. + echo 'The build will use "go build" instead of "go install". This is slower since every run will need to rebuild all the needed packages.' ++ whoami To speed up the build you should make /usr/lib/golang/pkg writable for mockbuild for at least the first build or manually rebuild stdlib executing the command 'CGO_ENABLED=0 go install -a -installsuffix cgo std' from a user with write access to /usr/lib/golang/pkg + echo 'To speed up the build you should make /usr/lib/golang/pkg writable for mockbuild for at least the first build' + echo 'or manually rebuild stdlib executing the command '\''CGO_ENABLED=0 go install -a -installsuffix cgo std'\'' from a user with write access to /usr/lib/golang/pkg' + for cmd in sentinel proxy + CGO_ENABLED=0 + go build -a -installsuffix cgo -ldflags -s -o /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-sentinel github.com/sorintlab/stolon/cmd/sentinel + for cmd in sentinel proxy + CGO_ENABLED=0 + go build -a -installsuffix cgo -ldflags -s -o /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-proxy github.com/sorintlab/stolon/cmd/proxy + CGO_ENABLED=0 + go build -a -installsuffix cgo -ldflags -s -o /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolonctl github.com/sorintlab/stolon/cmd/stolonctl + go install github.com/sorintlab/stolon/cmd/keeper + rm -f /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-keeper + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/gopath/bin/keeper /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-keeper + declare -a DOCKERFILE_PATHS + DOCKERFILE_PATHS=(${BASEDIR}/examples/kubernetes/image/docker ${BASEDIR}/examples/docker) + for path in '"${DOCKERFILE_PATHS[@]}"' + rm -rf /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + mkdir -p /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-keeper /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-sentinel /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-proxy /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolonctl /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/kubernetes/image/docker/bin/ + for path in '"${DOCKERFILE_PATHS[@]}"' + rm -rf /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + mkdir -p /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-keeper /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-sentinel /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-proxy /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + for cmd in stolon-keeper stolon-sentinel stolon-proxy stolonctl + cp /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolonctl /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/examples/docker/bin/ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.cpxVBl + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 + cd stolon-fec51408a83e6909c51e62ff54127d89748148fc + install -d /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/bin + install -d /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//var/lib/stolon + install /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolonctl /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/bin + install /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-keeper /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/bin + install -D /builddir/build/SOURCES/stolon-keeper.service /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/lib/systemd/system/stolon-keeper.service + install -D /builddir/build/SOURCES/stolon-keeper.sysconfig /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/sysconfig/stolon-keeper + install -d /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/stolon/secrets + touch /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/stolon/secrets/pgpass.postgres /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/stolon/secrets/pgpass.replication + install /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-proxy /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/bin + install -D /builddir/build/SOURCES/stolon-proxy.service /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/lib/systemd/system/stolon-proxy.service + install -D /builddir/build/SOURCES/stolon-proxy.sysconfig /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/sysconfig/stolon-proxy + install /builddir/build/BUILD/go/src/github.com/sorintlab/stolon/bin/stolon-sentinel /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/bin + install -D /builddir/build/SOURCES/stolon-sentinel.service /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//usr/lib/systemd/system/stolon-sentinel.service + install -D /builddir/build/SOURCES/stolon-sentinel.sysconfig /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/sysconfig/stolon-sentinel + install -D /builddir/build/SOURCES/cluster-config.json /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64//etc/stolon/cluster-config.json + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: stolon-0.7.0-1.fec5140.el7.centos.x86_64 Provides: stolon = 0.7.0-1.fec5140.el7.centos stolon(x86-64) = 0.7.0-1.fec5140.el7.centos Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(postun): /bin/sh Processing files: stolon-keeper-0.7.0-1.fec5140.el7.centos.x86_64 Provides: config(stolon-keeper) = 0.7.0-1.fec5140.el7.centos stolon-keeper = 0.7.0-1.fec5140.el7.centos stolon-keeper(x86-64) = 0.7.0-1.fec5140.el7.centos Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): stolon = 0.7.0 Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) Processing files: stolon-proxy-0.7.0-1.fec5140.el7.centos.x86_64 Provides: config(stolon-proxy) = 0.7.0-1.fec5140.el7.centos stolon-proxy = 0.7.0-1.fec5140.el7.centos stolon-proxy(x86-64) = 0.7.0-1.fec5140.el7.centos Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): stolon = 0.7.0 Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Processing files: stolon-sentinel-0.7.0-1.fec5140.el7.centos.x86_64 Provides: config(stolon-sentinel) = 0.7.0-1.fec5140.el7.centos stolon-sentinel = 0.7.0-1.fec5140.el7.centos stolon-sentinel(x86-64) = 0.7.0-1.fec5140.el7.centos Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): stolon = 0.7.0 Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 Wrote: /builddir/build/RPMS/stolon-0.7.0-1.fec5140.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/stolon-keeper-0.7.0-1.fec5140.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/stolon-proxy-0.7.0-1.fec5140.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/stolon-sentinel-0.7.0-1.fec5140.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.cKrC4L + umask 022 + cd /builddir/build/BUILD + cd stolon-fec51408a83e6909c51e62ff54127d89748148fc + rm -rf /builddir/build/BUILD/go/src/github.com/sorintlab/stolon + rm -rf /builddir/build/BUILDROOT/stolon-0.7.0-1.fec5140.el7.centos.x86_64 + exit 0 Child return code was: 0