Bug 1026399 - Windows 2008 - Unable to install the agent to different disk drive
Windows 2008 - Unable to install the agent to different disk drive
Status: CLOSED NOTABUG
Product: JBoss Operations Network
Classification: JBoss
Component: Installer (Show other bugs)
JON 3.2
Unspecified Unspecified
unspecified Severity medium
: ER06
: JON 3.2.0
Assigned To: Jay Shaughnessy
Mike Foley
:
Depends On:
Blocks: 1012435
  Show dependency treegraph
 
Reported: 2013-11-04 09:48 EST by Filip Brychta
Modified: 2013-11-05 04:09 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-05 04:09:17 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Filip Brychta 2013-11-04 09:48:27 EST
Description of problem:
Setting rhq.agent.basedir in rhqctl.properties to different disk drive causes installer failure.

Version-Release number of selected component (if applicable):
Version: 3.2.0.ER4
Build Number: e413566:057b211

How reproducible:
Always

Steps to Reproduce:
1. Setup a Windows system (Windows Server 2008) that has a secondary/additional disk drive (E:). 
2. unzip jon-server-3.2.0.ER4.zip to c:\opt
3. set rhq.agent.basedir in rhqctl.properties to e:\opt\jboss\jon
4, rhqctl install

Actual results:
Installer output:
(start)
01:31:24,862 INFO  [org.rhq.server.control.command.Install] Configuring the RHQ
agent with default configuration file: e:optjbossjon\conf\agent-configuration.xm
l
01:31:24,862 ERROR [org.rhq.server.control.command.Install] An error occurred wh
ile configuring the agent: e:optjbossjon\conf\agent-configuration.xml (The syste
m cannot find the path specified)
(end)

rhq.agent.basedir in rhqctl.properties is malformed to rhq.agent.basedir = e:optjbossjon

Expected results:
Agent is installed to e:\opt\jboss\jon without errors

Additional info:
This corner scenario was used to set up environment for bug 903402
Comment 1 Filip Brychta 2013-11-04 10:42:15 EST
Workaround:
use following path rhq.agent.basedir = e:\\opt\\jboss\\jon

Installation was finished successfully but the agent was not installed. I can see

02:31:07,004 INFO  [org.rhq.server.control.command.Install] The RHQ agent is alr
eady installed in [e:\opt\jboss\jon]. It will not be installed. 

But e:\opt\jboss\jon is empty. How does this check work?
Comment 2 Jay Shaughnessy 2013-11-04 11:59:30 EST
The problem here is using backslashes in a properties file.  With forward slashes you should not have a problem.  Or with the escaped backslashes, as you tried above.

From the wiki: https://docs.jboss.org/author/display/RHQ/RHQ+Control+Script

"Values are treated like Java strings. So:
  - Use forward slashes where possible, especially in directory or file paths (including Windows!). For example: /var/lib or C:/my/folder.
  - If you need an explicit backslash, escape it using a double-backslash.
"

I will also add this to the Windows specific page: 


As for the agent installation test, it looks only for the agent base directory. So, if it finds it, even if empty, it will assume the agent is already installed.


I don't think any code changes are required, please retest or let me know otherwise. Thanks, Jay. (assigning to myself for any future action, but setting to NeedInfo)
Comment 3 Filip Brychta 2013-11-05 04:09:17 EST
Thank you for info Jay. Forward slashes work and the agent was installed. Closing as NOTABUG

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