ceph / calamari

Web-based monitoring and management for Ceph
Other
349 stars 179 forks source link

Build failed on centos 7 #406

Open d-zalewski opened 8 years ago

d-zalewski commented 8 years ago

I'm trying to build calamari packges on centos 7 using build-rpm.sh script.

Build log output: rpm-tmp.qQ5EAF

error: Bad exit status from /var/tmp/rpm-tmp.qQ5EAF (%install)

syf-zsxm commented 8 years ago

I've had a similar problem too. and solved by modify the gevent version from : gevent>=1.0 greenlet>=0.4 to : gevent==1.0.2 greenlet==0.4.9 in files: ./requirements/2.7/requirements.production.txt and ../requirements/2.7/requirements.txt . this problem happend when gevent package version upgrade.and the rpmbuild can not compatible

benh57 commented 8 years ago

Same error here

darrellenns commented 8 years ago

The issue seems to be only with gevent >=1.1 (CentOS 7 build tries to use 1.1).

ChristinaMeno commented 8 years ago

I've merged the proposed fix, let me know if I can close this. Thank you

ac-astuartkregor commented 8 years ago

@GregMeno I'm 99% sure I'm using master, but the build fails in the same way for me. EDIT: Sorry, I derp-ed. Didn't realise the PR got merged onto 1.3

feifeixyz commented 8 years ago

I got the master branch and try to buld the rpm package, then I still got the error

Compiling /root/rpmbuild/BUILDROOT/calamari-server-1.3.3-2_gd363ecf.el7.centos.x86_64/opt/calamari/venv/lib/python2.7/site-packages/gevent/_socket3.py ...
  File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/_socket3.py", line 183
    def makefile(self, mode="r", buffering=None, *,
                                                  ^
SyntaxError: invalid syntax

error: Bad exit status from /var/tmp/rpm-tmp.TKDYfI (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.TKDYfI (%install)

I tried many times,and it didn't work. I don't know why. My os distribution is CentOS7.2.2511 and the python version is 2.7.5.

Accroding to #440 , change the line in file requirements/2.7/requirements.production.txt gevent>=1.0 to gevent>=1.0,<1.1 and it worked.