Bug 789292

Summary: [eap6] operation install RHQ User does not work for unsecured server
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: low    
Version: 4.3CC: hrupp, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-21 20:28:45 UTC Type: ---
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:    
Bug Blocks: 707223    

Description Libor Zoubek 2012-02-10 10:10:03 UTC
Version-Release number of selected component (if applicable):
Version: 4.3.0-SNAPSHOT
Build Number: 4bd191a

How reproducible:always


Steps to Reproduce:
1. have unsecured EAP (remove  security-realm="ManagementRealm" from interfaces)
2. inventory that EAP
3. run operation 'install RHQ User'
  
Actual results: Operation fails with: 

java.lang.Exception: / (Is a directory)
	at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)


Expected results:
Operation is successful and new user is created

Additional info: setting severity to low, because it is not common usecase to unsecure EAP manually (it is secured by default) and then want add user using JON.

Comment 1 Heiko W. Rupp 2012-02-14 16:36:13 UTC
Edge case as the server comes secured. And there adding the management user works.

On an unsecured server, there can probably no management realm be found and the operation is thus failing.

As users are not assumed to add management users they don't need, to catch the edge case is low priority.

Comment 2 Charles Crouch 2012-03-20 15:51:37 UTC
Setting to low priority as Heiko describes.

Comment 3 Heiko W. Rupp 2012-05-21 20:28:45 UTC
All servers are secured out of the box these days