Bug 919416

Summary: A server or agent in the cluster can be added to two different affinity groups
Product: [JBoss] JBoss Operations Network Reporter: Sunil Kondkar <skondkar>
Component: High AvailabilityAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: high    
Version: JON 3.2CC: jkremser, myarboro, spinder
Target Milestone: ---   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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_Server-Assigned-to-an-affinity-group
none
Screenshot_Same-Server-Available-to-another-affinity-group none

Description Sunil Kondkar 2013-03-08 12:08:10 UTC
Description of problem:

If a server in HA environment is added to an affinity group, the same server is available in 'Available Servers' list while creating another affinity group.

Please refer to the attached screenshots.

Version-Release number of selected component (if applicable):

Version: 3.2.0.ALPHA_QA
Build Number: eef7a17:341de14

How reproducible:

Always

Steps to Reproduce:

1. Create an HA environment of two servers
2. Create an affinity group ( Ex: ag1 )
3. Add a server to the affinity group- ag1.
4. Create another affinity group ( Ex: ag2 )
5. Click on the 'Update Membership' button in the 'Server Members' section of the affinity group ag1.
6. Note that the server added previously to the first affinity group ag1 is also available in the 'Available Servers' list of affinity group ag2.
  
Actual results:

A server or agent in the cluster can be added to two different affinity groups.

Expected results:

A server or agent in cluster should not even be offerred as available to be added to a second affinity group.

Additional info:

Comment 1 Sunil Kondkar 2013-03-08 12:09:34 UTC
Created attachment 707003 [details]
Screenshot_Server-Assigned-to-an-affinity-group

Comment 2 Sunil Kondkar 2013-03-08 12:10:24 UTC
Created attachment 707004 [details]
Screenshot_Same-Server-Available-to-another-affinity-group

Comment 3 Jirka Kremser 2013-03-08 15:16:21 UTC
One server can be assigned to more than one affinity group, but this doesn't hold for agents. I'll add the filtering to the UI allowing only agents without any a.g. to populate in the list of available agents.

Comment 4 Jirka Kremser 2013-03-08 16:04:12 UTC
Taking back the previous comment. Each node can be at most in one affinity group.

Comment 5 Jirka Kremser 2013-03-13 14:15:24 UTC
fixed in master
3a22a7973

Comment 6 Simeon Pinder 2013-07-02 21:10:05 UTC
Moving to ON_QA for testing with latest build:
https://brewweb.devel.redhat.com//buildinfo?buildID=280316

Comment 7 Sunil Kondkar 2013-07-08 13:59:01 UTC
Verified on JON 3.2 Alpha 46 build. Build Number: dbe7020:45c43c4

Verified that a server or agent in the cluster can be added to only one affinity group.