Bug 1230607

Summary: [geo-rep]: RHEL7.1: rsync should be made dependent package for geo-replication
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: geo-replicationAssignee: Aravinda VK <avishwan>
Status: CLOSED ERRATA QA Contact: storage-qa-internal <storage-qa-internal>
Severity: urgent Docs Contact:
Priority: high    
Version: rhgs-3.1CC: aavati, asrivast, cbuissar, csaba, nlevinki, nsathyan, rcyriac, vagarwal
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.1-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1231205 (view as bug list) Environment:
Last Closed: 2015-07-29 05:01:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1231205, 1231213    
Bug Blocks: 1202842, 1223636    

Description Rahul Hinduja 2015-06-11 08:51:50 UTC
Description of problem:
=======================

With the installation of RHEL7.1 (Maipo) (3.10.0-229.el7.x86_64), rsync package is not installed by-default. geo-rep is dependent on rsync package for syncing and hence fails with exception as:


[2015-06-11 14:17:55.360109] E [syncdutils(/rhs/brick1/b1):247:log_raise_exception] <top>: execution of "rsync" failed with ENOENT (No such file or directory)
[2015-06-11 14:17:55.361197] I [syncdutils(/rhs/brick1/b1):220:finalize] <top>: exiting.
[2015-06-11 14:17:55.371893] I [repce(agent):92:service_loop] RepceServer: terminating on reaching EOF.
[2015-06-11 14:17:55.372690] I [syncdutils(agent):220:finalize] <top>: exiting.
[2015-06-11 14:17:55.821278] I [monitor(monitor):282:monitor] Monitor: worker(/rhs/brick1/b1) died in startup phase
[2015-06-11 14:17:56.17366] I [master(/rhs/brick2/b2):1084:crawl] _GMaster: slave's time: (1434012471, 0)
[2015-06-11 14:17:56.361943] E [syncdutils(/rhs/brick2/b2):247:log_raise_exception] <top>: execution of "rsync" failed with ENOENT (No such file or directory)
[2015-06-11 14:17:56.362849] I [syncdutils(/rhs/brick2/b2):220:finalize] <top>: exiting.
[2015-06-11 14:17:56.374238] I [repce(agent):92:service_loop] RepceServer: terminating on reaching EOF.
[2015-06-11 14:17:56.374922] I [syncdutils(agent):220:finalize] <top>: exiting.
[2015-06-11 14:17:56.822371] I [monitor(monitor):282:monitor] Monitor: worker(/rhs/brick2/b2) died in startup phase
[2015-06-11 14:18:06.105169] I [monitor(monitor):221:monitor] Monitor: ------------------------------------------------------------
[2015-06-11 14:18:06.105815] I [monitor(monitor):222:monitor] Monitor: starting gsyncd worker
[2015-06-11 14:18:06.287671] I [changelogagent(agent):75:__init__] ChangelogAgent: Agent listining...
[2015-06-11 14:18:06.288149] I [gsyncd(/rhs/brick1/b1):649:main_i] <top>: syncing: gluster://localhost:master -> ssh://root.eng.blr.redhat.com:gluster://localhost:slave
[2015-06-11 14:18:07.80266] I [monitor(monitor):221:monitor] Monitor: ------------------------------------------------------------
[2015-06-11 14:18:07.80811] I [monitor(monitor):222:monitor] Monitor: starting gsyncd worker



[root@rhsqe-vm01 ~]# rpm -qa | grep rsync
[root@rhsqe-vm01 ~]# yum search rsync
Loaded plugins: product-id, subscription-manager
============================================================================================== N/S matched: rsync ==============================================================================================
libguestfs-rsync.x86_64 : rsync support for libguestfs
rsync-debuginfo.x86_64 : Debug information for package rsync
rsync.x86_64 : A program for synchronizing files over a network

  Name and summary matches only, use "search all" for everything.
[root@rhsqe-vm01 ~]# 


rsync should be made dependent package for geo-replication package.

Comment 4 Aravinda VK 2015-06-12 11:41:24 UTC
*** Bug 1078991 has been marked as a duplicate of this bug. ***

Comment 7 Rahul Hinduja 2015-06-15 09:23:28 UTC
Verified with build: glusterfs-3.7.1-3.el7rhgs.x86_64

Installing glusterfs-geo-replication package checks for rsync dependency package as:

[root@rhsqe-vm02 ~]# rpm -qa | grep rsync
[root@rhsqe-vm02 ~]# rpm -qa | grep glusterfs-geo-replication
[root@rhsqe-vm02 ~]# yum install glusterfs-geo-replication
Loaded plugins: product-id, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package glusterfs-geo-replication.x86_64 0:3.7.1-3.el7rhgs will be installed
--> Processing Dependency: rsync for package: glusterfs-geo-replication-3.7.1-3.el7rhgs.x86_64
--> Running transaction check
---> Package rsync.x86_64 0:3.0.9-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                          Arch                          Version                                 Repository                                 Size
========================================================================================================================================================================
Installing:
 glusterfs-geo-replication                        x86_64                        3.7.1-3.el7rhgs                         rhgs3.1-server-el7                        168 k
Installing for dependencies:
 rsync                                            x86_64                        3.0.9-15.el7                            rhel-7-server-rpms                        359 k

Transaction Summary
========================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 527 k
Installed size: 1.4 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): glusterfs-geo-replication-3.7.1-3.el7rhgs.x86_64.rpm                                                                                      | 168 kB  00:00:00     
(2/2): rsync-3.0.9-15.el7.x86_64.rpm                                                                                                             | 359 kB  00:00:02     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                   179 kB/s | 527 kB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
git-1.8.3.1-4.el7.x86_64 has missing requires of rsync
vdsm-4.16.16-1.3.el7rhgs.x86_64 has missing requires of glusterfs-geo-replication
vdsm-4.16.16-1.3.el7rhgs.x86_64 has missing requires of glusterfs-rdma
  Installing : rsync-3.0.9-15.el7.x86_64                                                                                                                            1/2 
  Installing : glusterfs-geo-replication-3.7.1-3.el7rhgs.x86_64                                                                                                     2/2 
  Verifying  : glusterfs-geo-replication-3.7.1-3.el7rhgs.x86_64                                                                                                     1/2 
  Verifying  : rsync-3.0.9-15.el7.x86_64                                                                                                                            2/2 

Installed:
  glusterfs-geo-replication.x86_64 0:3.7.1-3.el7rhgs                                                                                                                    

Dependency Installed:
  rsync.x86_64 0:3.0.9-15.el7                                                                                                                                           

Complete!
[root@rhsqe-vm02 ~]# rpm -qa | grep rsync
rsync-3.0.9-15.el7.x86_64
[root@rhsqe-vm02 ~]# rpm -qa | grep glusterfs-geo-replication
glusterfs-geo-replication-3.7.1-3.el7rhgs.x86_64
[root@rhsqe-vm02 ~]# 


Moving the bug to verified state

Comment 8 errata-xmlrpc 2015-07-29 05:01:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1495.html