Bug 1013489

Summary: It is not possible to download an agent from RHQ server (HTTP Status 404)
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: Agent, Core ServerAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: lzoubek, mazz, rhatlapa, spinder, tsegismo
Target Milestone: ER03   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:35:48 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 Filip Brychta 2013-09-30 08:17:31 UTC
Description of problem:
After successful installation of RHQ server following link http://xx.xx.xx.xx:7080/agentupdate/download returns HTTP Status 404

Version-Release number of selected component (if applicable):
Version: 3.2.0.ER2
Build Number: 9bf6f76:371eac0

How reproducible:
100%

Steps to Reproduce:
1. ./rhqctl install
2. login 
3. go to Administration->Downloads->Download agent (http://xx.xx.xx.xx:7080/agentupdate/download)

Actual results:
HTTP Status 404

Expected results:
link works

Additional info:
All links on http://xx.xx.xx.xx:7080/downloads/ are broken. (agent, CLI client, bundle deployer,.. )

Comment 1 Thomas Segismont 2013-09-30 08:45:07 UTC
The problem comes from the implementation of BZ1000065. portal-war context has been move from '/' to '/portal' and all the links here have not been updated.

As a workaround, you can add '/portal' in the middle of the broken URLs. For example, turn:
http://localhost:7080/client/download
into:
http://localhost:7080/portal/client/download

Comment 2 Filip Brychta 2013-09-30 12:21:13 UTC
Is it possible to preserve original links? Different agent download link would break our automation.. (i guess not just ours)

Comment 4 Thomas Segismont 2013-09-30 14:26:45 UTC
Fixed 'Downloads' page broken links in master

commit 12317968d83d7ca408b01e7b9715364215fd5907
Author: Thomas Segismont <tsegismo>
Date:   Mon Sep 30 16:23:01 2013 +0200

Re-assigning to Jiri who is looking at how already installed agent will be able to auto-update.

Comment 5 Jirka Kremser 2013-09-30 23:37:58 UTC
Preserving the original paths not to break the existing scripts (as mentioned in comment 2). The servlets responsible for serving the data were moved from portal war module to its own war files.

branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=a91848332
time:    2013-10-01 01:32:50 +0200
commit:  a91848332427bcf365fccece1dcc6805009e68ad
author:  Jirka Kremser - jkremser
message: [BZ 1013489] - It is not possible to download an agent from RHQ server
         (HTTP Status 404) - Introducing three new simple wars for
         handling the "/agentupdate/{download|version}",
         "/client/{download|version}" and "/downloads/*". Besides fixing
         this bug, this commit should help to remove portal war in the
         future.

Comment 6 Simeon Pinder 2013-10-08 07:41:33 UTC
Moving to ON_QA for testing.

Comment 7 Libor Zoubek 2013-10-08 11:38:12 UTC
verified on ER3