View Issue Details

IDProjectCategoryView StatusLast Update
0006820CentOS-6-OTHERpublic2014-03-26 09:53
Reporterdani Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version6.5
Summary0006820: Compile glusterfs with server componants
Descriptionglusterfs is compiled without the server components. We can see in the spec file:

# if you wish to build the server rpms, compile like this...
# rpmbuild -ta glusterfs-3.4.0.30rhs.tar.gz --with server
%if "%{?_with_server}"
%define _build_server 1
%else
%if "%{dist}" == ".el6rhs"
%define _build_server 1
%else
%define _build_server 0
%endif
%endif

I used to grab all the glusterfs stuff from the upstream glusterfs-epel repo, but since CentOS 6.5, qemu-kvm depends on a specific version of glusterfs-api (the one in the base repo), and, as the corresponding server components are not available, it's not possible to setup a GlusterFS server on CentOS anymore (at least, if you need to install qemu-kvm on the same box).

So, would it be possible to compile this package with --server enabled ?

Regards, Daniel
TagsNo tags attached.

Activities

madko

madko

2013-12-07 11:05

reporter   ~0018602

Event if you don't use qemu-kvm, it's impossible to upgrade a glusterfs server to 6.5:

Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:6-4.el6.centos.10 will be updated
---> Package centos-release.x86_64 0:6-5.el6.centos.11.2 will be an update
---> Package dracut.noarch 0:004-336.el6 will be updated
---> Package dracut.noarch 0:004-336.el6_5.2 will be an update
---> Package dracut-kernel.noarch 0:004-336.el6 will be updated
---> Package dracut-kernel.noarch 0:004-336.el6_5.2 will be an update
---> Package glusterfs.x86_64 0:3.2.7-1.el6 will be updated
--> Processing Dependency: libgfrpc.so.0()(64bit) for package: glusterfs-3.4.0.36rhs-1.el6.x86_64
--> Processing Dependency: libgfxdr.so.0()(64bit) for package: glusterfs-3.4.0.36rhs-1.el6.x86_64
--> Processing Dependency: libglusterfs.so.0()(64bit) for package: glusterfs-3.4.0.36rhs-1.el6.x86_64
--> Processing Dependency: glusterfs = 3.2.7-1.el6 for package: glusterfs-server-3.2.7-1.el6.x86_64
---> Package glusterfs.x86_64 0:3.4.0.36rhs-1.el6 will be an update
---> Package glusterfs-fuse.x86_64 0:3.2.7-1.el6 will be updated
--> Processing Dependency: glusterfs-fuse = 3.2.7-1.el6 for package: glusterfs-server-3.2.7-1.el6.x86_64
---> Package glusterfs-fuse.x86_64 0:3.4.0.36rhs-1.el6 will be an update
---> Package grep.x86_64 0:2.6.3-3.el6 will be updated
---> Package grep.x86_64 0:2.6.3-4.el6 will be an update
---> Package libXcursor.x86_64 0:1.1.13-2.el6 will be updated
---> Package libXcursor.x86_64 0:1.1.13-6.20130524git8f677eaea.el6 will be an update
---> Package logrotate.x86_64 0:3.7.8-16.el6 will be updated
---> Package logrotate.x86_64 0:3.7.8-17.el6 will be an update
---> Package mailx.x86_64 0:12.4-6.el6 will be updated
---> Package mailx.x86_64 0:12.4-7.el6 will be an update
---> Package openssl.x86_64 0:1.0.1e-15.el6 will be updated
---> Package openssl.x86_64 0:1.0.1e-16.el6_5 will be an update
---> Package openssl-devel.x86_64 0:1.0.1e-15.el6 will be updated
---> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5 will be an update
---> Package puppet.noarch 0:2.6.18-3.el6 will be updated
---> Package puppet.noarch 0:2.7.23-1.el6 will be an update
---> Package python-urlgrabber.noarch 0:3.9.1-8.el6 will be updated
---> Package python-urlgrabber.noarch 0:3.9.1-9.el6 will be an update
---> Package sysvinit-tools.x86_64 0:2.87-4.dsf.el6 will be updated
---> Package sysvinit-tools.x86_64 0:2.87-5.dsf.el6 will be an update
--> Running transaction check
---> Package glusterfs.x86_64 0:3.2.7-1.el6 will be updated
--> Processing Dependency: glusterfs = 3.2.7-1.el6 for package: glusterfs-server-3.2.7-1.el6.x86_64
---> Package glusterfs-fuse.x86_64 0:3.2.7-1.el6 will be updated
--> Processing Dependency: glusterfs-fuse = 3.2.7-1.el6 for package: glusterfs-server-3.2.7-1.el6.x86_64
---> Package glusterfs-libs.x86_64 0:3.4.0.36rhs-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: glusterfs-server-3.2.7-1.el6.x86_64 (@epel)
           Requires: glusterfs = 3.2.7-1.el6
           Removing: glusterfs-3.2.7-1.el6.x86_64 (@epel)
               glusterfs = 3.2.7-1.el6
           Updated By: glusterfs-3.4.0.36rhs-1.el6.x86_64 (base)
               glusterfs = 3.4.0.36rhs-1.el6
Error: Package: glusterfs-server-3.2.7-1.el6.x86_64 (@epel)
           Requires: glusterfs-fuse = 3.2.7-1.el6
           Removing: glusterfs-fuse-3.2.7-1.el6.x86_64 (@epel)
               glusterfs-fuse = 3.2.7-1.el6
           Updated By: glusterfs-fuse-3.4.0.36rhs-1.el6.x86_64 (base)
               glusterfs-fuse = 3.4.0.36rhs-1.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
madko

madko

2013-12-10 16:39

reporter   ~0018616

workaround: use epel-gluserfs repo

http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.1/EPEL.repo/glusterfs-epel.repo
dani

dani

2013-12-10 16:41

reporter   ~0018617

As I said, using glusterfs-epel isn't possible anymore, if we want to also install qemu-kvm on the same box (because qemu-kvm is now dependant on a specific version of glusterfs-api, which itself will conflict with other glusterfs components from glusterfs-epel)
madko

madko

2013-12-10 18:27

reporter   ~0018619

[edouard@c3po ~]$ rpm -qa|egrep "qemu|gluster"
qemu-img-0.12.1.2-2.415.el6_5.3.x86_64
glusterfs-server-3.2.7-1.el6.x86_64
glusterfs-libs-3.4.1-3.el6.x86_64
glusterfs-cli-3.4.1-3.el6.x86_64
gpxe-roms-qemu-0.9.7-6.10.el6.noarch
glusterfs-api-3.4.1-3.el6.x86_64
glusterfs-fuse-3.4.1-3.el6.x86_64
glusterfs-server-3.4.1-3.el6.x86_64
glusterfs-3.4.1-3.el6.x86_64
qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
Evolution

Evolution

2013-12-11 03:35

reporter   ~0018623

In my discussions with the gluster community folks responsible for the glusterfs-epel repo, they say that this is currently expected behavior, owing to el6 having the client-side libs. To work around this, according to them you would need to add 'exclude=glusterfs*' to the base and updates repositories.

I have not verified that this works yet, but I will validate it tomorrow.
kbsingh@karan.org

kbsingh@karan.org

2013-12-15 00:59

reporter   ~0018661

trying to rope the upstream glusterfs people into this conversation - the change in state of glusterfs in 6.5 is causing quite a few issues to pretty much everyone using gluster on CentOS-6.
mlampe

mlampe

2013-12-15 01:04

reporter   ~0018662

The server component must be in some upstream channel. RH aims to conquer the storage world with GlusterFS.

"CentOS 6.5 is based on the upstream release EL 6.5 and includes
packages from all variants. All upstream repositories have been combined into one, to make it easier for end users to work with."

CentOS should have it too. I have already started to use it anyway.
dani

dani

2013-12-15 01:09

reporter   ~0018663

I just rebuilt glusterfs SRPM, altering the spec to inconditionaly enable the server components, and everything is working. glusterfs-server and glusterfs-geo-replication are created, and can be installed without dependency issue
kbsingh@karan.org

kbsingh@karan.org

2013-12-15 21:21

reporter   ~0018670

the RHS build sources for gluster are public on ftp.redhat.com - could one solution be to build and host those in CentOS-Extras/ ?
dani

dani

2013-12-16 19:27

reporter   ~0018674

Sees like an option. But source on RHS doesn't differ from the base glusterfs SRPM. It just need to be built with --with server
mlampe

mlampe

2013-12-16 23:34

reporter   ~0018675

There is:

(1)

ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/RHS/SRPMS/glusterfs-3.4.0.44rhs-1.el6rhs.src.rpm

and

(2)

ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/glusterfs-3.4.0.36rhs-1.el6.src.rpm

So they seem to build the server component from a later source. The changelog says:

* Wed Nov 13 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.44rhs-1
- fix the bugs 1027364 1029575 1029577 987292

* Mon Nov 11 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.43rhs-1
- fix the bugs 1028675 1028732

* Fri Nov 08 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.42rhs-1
- fix the georeplication tar + ssh option to sync to remote slave

* Fri Nov 08 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.41rhs-1
- fix the georeplication purging changelog issue

* Fri Nov 08 2013 Arumugam Balamurugan <barumuga@redhat.com> - 3.4.0.40rhs-2
- add aarch64 build support

* Thu Nov 07 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.40rhs-1
- fixes the bug 1016478 1019522 1025358 1025392 1027525 987292

* Tue Nov 05 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.39rhs-1
- fixes the bug 1000948 1002987 1010239 1014002 1022830 1025205 1025392
  1025408 1025476 1025604 1025953 1025954 1025956 1025967

* Fri Nov 01 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.38rhs-1
- fixes the bug 1002885 1022830 1025163 1025205 1025333 1025408 1025471

* Wed Oct 30 2013 Amar Tumballi <atumball@redhat.com> - 3.4.0.37rhs-1
- bug fixes for 1000903 1001895 1012900 1016019 1016019 1019504 1019518
  1019903 1019930 1019954 1020886 1022518 1022582 1022830 1023124 1023124
  1023124 1024496 871015 980910 980910 998793 998943

* Tue Oct 22 2013 Arumugam Balamurugan <barumuga@redhat.com> - 3.4.0.36rhs-1
- bug fixes for 1002885 1021808 1007536 1017014 1012216 998786 977544
  1016385 858434 1001895 1012900 980910 1001556

Hmmm....
LT-tom

LT-tom

2014-03-26 09:53

reporter   ~0019556

I used centos 6.4 install gluserfs-server-3.4.2 throw out problem..
Error: Package: glusterfs-server-3.4.2-1.el6.x86_64 (glusterfs)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: glusterfs-3.4.2-1.el6.x86_64 (glusterfs)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: glusterfs-3.4.2-1.el6.x86_64 (glusterfs)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: glusterfs-libs-3.4.2-1.el6.x86_64 (glusterfs)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)

Issue History

Date Modified Username Field Change
2013-12-06 16:27 dani New Issue
2013-12-07 11:05 madko Note Added: 0018602
2013-12-10 16:39 madko Note Added: 0018616
2013-12-10 16:41 dani Note Added: 0018617
2013-12-10 18:27 madko Note Added: 0018619
2013-12-11 03:35 Evolution Note Added: 0018623
2013-12-15 00:59 kbsingh@karan.org Note Added: 0018661
2013-12-15 01:04 mlampe Note Added: 0018662
2013-12-15 01:09 dani Note Added: 0018663
2013-12-15 21:21 kbsingh@karan.org Note Added: 0018670
2013-12-16 19:27 dani Note Added: 0018674
2013-12-16 23:34 mlampe Note Added: 0018675
2014-03-26 09:53 LT-tom Note Added: 0019556