Bug 1070341 - Preserve custom scripts during agent auto update
Summary: Preserve custom scripts during agent auto update
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Agent, Installer, Upgrade
Version: JON 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR01
: JON 3.3.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-26 15:59 UTC by Heiko W. Rupp
Modified: 2014-12-11 14:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-11 14:04:36 UTC
Type: Enhancement
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 823965 0 urgent CLOSED Maintain existing agent-configuration.xml and log4j.xml files after agent update/upgrade 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JON3-46 0 Major Verified Preservation custom scripts during agent auto update [PRODMGT-414] 2015-10-23 16:19:44 UTC

Internal Links: 823965

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/


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