Bug 973137

Summary: [RHS-C] Error while executing action: Cannot edit Gluster Hook. There are no conflicting servers to add or update hook
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: rhscAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1CC: dtsang, knarra, mmahoney, pprakash, rhs-bugs, sdharane, ssampat
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: bb4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 22:25:47 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:
Attachments:
Description Flags
screenshot of error
none
engine log
none
vdsm log none

Description Prasanth 2013-06-11 11:08:25 UTC
Created attachment 759562 [details]
screenshot of error

Description of problem:

"Error while executing action: Cannot edit Gluster Hook. There are no conflicting servers to add or update hook"

Version-Release number of selected component (if applicable):  Red Hat Storage Console Version: 2.1.0-0.bb2.el6rhs 


How reproducible: Most of the time


Steps to Reproduce:
Create a 3 server cluster.

1. Create a Text Hook (say: S34testhook.sh) in one of the servers and sync it across all the servers using the Resolve Conflict Missing feature.

2. Copy a Binary Hook to server1 with the same name as that of the Text Hook (S34testhook.sh). So currently, Server1 is having a binary hook with the name S34testhook.sh; server2 and server3 are having a text hook with the same name (S34testhook.sh)

3. A content conflict will now be determined in the UI and is supposed to be between the Engine and the 3 servers.

4. Now click on "Resolve Conflicts", select "Use content from: server1" and click on OK.


Actual results: 

a.) First time on clicking Ok, we won't see any error and the message "Gluster Hook 30samba-set.sh updated on conflicting servers." is seen in Events. However, it didn't actually resolve the content conflict as the file is still different (Text Hook) in server2 and server3 and the exclamation (!) mark is still present for the hook. I've confirmed the same from the back-end
  
   This should have actually copied the hook from server1 to Engine, server1 and server3 which didn't happen and hence this is the first stage of bug.

b.) If we try to resolve the hook for the second time, by selecting any of the server as "Use content from:", following error is seen:

"Error while executing action: Cannot edit Gluster Hook. There are no conflicting servers to add or update hook."


Expected results: Resolve conflict should work fine.


Additional info: Logs and screenshot attached

Comment 1 Prasanth 2013-06-11 11:14:45 UTC
Created attachment 759563 [details]
engine log

Comment 2 Prasanth 2013-06-11 11:16:55 UTC
Created attachment 759569 [details]
vdsm log

Comment 4 Prasanth 2013-06-28 08:18:53 UTC
Verified as fixed in bb4

Comment 5 Scott Haines 2013-09-23 22:25:47 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.

http://rhn.redhat.com/errata/RHBA-2013-1262.html