Bug 1019673 - unable to create new bundle via uploading receipe file
Summary: unable to create new bundle via uploading receipe file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Provisioning
Version: JON 3.2
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: JON 3.2.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-16 08:46 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-10-16 15:47:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
generatedBundle (1.04 KB, application/zip)
2013-10-16 08:47 UTC, Armine Hovsepyan
no flags Details
bundleRecipe2 (178 bytes, text/plain)
2013-10-16 08:48 UTC, Armine Hovsepyan
no flags Details
WorkingBundle (3.71 KB, application/zip)
2013-10-16 09:03 UTC, Armine Hovsepyan
no flags Details
Screenshot (8.68 KB, image/png)
2013-10-16 15:44 UTC, Heiko W. Rupp
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1019917 0 unspecified CLOSED uploading bundle missing compliance attribute should have descriptive error message 2021-02-22 00:41:40 UTC

Internal Links: 1019917

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.


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