Bug 5238

Summary: Echo service config is clobbered
Product: GridShib Reporter: Tom Scavo <trscavo@gmail.com>
Component: GT pluginAssignee: Tim Freeman <tfreeman@mcs.anl.gov>
Status: ASSIGNED    
Severity: normal CC: gridshib-dev@globus.org, trscavo@gmail.com, vwelch@uiuc.edu
Priority: P3    
Version: 0.5.1   
Target Milestone: beta   
Hardware: All   
OS: All   

Description From 2007-04-20 08:08:13
Running 'ant deploy-echoservice' twice clobbers the config in
$GLOBUS_LOCATION/etc/gridshib-gt-echo-0_5_1
------- Comment #1 From 2007-04-20 08:36:56 -------
Twice?  This is a general GAR problem.  Perhaps we could handle this like many
Linux packages: suffixing the config file with ".example" and requiring the
deployer to make it "live".  Thus when a redployment happens it does not
overwrite the real file, but the tradeoff is that there is an extra step to
take.

Would this problem typically only happen to developers though?
------- Comment #2 From 2007-04-20 09:03:13 -------
(In reply to comment #1)
> Twice?  

Twice, three times, any number of times more than one.

> Perhaps we could handle this like many
> Linux packages: suffixing the config file with ".example" and requiring the
> deployer to make it "live".  Thus when a redployment happens it does not
> overwrite the real file, but the tradeoff is that there is an extra step to
> take.

That's one possibility.  Another strategy is to never overwrite a config file.

> Would this problem typically only happen to developers though?

Typically, yes, but a deployer could inadvertently redeploy the echo service, I
guess.

PS. I added a deploy-all target in 0.5.2, which I'm now starting to regret.
------- Comment #3 From 2007-04-20 09:25:23 -------
> That's one possibility.  Another strategy is to never overwrite a config file.

That would be nice but this is a problem with GAR installations, they just plop
the files in.  Hmm, we could maybe do file renaming tricks (using post-deploy
target, see if a config file is already present and if not, rename the .example
file on the fly).