Bug 871538

Summary: [bundles] file not found exception when using BundleManager.createBundleVersionViaFile
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp, theute
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: 2012-10-30 16:27:31 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
CLI output
none
sample bundle none

Description Libor Zoubek 2012-10-30 16:23:30 UTC
Created attachment 635686 [details]
CLI output

Description of problem: I am not able to upload bundle-dist-file via CLI. It seems to be regression, because I cannot reproduce this on JON 3.1.1.GA


Version-Release number of selected component (if applicable):
Version: 4.6.0-SNAPSHOT
Build Number: aba99ed

How reproducible: always


Steps to Reproduce:
1. have a bundle distribution file (attached) and put it in "/tmp/bundle-war.zip"
2. start up CLI - CLI must run on different host as server
3. BundleManager.createBundleVersionViaFile("/tmp/bundle-war.zip");
  
Actual results: You get FileNotFoundException (see attached CLI output). According to log it looks like *server* is looking for a bundle on server machine, but this file should be uploaded from client. If you put "/tmp/bundle-war.zip" to server's machine, you'll succeed. 


Expected results: bundle file is read on client machine and is uploaded to remote server.

Comment 1 Libor Zoubek 2012-10-30 16:24:05 UTC
Created attachment 635687 [details]
sample bundle

Comment 2 Libor Zoubek 2012-10-30 16:27:31 UTC
Ah, taking back .. I've just read documentation that says:

"distributionFile - a local Bundle Distribution file. It must be read accessible by the RHQ server process."

the reason why I wasn't able to reproduce on JON 3.1.1 was, that at that time CLI was running on same host as server.