Bug 1019673

Summary: unable to create new bundle via uploading receipe file
Product: [JBoss] JBoss Operations Network Reporter: Armine Hovsepyan <ahovsepy>
Component: ProvisioningAssignee: John Mazzitelli <mazz>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: hrupp, mazz, mfoley
Target Milestone: ---Keywords: Reopened
Target Release: JON 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-16 15:47:59 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:
Attachments:
Description Flags
generatedBundle
none
bundleRecipe2
none
WorkingBundle
none
Screenshot none

Description Armine Hovsepyan 2013-10-16 08:46:12 UTC
Description of problem:
unable to create new bundle

Version-Release number of selected component (if applicable):
jon 3.2 er3

How reproducible:
always

Steps to Reproduce:
1. navigate to bundles -> click "new" button
2. upload recipe file (attached examples)
3. click "next" button

Actual results:
the following exception thrown:
java.lang.Exception:Failed to parse the bundle Ant script. -> org.rhq.bundle.ant.InvalidBuildFileException:The deployment unit must specifically declare compliance mode of the destination directory

screen-shot ->  http://d.pr/i/Zz1f

Expected results:
recipe uploaded, bundle creation/installation is possible


Additional info:
example bundles attached

Comment 1 Armine Hovsepyan 2013-10-16 08:47:16 UTC
Created attachment 812827 [details]
generatedBundle

Comment 2 Armine Hovsepyan 2013-10-16 08:48:05 UTC
Created attachment 812828 [details]
bundleRecipe2

Comment 3 Armine Hovsepyan 2013-10-16 09:03:31 UTC
Created attachment 812832 [details]
WorkingBundle

Comment 4 Armine Hovsepyan 2013-10-16 09:06:33 UTC
attached WorkingBundle - having recipe without ant script (target tags in xml)

Comment 5 John Mazzitelli 2013-10-16 15:40:21 UTC
see 

https://docs.jboss.org/author/display/RHQ/Ant+Bundles#AntBundles-rhq%3Adeploymentunit

"compliance 	This is a new required attribute (as of RHQ 4.9.0)"

Any new bundles you create in the new JON/RHQ must have this required attribute - if not, the bundle will be rejected.

Comment 6 Heiko W. Rupp 2013-10-16 15:44:05 UTC
Apparently the zipped bundles and the recipe upload use different error messages. The attachment shows how this looks for the zipped-bundle for me.

Comment 7 Heiko W. Rupp 2013-10-16 15:44:47 UTC
Created attachment 813015 [details]
Screenshot

Comment 8 John Mazzitelli 2013-10-16 15:47:59 UTC
this bug is not a bug. the error message is fine and shows in the UI.

I created another BZ that is related but different - if you upload the bundle in a .zip format, you get a shorter error that is less descriptive

see bug #1019917

but if you are uploading a recipe, there is no bug. hence, this BZ will be closed.