Bug 919416 - A server or agent in the cluster can be added to two different affinity groups
Summary: A server or agent in the cluster can be added to two different affinity groups
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: High Availability
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: JON 3.2.0
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-08 12:08 UTC by Sunil Kondkar
Modified: 2014-01-02 20:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot_Server-Assigned-to-an-affinity-group (16.93 KB, image/png)
2013-03-08 12:09 UTC, Sunil Kondkar
no flags Details
Screenshot_Same-Server-Available-to-another-affinity-group (18.77 KB, image/png)
2013-03-08 12:10 UTC, Sunil Kondkar
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.