Bug 1070341

Summary: Preserve custom scripts during agent auto update
Product: [JBoss] JBoss Operations Network Reporter: Heiko W. Rupp <hrupp>
Component: Agent, Installer, UpgradeAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: mazz, vnguyen
Target Milestone: DR01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:04:36 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heiko W. Rupp 2014-02-26 15:59:20 UTC
Customer has created a number of custom scripts currently located in the $RHQ-AGENT/bin directory. For instance:
* custom JON Agent start/stop script;
* script that checks validation of certificate in keystores, writes a log file with expiration time of certificates once a day.
During the JON Agent upgrade, these scripts are not copied to updated agent directory.

They want their custom scripts to be copied from the old JBoss ON Agent to the new updated JBoss ON Agent and to have it ready to use.

See also Bug 823965

Comment 1 John Mazzitelli 2014-03-03 20:23:25 UTC
git commit to master: 79edf50

Comment 2 John Mazzitelli 2014-03-03 20:25:11 UTC
(In reply to John Mazzitelli from comment #1)
> git commit to master: 79edf50

what this fix does is ensure any custom scripts (that is, scripts with the extension ".sh" or ".bat") are copied from the old agent bin/ directory to the new agent bin/ directory.

Note that ANT does not support copying file permissions, so we also force a <chmod> to be called, setting the permission via "+x". This uses the user's umask to set the user/group/other execute bit.

Comment 4 JBoss JIRA Server 2014-04-22 15:17:08 UTC
Heiko Rupp <hrupp> updated the status of jira JON3-46 to Resolved

Comment 5 Simeon Pinder 2014-07-31 15:52:12 UTC
Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993

Comment 6 Viet Nguyen 2014-08-26 20:45:07 UTC
Note: .sh and .bat in rhq-agent/bin are copied over.  files in subdir (bin/scripts) are not.

TCMS test run
https://tcms.engineering.redhat.com/run/169870/