Bug 1093370
Summary: | JON plugin for EAP 6 cannot create an admin user in a moved configuration directory | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Tom Fonteyne <tfonteyn> |
Component: | Plugin -- JBoss EAP 6 | Assignee: | Libor Zoubek <lzoubek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Filip Brychta <fbrychta> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.2 | CC: | bkramer, fbrychta, jshaughn, loleary, lzoubek, mkoci, theute |
Target Milestone: | ER04 | ||
Target Release: | JON 3.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
A bug in HostConfiguration.java of the EAP 6 Plug-in prevented the Add User operation from succeeding in cases where EAP was started with the "configuration" directory set to a non-default location. The Add User operation was only ever intended for development using a default JBoss EAP standalone or domain installation. That being said, moving the directory should not have broken the functionality. A fix to the plug-in now correctly resolves the path to the "configuration" directory, which allows the Add User operation to succeed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-12-11 14:00:10 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: | |||
Bug Depends On: | 1093374 | ||
Bug Blocks: |
Description
Tom Fonteyne
2014-05-01 14:36:26 UTC
Reducing severity as this is an unsupported operation. Users should be added and managed by the JBoss EAP security implementation. The Add User operation provided by the AS7 plug-in is intended for development using a default JBoss EAP standalone or domain installation. Bug 1093374 is fixed in master - this BZ is it's product duplicate Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993 Moving to ASSIGNED. I moved the ~/jboss-eap-6.3/standalone/configuration directory to new location: ~/jboss-eap-6.3/standalone/newdir/configuration. Then I started the eap standalone server using ./standalone.sh -Djboss.server.config.dir=~/jboss-eap-6.3/standalone/newdir/configuration. The server started with no errors and JON displays it as available resource. JON even displays the right new path in Configuration->Server environment->Config Dir property. However an operation Install RHQ user fails as JON tries to search for the mgmt-users.properties file under the old location. java.lang.Exception: Management users properties file [/home/hudson/jboss-eap-6.3/standalone/configuration/mgmt-users.properties] is not writable. at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Tested on: Version:3.3.0.ER02 Build Number:4fbb183:7da54e2 Moving to VERIFIED. After the configuration directory is moved to a new location and EAP is started again, the original EAP resource appears as UP again in the JON web UI, but it is not possible to perform the required operations (Install RHQ user). Nevertheless the new EAP resource is discovered on which (after inventorying) it is possible to perform Install RHQ user operation. Therefore this BZ is verified. See also BZ 1141839 which describes the newly discovered bug. |