calamari icon indicating copy to clipboard operation
calamari copied to clipboard

Unable to build Calamari Server on Centos 7

Open nagarashish opened this issue 8 years ago • 4 comments

I changed box name to boxcutter/centos72.

Following is the status of my vagrant VM:

calamari_server_build_vm

Getting Following Error:

[WARNING ] /usr/lib/python2.7/site-packages/salt/states/cmd.py:808: DeprecationW arning: The legacy user/group arguments are deprecated. Replace them with runas. These arguments will be removed in Salt Oxygen.

[ERROR ] Command './build-rpm.sh' failed with return code: 1 [ERROR ] stdout: target: dist making dist tarball in ../calamari-server_1.5.2.tar.gz tar file made in ../calamari-server_1.5.2.tar.gz [ERROR ] stderr: 8159 blocks cp: cannot stat 'calamari/calamari.spec': No such file or directory error: failed to stat /home/vagrant/rpmbuild/SPECS/calamari.spec: No such file o r directory [ERROR ] retcode: 1 [ERROR ] {'pid': 7627, 'retcode': 1, 'stderr': "8159 blocks\ncp: cannot stat ' calamari/calamari.spec': No such file or directory\nerror: failed to stat /home/ vagrant/rpmbuild/SPECS/calamari.spec: No such file or directory", 'stdout': 'tar get: dist\nmaking dist tarball in ../calamari-server_1.5.2.tar.gz\ntar file made in ../calamari-server_1.5.2.tar.gz'} [ERROR ] Command 'cp calamari/repobuild/calamari-repo-.tar.gz /git' failed wi th return code: 1 [ERROR ] stderr: cp: cannot stat 'calamari/repobuild/calamari-repo-.tar.gz': No such file or directory [ERROR ] retcode: 1 [ERROR ] {'pid': 7733, 'retcode': 1, 'stderr': "cp: cannot stat 'calamari/repo build/calamari-repo-.tar.gz': No such file or directory", 'stdout': ''} [ERROR ] Command 'cp rpmbuild/RPMS//calamari-server-.rpm /git' failed with r eturn code: 1 [ERROR ] stderr: cp: cannot stat 'rpmbuild/RPMS//calamari-server-.rpm': No s uch file or directory [ERROR ] retcode: 1 [ERROR ] {'pid': 7734, 'retcode': 1, 'stderr': "cp: cannot stat 'rpmbuild/RPMS //calamari-server-.rpm': No such file or directory", 'stdout': ''} [ERROR ] Command 'cp Diamond/dist/diamond-.rpm /git' failed with return code: 1 [ERROR ] stderr: cp: cannot stat 'Diamond/dist/diamond-.rpm': No such file or directory [ERROR ] retcode: 1 [ERROR ] {'pid': 7735, 'retcode': 1, 'stderr': "cp: cannot stat 'Diamond/dist/ diamond-.rpm': No such file or directory", 'stdout': ''} local:

      ID: build_deps
Function: pkg.installed
  Result: True
 Comment: 19 targeted packages were installed/updated.
          The following packages were already installed: python-configobj, m                                   ake
 Started: 05:46:50.410223
Duration: 228470.443 ms
 Changes:
          ----------
          Cython:
              ----------
              new:
                  0.19-3.el7
              old:
          apr:
              ----------
              new:
                  1.4.8-3.el7
              old:
          apr-util:
              ----------
              new:
                  1.5.2-6.el7
              old:
          at:
              ----------
              new:
                  3.1.13-22.el7
              old:
          audit:
              ----------
              new:
                  2.6.5-3.el7
              old:
                  2.4.1-5.el7
          audit-libs:
              ----------
              new:
                  2.6.5-3.el7
              old:
                  2.4.1-5.el7
          audit-libs-python:
              ----------
              new:
                  2.6.5-3.el7
              old:
          bc:
              ----------
              new:
                  1.06.95-13.el7
              old:
          cairo:
              ----------
              new:
                  1.14.2-1.el7
              old:
          cairo-devel:
              ----------
              new:
                  1.14.2-1.el7
              old:
          checkpolicy:
              ----------
              new:
                  2.5-4.el7
              old:
          cpp:
              ----------
              new:
                  4.8.5-11.el7
              old:
          createrepo:
              ----------
              new:
                  0.9.9-26.el7
              old:
          cups-client:
              ----------
              new:
                  1:1.6.3-26.el7
              old:
          cups-libs:
              ----------
              new:
                  1:1.6.3-26.el7
              old:
          deltarpm:
              ----------
              new:
                  3.6-3.el7
              old:
          desktop-file-utils:
              ----------
              new:
                  0.22-1.el7
              old:
          dwz:
              ----------
              new:
                  0.11-3.el7
              old:
          ed:
              ----------
              new:
                  1.9-4.el7
              old:
          elfutils:
              ----------
              new:
                  0.166-2.el7
              old:
          elfutils-libelf:
              ----------
              new:
                  0.166-2.el7
              old:
                  0.163-3.el7
          elfutils-libs:
              ----------
              new:
                  0.166-2.el7
              old:
                  0.163-3.el7
          emacs-filesystem:
              ----------
              new:
                  1:24.3-18.el7
              old:
          expat:
              ----------
              new:
                  2.1.0-10.el7_3
              old:
                  2.1.0-8.el7
          expat-devel:
              ----------
              new:
                  2.1.0-10.el7_3
              old:
          fontconfig:
              ----------
              new:
                  2.10.95-10.el7
              old:
          fontconfig-devel:
              ----------
              new:
                  2.10.95-10.el7
              old:
          fontpackages-filesystem:
              ----------
              new:
                  1.44-8.el7
              old:
          freetype:
              ----------
              new:
                  2.4.11-12.el7
              old:
                  2.4.11-11.el7
          freetype-devel:
              ----------
              new:
                  2.4.11-12.el7
              old:
          gcc:
              ----------
              new:
                  4.8.5-11.el7
              old:
          gcc-c++:
              ----------
              new:
                  4.8.5-11.el7
              old:
          gdb:
              ----------
              new:
                  7.6.1-94.el7
              old:
          git:
              ----------
              new:
                  1.8.3.1-6.el7_2.1
              old:
          gl-manpages:
              ----------
              new:
                  1.1-7.20130122.el7
              old:
          glib2:
              ----------
              new:
                  2.46.2-4.el7
              old:
                  2.42.2-5.el7
          glib2-devel:
              ----------
              new:
                  2.46.2-4.el7
              old:
          glibc:
              ----------
              new:
                  2.17-157.el7_3.1
              old:
                  2.17-105.el7
          glibc-common:
              ----------
              new:
                  2.17-157.el7_3.1
              old:
                  2.17-105.el7
          glibc-devel:
              ----------
              new:
                  2.17-157.el7_3.1
              old:
          glibc-headers:
              ----------
              new:
                  2.17-157.el7_3.1
              old:
          httpd:
              ----------
              new:
                  2.4.6-45.el7.centos
              old:
          httpd-tools:
              ----------
              new:
                  2.4.6-45.el7.centos
              old:
          jbigkit-libs:
              ----------
              new:
                  2.0-11.el7
              old:
          kernel-headers:
              ----------
              new:
                  3.10.0-514.6.1.el7
              old:
          libX11:
              ----------
              new:
                  1.6.3-3.el7
              old:
          libX11-common:
              ----------
              new:
                  1.6.3-3.el7
              old:
          libX11-devel:
              ----------
              new:
                  1.6.3-3.el7
              old:
          libXau:
              ----------
              new:
                  1.0.8-2.1.el7
              old:
          libXau-devel:
              ----------
              new:
                  1.0.8-2.1.el7
              old:
          libXdamage:
              ----------
              new:
                  1.1.4-4.1.el7
              old:
          libXdamage-devel:
              ----------
              new:
                  1.1.4-4.1.el7
              old:
          libXext:
              ----------
              new:
                  1.3.3-3.el7
              old:
          libXext-devel:
              ----------
              new:
                  1.3.3-3.el7
              old:
          libXfixes:
              ----------
              new:
                  5.0.1-2.1.el7
              old:
          libXfixes-devel:
              ----------
              new:
                  5.0.1-2.1.el7
              old:
          libXrender:
              ----------
              new:
                  0.9.8-2.1.el7
              old:
          libXrender-devel:
              ----------
              new:
                  0.9.8-2.1.el7
              old:
          libXxf86vm:
              ----------
              new:
                  1.1.3-2.1.el7
              old:
          libXxf86vm-devel:
              ----------
              new:
                  1.1.3-2.1.el7
              old:
          libcgroup:
              ----------
              new:
                  0.41-11.el7
              old:
          libdrm:
              ----------
              new:
                  2.4.67-3.el7
              old:
                  2.4.60-3.el7
          libdrm-devel:
              ----------
              new:
                  2.4.67-3.el7
              old:
          libgcc:
              ----------
              new:
                  4.8.5-11.el7
              old:
                  4.8.5-4.el7
          libgomp:
              ----------
              new:
                  4.8.5-11.el7
              old:
                  4.8.5-4.el7
          libjpeg-turbo:
              ----------
              new:
                  1.2.90-5.el7
              old:
          libmpc:
              ----------
              new:
                  1.0.1-3.el7
              old:
          libpng:
              ----------
              new:
                  2:1.5.13-7.el7_2
              old:
          libpng-devel:
              ----------
              new:
                  2:1.5.13-7.el7_2
              old:
          libselinux:
              ----------
              new:
                  2.5-6.el7
              old:
                  2.2.2-6.el7
          libselinux-python:
              ----------
              new:
                  2.5-6.el7
              old:
                  2.2.2-6.el7
          libselinux-utils:
              ----------
              new:
                  2.5-6.el7
              old:
                  2.2.2-6.el7
          libsemanage:
              ----------
              new:
                  2.5-5.1.el7_3
              old:
                  2.1.10-18.el7
          libsemanage-python:
              ----------
              new:
                  2.5-5.1.el7_3
              old:
          libsepol:
              ----------
              new:
                  2.5-6.el7
              old:
                  2.1.9-3.el7
          libstdc++:
              ----------
              new:
                  4.8.5-11.el7
              old:
                  4.8.5-4.el7
          libstdc++-devel:
              ----------
              new:
                  4.8.5-11.el7
              old:
          libtiff:
              ----------
              new:
                  4.0.3-27.el7_3
              old:
          libwebp:
              ----------
              new:
                  0.3.0-3.el7
              old:
          libxcb:
              ----------
              new:
                  1.11-4.el7
              old:
          libxcb-devel:
              ----------
              new:
                  1.11-4.el7
              old:
          libxshmfence:
              ----------
              new:
                  1.2-1.el7
              old:
          m2crypto:
              ----------
              new:
                  0.21.1-17.el7
              old:
          m4:
              ----------
              new:
                  1.4.16-10.el7
              old:
          mailcap:
              ----------
              new:
                  2.1.41-2.el7
              old:
          mailx:
              ----------
              new:
                  12.5-12.el7_0
              old:
          mesa-libEGL:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mesa-libEGL-devel:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mesa-libGL:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mesa-libGL-devel:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mesa-libgbm:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mesa-libglapi:
              ----------
              new:
                  11.2.2-2.20160614.el7
              old:
          mpfr:
              ----------
              new:
                  3.1.1-4.el7
              old:
          perl:
              ----------
              new:
                  4:5.16.3-291.el7
              old:
          perl-Carp:
              ----------
              new:
                  1.26-244.el7
              old:
          perl-Encode:
              ----------
              new:
                  2.51-7.el7
              old:
          perl-Error:
              ----------
              new:
                  1:0.17020-2.el7
              old:
          perl-Exporter:
              ----------
              new:
                  5.68-3.el7
              old:
          perl-File-Path:
              ----------
              new:
                  2.09-2.el7
              old:
          perl-File-Temp:
              ----------
              new:
                  0.23.01-3.el7
              old:
          perl-Filter:
              ----------
              new:
                  1.49-3.el7
              old:
          perl-Getopt-Long:
              ----------
              new:
                  2.40-2.el7
              old:
          perl-Git:
              ----------
              new:
                  1.8.3.1-6.el7_2.1
              old:
          perl-HTTP-Tiny:
              ----------
              new:
                  0.033-3.el7
              old:
          perl-PathTools:
              ----------
              new:
                  3.40-5.el7
              old:
          perl-Pod-Escapes:
              ----------
              new:
                  1:1.04-291.el7
              old:
          perl-Pod-Perldoc:
              ----------
              new:
                  3.20-4.el7
              old:
          perl-Pod-Simple:
              ----------
              new:
                  1:3.28-4.el7
              old:
          perl-Pod-Usage:
              ----------
              new:
                  1.63-3.el7
              old:
          perl-Scalar-List-Utils:
              ----------
              new:
                  1.27-248.el7
              old:
          perl-Socket:
              ----------
              new:
                  2.010-4.el7
              old:
          perl-Storable:
              ----------
              new:
                  2.45-3.el7
              old:
          perl-TermReadKey:
              ----------
              new:
                  2.30-20.el7
              old:
          perl-Text-ParseWords:
              ----------
              new:
                  3.29-4.el7
              old:
          perl-Thread-Queue:
              ----------
              new:
                  3.02-2.el7
              old:
          perl-Time-HiRes:
              ----------
              new:
                  4:1.9725-3.el7
              old:
          perl-Time-Local:
              ----------
              new:
                  1.2300-2.el7
              old:
          perl-constant:
              ----------
              new:
                  1.27-2.el7
              old:
          perl-libs:
              ----------
              new:
                  4:5.16.3-291.el7
              old:
          perl-macros:
              ----------
              new:
                  4:5.16.3-291.el7
              old:
          perl-parent:
              ----------
              new:
                  1:0.225-244.el7
              old:
          perl-podlators:
              ----------
              new:
                  2.5.1-3.el7
              old:
          perl-srpm-macros:
              ----------
              new:
                  1-8.el7
              old:
          perl-threads:
              ----------
              new:
                  1.87-4.el7
              old:
          perl-threads-shared:
              ----------
              new:
                  1.43-6.el7
              old:
          pixman:
              ----------
              new:
                  0.34.0-1.el7
              old:
          pixman-devel:
              ----------
              new:
                  0.34.0-1.el7
              old:
          policycoreutils:
              ----------
              new:
                  2.5-11.el7_3
              old:
                  2.2.5-20.el7
          policycoreutils-devel:
              ----------
              new:
                  2.5-11.el7_3
              old:
          policycoreutils-python:
              ----------
              new:
                  2.5-11.el7_3
              old:
          postgresql:
              ----------
              new:
                  9.2.18-1.el7
              old:
          postgresql-devel:
              ----------
              new:
                  9.2.18-1.el7
              old:
          postgresql-libs:
              ----------
              new:
                  9.2.18-1.el7
              old:
          psmisc:
              ----------
              new:
                  22.20-11.el7
              old:
          pycairo:
              ----------
              new:
                  1.8.10-8.el7
              old:
          pycairo-devel:
              ----------
              new:
                  1.8.10-8.el7
              old:
          python:
              ----------
              new:
                  2.7.5-48.el7
              old:
                  2.7.5-34.el7
          python-IPy:
              ----------
              new:
                  0.75-6.el7
              old:
          python-deltarpm:
              ----------
              new:
                  3.6-3.el7
              old:
          python-devel:
              ----------
              new:
                  2.7.5-48.el7
              old:
          python-docutils:
              ----------
              new:
                  0.11-0.2.20130715svn7687.el7
              old:
          python-libs:
              ----------
              new:
                  2.7.5-48.el7
              old:
                  2.7.5-34.el7
          python-pillow:
              ----------
              new:
                  2.0.0-19.gitd1c6db8.el7
              old:
          python-pygments:
              ----------
              new:
                  1.4-9.el7
              old:
          python-setuptools:
              ----------
              new:
                  0.9.8-4.el7
              old:
          python-sphinx:
              ----------
              new:
                  1.1.3-11.el7
              old:
          python-virtualenv:
              ----------
              new:
                  1.10.1-3.el7
              old:
          redhat-lsb-core:
              ----------
              new:
                  4.1-27.el7.centos.1
              old:
          redhat-lsb-submod-security:
              ----------
              new:
                  4.1-27.el7.centos.1
              old:
          redhat-rpm-config:
              ----------
              new:
                  9.1.0-72.el7.centos
              old:
          rpm:
              ----------
              new:
                  4.11.3-21.el7
              old:
                  4.11.3-17.el7
          rpm-build:
              ----------
              new:
                  4.11.3-21.el7
              old:
          rpm-build-libs:
              ----------
              new:
                  4.11.3-21.el7
              old:
                  4.11.3-17.el7
          rpm-libs:
              ----------
              new:
                  4.11.3-21.el7
              old:
                  4.11.3-17.el7
          rpm-python:
              ----------
              new:
                  4.11.3-21.el7
              old:
                  4.11.3-17.el7
          selinux-policy:
              ----------
              new:
                  3.13.1-102.el7_3.13
              old:
                  3.13.1-60.el7
          selinux-policy-devel:
              ----------
              new:
                  3.13.1-102.el7_3.13
              old:
          selinux-policy-doc:
              ----------
              new:
                  3.13.1-102.el7_3.13
              old:
          selinux-policy-targeted:
              ----------
              new:
                  3.13.1-102.el7_3.13
              old:
                  3.13.1-60.el7
          setools-libs:
              ----------
              new:
                  3.3.8-1.1.el7
              old:
          spax:
              ----------
              new:
                  1.5.2-13.el7
              old:
          swig:
              ----------
              new:
                  2.0.10-5.el7
              old:
          time:
              ----------
              new:
                  1.7-45.el7
              old:
          unzip:
              ----------
              new:
                  6.0-16.el7
              old:
          xdg-utils:
              ----------
              new:
                  1.1.0-0.17.20120809git.el7
              old:
          xorg-x11-proto-devel:
              ----------
              new:
                  7.7-13.el7
              old:
          zeromq3:
              ----------
              new:
                  3.2.5-1.el7
              old:
          zeromq3-devel:
              ----------
              new:
                  3.2.5-1.el7
              old:
          zip:
              ----------
              new:
                  3.0-11.el7
              old:
          zlib:
              ----------
              new:
                  1.2.7-17.el7
              old:
                  1.2.7-15.el7
          zlib-devel:
              ----------
              new:
                  1.2.7-17.el7
              old:

      ID: calamari_clone
Function: git.latest
    Name: /git/calamari
  Result: True
 Comment: /git/calamari cloned to /home/vagrant/calamari
 Started: 05:50:39.003789
Duration: 2959.198 ms
 Changes:
          ----------
          new:
              /git/calamari => /home/vagrant/calamari
          revision:
              ----------
              new:
                  5c1311cb572321ff45ea049c3fbc446e52e4b62c
              old:
                  None

      ID: build-calamari-server
Function: cmd.run
    Name: ./build-rpm.sh
  Result: False
 Comment: Command "./build-rpm.sh" run
 Started: 05:50:41.991149
Duration: 1775.87 ms
 Changes:
          ----------
          pid:
              7627
          retcode:
              1
          stderr:
              8159 blocks
              cp: cannot stat 'calamari/calamari.spec': No such file or dire                                   ctory
              error: failed to stat /home/vagrant/rpmbuild/SPECS/calamari.sp                                   ec: No such file or directory
          stdout:
              target: dist
              making dist tarball in ../calamari-server_1.5.2.tar.gz
              tar file made in ../calamari-server_1.5.2.tar.gz

      ID: cp-artifacts-up calamari/repobuild/calamari-repo-*.tar.gz
Function: cmd.run
    Name: cp calamari/repobuild/calamari-repo-*.tar.gz /git
  Result: False
 Comment: Command "cp calamari/repobuild/calamari-repo-*.tar.gz /git" run
 Started: 05:50:43.769347
Duration: 50.798 ms
 Changes:
          ----------
          pid:
              7733
          retcode:
              1
          stderr:
              cp: cannot stat 'calamari/repobuild/calamari-repo-*.tar.gz': N                                   o such file or directory
          stdout:

      ID: cp-artifacts-up rpmbuild/RPMS/*/calamari-server-*.rpm
Function: cmd.run
    Name: cp rpmbuild/RPMS/*/calamari-server-*.rpm /git
  Result: False
 Comment: Command "cp rpmbuild/RPMS/*/calamari-server-*.rpm /git" run
 Started: 05:50:43.821558
Duration: 48.508 ms
 Changes:
          ----------
          pid:
              7734
          retcode:
              1
          stderr:
              cp: cannot stat 'rpmbuild/RPMS/*/calamari-server-*.rpm': No su                                   ch file or directory
          stdout:

      ID: cp-artifacts-up Diamond/dist/diamond-*.rpm
Function: cmd.run
    Name: cp Diamond/dist/diamond-*.rpm /git
  Result: False
 Comment: Command "cp Diamond/dist/diamond-*.rpm /git" run
 Started: 05:50:43.871525
Duration: 48.591 ms
 Changes:
          ----------
          pid:
              7735
          retcode:
              1
          stderr:
              cp: cannot stat 'Diamond/dist/diamond-*.rpm': No such file or                                    directory
          stdout:

Summary for local

Succeeded: 2 (changed=6) Failed: 4

Total states run: 6 Total run time: 233.353 s

nagarashish avatar Feb 20 '17 05:02 nagarashish

I also encounter this issue, tried "boxcutter/centos72" and "boxcutter/centos73", exactly the same as these errors, anybody please help ?

chengkinhung avatar Feb 26 '17 10:02 chengkinhung

This seemed to fix it for me.

jameshilliard avatar Mar 07 '17 16:03 jameshilliard

maybe it will help you: https://zphj1987.gitbooks.io/calamaribook/content/First/da_bao_calamari_-_server.html

zphj1987 avatar Mar 15 '17 07:03 zphj1987

I had the same problem。

a523 avatar Jul 02 '17 08:07 a523