Bug 852521

Summary: Example CLI to deploy application has a bad value for "baseDirName"
Product: [JBoss] JBoss Operations Network Reporter: dsteigne
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.1.0   
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: 2013-03-01 00:33:57 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:

Description dsteigne 2012-08-28 19:28:23 UTC
Description of problem:
In the example: http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/example_deploy_reboot.html#jbas-deploy-create

It shows rhqadmin@localhost:7080$ var baseDirName = "/opt/jboss-eap-6.0.0"

this is incorrect, if you run with an actual path like this you will receive an error on the agent 
2012-08-24 19:09:24,591 ERROR [BundleDeployment-1] (rhq.core.pc.bundle.BundleManager)- Failed to complete bundle deployment
java.lang.IllegalArgumentException: The resource type doesn't support bundle destination base location named [/opt/jboss-eap-6.0.0]
	at org.rhq.core.pc.bundle.BundleManager.getAbsoluteDestinationDir(BundleManager.java:494)
	at org.rhq.core.pc.bundle.BundleManager.access$200(BundleManager.java:85)
	at org.rhq.core.pc.bundle.BundleManager$1.run(BundleManager.java:194)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

The only valid values for that variable are literally "Profile Directory" or "Install Directory"

Please correct the example in the doc to read

rhqadmin@localhost:7080$ var baseDirName = "Install Directory"

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

Comment 1 Deon Ballard 2013-03-01 00:33:57 UTC
Mass closure.