Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 873705

Summary: [rhev-gluster] When creating gluster volume with bricks on more hosts it failes on 'Host xxx not a friend'
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Dufek <pdufek>
Component: ovirt-engineAssignee: Kanagaraj <kmayilsa>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bugzilla-qe-tlv, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sankarshan, sgrinber, shireesh, vbellur, yeylon, ykaul
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: gluster
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-08 11:27:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Petr Dufek 2012-11-06 14:19:55 UTC
Created attachment 639394 [details]
logs

Description of problem:
-----------------------
When creating gluster volume with 2 bricks on 2 different hosts it fails due to 'Host xxx not a friend'

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
rhevm-3.1.0-25.el6ev.noarch
vdsm-bootstrap-4.9.6-40.0.el6_3.noarch
vdsm-4.9.6-40.0.el6_3.x86_64


Steps to Reproduce:
-------------------
1. create cluster with gluster support enabled
2. add 2 hosts
3. create gluster volume (e.g. distribute type) with one brick on the first host and another brick on the second host
  
Actual results:
-------	
Error while executing action Create Gluster Volume: Volume create failed
error: Host 10_34_63_208 not a friend
return code: 255--------

Expected results:
-----------------
gluster volume successfully created

Additional info:
----------------
seems like peer probing wasn't successfully done. 'gluster peer status' returns nothing (No peer present).

Comment 1 Kanagaraj 2012-11-07 12:08:31 UTC
can you please give the output of 'rpm -qa| grep glusterfs' from both the hosts?

Comment 2 Kanagaraj 2012-11-07 12:14:08 UTC
please attach the output of this '/usr/sbin/gluster --mode=script peer status --xml' as well.

Comment 3 Petr Dufek 2012-11-07 14:04:45 UTC
output of rpm -qa| grep glusterfs:
----------------------------------
host 1:
   glusterfs-debuginfo-3.3.0qa45-1.el6.x86_64
   glusterfs-rdma-3.3.0qa45-1.el6.x86_64
   glusterfs-fuse-3.3.0qa45-1.el6.x86_64
   glusterfs-3.3.0qa45-1.el6.x86_64
   glusterfs-geo-replication-3.3.0qa45-1.el6.x86_64
   glusterfs-devel-3.3.0qa45-1.el6.x86_64
   glusterfs-server-3.3.0qa45-1.el6.x86_64

host2:
   glusterfs-rdma-3.2.7-1.el6.x86_64
   glusterfs-geo-replication-3.2.7-1.el6.x86_64
   glusterfs-fuse-3.2.7-1.el6.x86_64
   glusterfs-3.2.7-1.el6.x86_64
   glusterfs-server-3.2.7-1.el6.x86_64

output of /usr/sbin/gluster --mode=script peer status --xml:
host1:
   No peers present
host2:  
   usr/sbin/gluster: unrecognized option '--xml'
   Try `gluster --help' or `gluster --usage' for more information.

Both hosts are RHN registered with required hosts (according to release mail for si23 build). Host1 has some gluster packages from the past testing.

Comment 4 Shireesh 2012-11-08 06:38:49 UTC
What kind of hosts are these (host1 and host2) ? Are these RHS nodes installed using RHS ISO? Or these are RHEL servers and you manually installed glusterfs packages?

Comment 5 Petr Dufek 2012-11-08 11:25:56 UTC
those are RHEL servers and glusterfs were previously installed. 
In releasing mail there weren't stated any additional repos/rhn channels to be used for gluster packages. 

After receiving the right gluster ackages: 3.3.0rhsvirt1-8.el6rhs.x86_64.rpm (like  glusterfs-3.3.0rhsvirt1-8.el6rhs.x86_64.rpm) it works fine.