<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>6513</bug_id>
          
          <creation_ts>2008-10-30 13:26</creation_ts>
          <short_desc>globus-deploy-gar shouldn&apos;t put undeploy.xml in $GL/etc/gpt/packages</short_desc>
          <delta_ts>2008-12-19 09:37:26</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Java WS Core</product>
          <component>globus_wsrf_core</component>
          <version>4.0.7</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <keywords>4.0.x</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2.2</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charles Bacon">bacon@mcs.anl.gov</reporter>
          <assigned_to name="Tom Howe">trhowe@uchicago.edu</assigned_to>
          <cc>gridshib-dev@globus.org</cc>
    
    <cc>jwscore-dev@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Charles Bacon">bacon@mcs.anl.gov</who>
            <bug_when>2008-10-30 13:26:18</bug_when>
            <thetext>From gt-dev:
Deploying a GAR into $GLOBUS_LOCATION currently creates a file under $GLOBUS_LOCATION/etc/gpt/packages/&lt;gar_name&gt; called &quot;undeploy.xml&quot;.  I am currently working on accepting in some patches for GPT (bug 6229) that change the filesystem layout of GPT metadata, and these files are a bit of a sore point. However, there are some real issues I have with them independently of the GPT changes, and it seems like a good time to address those.

1)  etc/gpt/packages is a place for GPT metadata.  I can see why it was chosen as a location for these undeploy files, because it relates to the packages themselves.  But I think they&apos;d be better under share, since they don&apos;t really have anything to do with GPT.

2)  These files are almost never included in the filelist of the package.  That means they don&apos;t make it into binary distributions.  There are only four packages, all of them part of RFT, that correctly include them in the filelist.  If it weren&apos;t for that, actually, I wouldn&apos;t even be bumping into them as part of the fixes for bug 6229, but there you go.

3)  The GAR name and GPT package names are frequently not the same.  That&apos;s mildly irritating to me, but I have no pressing reason why that should be cleaned up.


So, my suggestions?

1)  Move the undeploy.xml to share/&lt;gar_name&gt;/undeploy.xml instead
2)  Add it to the relevant packages filelists
3)  If you feel like improving aesthetics at the same time, consider renaming your GAR to be the same as your GPT package name.  At the very least it will lower the namespace pollution of our directory structure, if you feel like you need a benefit besides just making me happy.

My main concern for all this right now is just HEAD, which is where I&apos;m testing the changes.  Arguably we will want to have this happen in 4.2 branch right now, unless someone can see how this represents an interface change.  My suspicion is that the undeploy.xml that result from our source installations are not well-known or used, particularly seeing as how nobody has ever complained that they are missing from binary distributions.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-10-30 13:51:03</bug_when>
            <thetext>(In reply to comment #0)
&gt; 
&gt; 1)  Move the undeploy.xml to share/&lt;gar_name&gt;/undeploy.xml instead

Deploying a GAR already utilizes share/&lt;gar_name&gt; so I wonder if this is the best location.  Admittedly, I can&apos;t see why it would matter, but putting undeploy.xml in a directory with a whole bunch of other unrelated stuff just doesn&apos;t seem right.  Would it be better to put undeploy.xml in a directory of its own?  Just a thought...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Charles Bacon">bacon@mcs.anl.gov</who>
            <bug_when>2008-10-30 13:55:28</bug_when>
            <thetext>If share/&lt;gar_name&gt;/undeploy is better, then that&apos;s fine by me.  I also wouldn&apos;t mind if it would up with the rest of the &quot;administrative&quot; side of a package&apos;s contents and went into $GL/etc/&lt;package_name&gt; instead.  Admittedly, given the lack of correlation between gar names and package names right now, that would also result in an explosion of subdirectories of etc/, which I find undesirable also.  My main quibble is with it being in a GPT-specific directory.  I&apos;m happy to entertain alternatives for its &quot;proper&quot; home.  Whether that&apos;s $GL/share/undeploy/&lt;gar_name&gt; or $GL/share/&lt;gar_name&gt;/undeploy or something else, I don&apos;t have too much of an agenda about that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-10-30 13:59:46</bug_when>
            <thetext>(In reply to comment #2)
&gt; 
&gt; $GL/share/undeploy/&lt;gar_name&gt; or $GL/share/&lt;gar_name&gt;/undeploy

FWIW, I prefer the former over the latter.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Howe">trhowe@uchicago.edu</who>
            <bug_when>2008-11-13 11:24:36</bug_when>
            <thetext>The undeploy information is now deployed to $GLOBUS_LOCATION/share/undeploy/$gar.id</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-11-13 13:06:23</bug_when>
            <thetext>What is the Target Milestone for this patch?  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-11-22 08:59:16</bug_when>
            <thetext>Where was this patch committed?  HEAD?  globus_4_2_branch?

I&apos;m getting buildbot errors re filelists on alternate nights that suggest the patch has been committed to HEAD but not to globus_4_2_branch (or vice versa, I can&apos;t really tell which).

Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-11-22 12:20:07</bug_when>
            <thetext>(In reply to comment #0)
&gt; 
&gt; My main concern for all this right now is just HEAD, which is where I&apos;m testing
&gt; the changes.  Arguably we will want to have this happen in 4.2 branch right
&gt; now, unless someone can see how this represents an interface change.

This explains what was reported in Comment #6.  This issue is being tracked in Bug 6549.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</who>
            <bug_when>2008-12-16 12:39:32</bug_when>
            <thetext>Reopening this bug - it doesn&apos;t have a target milestone nor is there information on where things were committed.

I agree with Charles that the changes should be committed to both trunk and 4.2 branch (the undeploy is rarely used) and the milestone should be the next 4.2.x release.

Reassigning to Tom Howe, since he worked on this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Howe">trhowe@uchicago.edu</who>
            <bug_when>2008-12-18 14:05:14</bug_when>
            <thetext>This has been committed to globus_4_2_branch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Howe">trhowe@uchicago.edu</who>
            <bug_when>2008-12-18 14:23:55</bug_when>
            <thetext>This has been committed to globus_4_2_branch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Howe">trhowe@uchicago.edu</who>
            <bug_when>2008-12-18 15:00:56</bug_when>
            <thetext>This has been committed to globus_4_2_branch and globus_4_0_branch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Von Welch">vwelch@uiuc.edu</who>
            <bug_when>2008-12-19 09:37:26</bug_when>
            <thetext>(In reply to comment #10)
&gt; This has been committed to globus_4_2_branch

Working for GridShib now.
</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>