Ticket #1456: err2.html

File err2.html, 24.8 KB (added by dstn, 9 years ago)
Line 
1<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
2<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
3</font> </font> </font> </script> </object> </blockquote> </pre>
4</table> </table> </table> </table> </table> </font> </font> </font><body bgcolor="#f0f0f8">
5<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
6<tr bgcolor="#6622aa">
7<td valign=bottom>&nbsp;<br>
8<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>&lt;type 'exceptions.OSError'&gt;</strong></big></big></font></td
9><td align=right valign=bottom
10><font color="#ffffff" face="helvetica, arial">Python 2.5.2: /lsst/DC3/stacks/32bit/19aug10/Linux/external/python/2.5.2/bin/python<br>Sat Oct 16 08:11:35 2010</font></td></tr></table>
11   
12<p>A problem occurred in a Python script.  Here is the sequence of
13function calls leading up to the error, in the order they occurred.</p>
14<table width="100%" cellspacing=0 cellpadding=0 border=0>
15<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/www/cgi-bin/DATAarch/dc3GetProduct.py">/var/www/cgi-bin/DATAarch/dc3GetProduct.py</a> in <strong><module></strong>()</td></tr>
16<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;124</small>&nbsp;def&nbsp;verb(lev,&nbsp;msg,&nbsp;*args,&nbsp;**kw):<br>
17</tt></font></td></tr>
18<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;125</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.log(logging.INFO-lev,&nbsp;msg,&nbsp;*args,&nbsp;**kw)<br>
19</tt></font></td></tr>
20<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;126</small>&nbsp;<br>
21</tt></font></td></tr>
22<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;127</small>&nbsp;if&nbsp;__name__&nbsp;==&nbsp;"__main__":<br>
23</tt></font></td></tr>
24<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;128</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;main()<br>
25</tt></td></tr>
26<tr><td><small><font color="#909090"><strong>main</strong>&nbsp;= &lt;function main at 0x82ddfb4&gt;</font></small></td></tr></table>
27<table width="100%" cellspacing=0 cellpadding=0 border=0>
28<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/www/cgi-bin/DATAarch/dc3GetProduct.py">/var/www/cgi-bin/DATAarch/dc3GetProduct.py</a> in <strong>main</strong>()</td></tr>
29<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;54</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;id&nbsp;is&nbsp;None:&nbsp;&nbsp;id&nbsp;=&nbsp;""<br>
30</tt></font></td></tr>
31<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;55</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;=&nbsp;id.strip('/')<br>
32</tt></font></td></tr>
33<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;56</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deliver(id,&nbsp;cfg)<br>
34</tt></td></tr>
35<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;57</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sys.exit(0)<br>
36</tt></font></td></tr>
37<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;58</small>&nbsp;<br>
38</tt></font></td></tr>
39<tr><td><small><font color="#909090"><em>global</em> <strong>deliver</strong>&nbsp;= &lt;function deliver at 0x82e32cc&gt;, <strong>id</strong>&nbsp;= 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', <strong>cfg</strong>&nbsp;= &lt;ncsa_sciarch.config.ConfigProperty object at 0x82e2bac&gt;</font></small></td></tr></table>
40<table width="100%" cellspacing=0 cellpadding=0 border=0>
41<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/www/cgi-bin/DATAarch/dc3GetProduct.py">/var/www/cgi-bin/DATAarch/dc3GetProduct.py</a> in <strong>deliver</strong>(id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', conf=&lt;ncsa_sciarch.config.ConfigProperty object at 0x82e2bac&gt;)</td></tr>
42<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;73</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t0&nbsp;=&nbsp;time.time()<br>
43</tt></font></td></tr>
44<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;74</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;not&nbsp;res.available(id):<br>
45</tt></font></td></tr>
46<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;75</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;restore(res,&nbsp;id,&nbsp;int(cfg.timeout))<br>
47</tt></td></tr>
48<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;76</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell("&nbsp;RESTORED:&nbsp;%s&nbsp;in&nbsp;%d&nbsp;s",&nbsp;id,&nbsp;time.time()-t0)<br>
49</tt></font></td></tr>
50<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;77</small>&nbsp;<br>
51</tt></font></td></tr>
52<tr><td><small><font color="#909090"><em>global</em> <strong>restore</strong>&nbsp;= &lt;function restore at 0x82e3304&gt;, <strong>res</strong>&nbsp;= &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, <strong>id</strong>&nbsp;= 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', <em>builtin</em> <strong>int</strong>&nbsp;= &lt;type 'int'&gt;, <strong>cfg</strong>&nbsp;= &lt;ncsa_sciarch.config.ConfigProperty object at 0x82e52ac&gt;, cfg.<strong>timeout</strong>&nbsp;= '1200'</font></small></td></tr></table>
53<table width="100%" cellspacing=0 cellpadding=0 border=0>
54<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/www/cgi-bin/DATAarch/dc3GetProduct.py">/var/www/cgi-bin/DATAarch/dc3GetProduct.py</a> in <strong>restore</strong>(res=&lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', timeout=1200)</td></tr>
55<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;104</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lock&nbsp;=&nbsp;inprogress.lockId(id,&nbsp;timeout=60)<br>
56</tt></font></td></tr>
57<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;105</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;not&nbsp;res.available(id):<br>
58</tt></font></td></tr>
59<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;106</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;res.restore(id)<br>
60</tt></td></tr>
61<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;107</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;del&nbsp;lock<br>
62</tt></font></td></tr>
63<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;108</small>&nbsp;<br>
64</tt></font></td></tr>
65<tr><td><small><font color="#909090"><strong>res</strong>&nbsp;= &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, res.<strong>restore</strong>&nbsp;= &lt;bound method Restorer.restore of &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;&gt;, <strong>id</strong>&nbsp;= 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits'</font></small></td></tr></table>
66<table width="100%" cellspacing=0 cellpadding=0 border=0>
67<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/lsst/daf/web/dc3restore.py">/appl/DATAarch/python/lsst/daf/web/dc3restore.py</a> in <strong>restore</strong>(self=&lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits')</td></tr>
68<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;453</small>&nbsp;<br>
69</tt></font></td></tr>
70<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;454</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;restore&nbsp;the&nbsp;tar&nbsp;file&nbsp;into&nbsp;the&nbsp;cache<br>
71</tt></font></td></tr>
72<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;455</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.restore(tid)<br>
73</tt></td></tr>
74<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;456</small>&nbsp;<br>
75</tt></font></td></tr>
76<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;457</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;not&nbsp;os.path.exists(tpath):<br>
77</tt></font></td></tr>
78<tr><td><small><font color="#909090"><strong>self</strong>&nbsp;= &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, self.<strong>restore</strong>&nbsp;= &lt;bound method Restorer.restore of &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;&gt;, <strong>tid</strong>&nbsp;= 'obs/CFHTLS/D1/raw/v723742-fu/s00.tar'</font></small></td></tr></table>
79<table width="100%" cellspacing=0 cellpadding=0 border=0>
80<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/lsst/daf/web/dc3restore.py">/appl/DATAarch/python/lsst/daf/web/dc3restore.py</a> in <strong>restore</strong>(self=&lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, id='obs/CFHTLS/D1/raw/v723742-fu/s00.tar')</td></tr>
81<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;472</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;else&nbsp;restore&nbsp;file&nbsp;from&nbsp;mss<br>
82</tt></font></td></tr>
83<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;473</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sz&nbsp;=&nbsp;int(math.ceil(ditem.getSize()&nbsp;/&nbsp;4096))&nbsp;*&nbsp;4&nbsp;#&nbsp;in&nbsp;allocated&nbsp;blocks<br>
84</tt></font></td></tr>
85<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;474</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reservation&nbsp;=&nbsp;self._opencache(sz)<br>
86</tt></td></tr>
87<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;475</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ditem.copyTo(reservation.stagedir)<br>
88</tt></font></td></tr>
89<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;476</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target&nbsp;=&nbsp;os.path.basename(ditem.getItemPath())<br>
90</tt></font></td></tr>
91<tr><td><small><font color="#909090">reservation <em>undefined</em>, <strong>self</strong>&nbsp;= &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, self.<strong>_opencache</strong>&nbsp;= &lt;bound method Restorer._opencache of &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;&gt;, <strong>sz</strong>&nbsp;= 1380888</font></small></td></tr></table>
92<table width="100%" cellspacing=0 cellpadding=0 border=0>
93<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/lsst/daf/web/dc3restore.py">/appl/DATAarch/python/lsst/daf/web/dc3restore.py</a> in <strong>_opencache</strong>(self=&lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, amount=1380888)</td></tr>
94<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;392</small>&nbsp;<br>
95</tt></font></td></tr>
96<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;393</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;_opencache(self,&nbsp;amount):<br>
97</tt></font></td></tr>
98<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;394</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self._cachemgr.reserve(amount)<br>
99</tt></td></tr>
100<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;395</small>&nbsp;<br>
101</tt></font></td></tr>
102<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;396</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;exists(self,&nbsp;id):<br>
103</tt></font></td></tr>
104<tr><td><small><font color="#909090"><strong>self</strong>&nbsp;= &lt;lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c&gt;, self.<strong>_cachemgr</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc&gt;, self._cachemgr.<strong>reserve</strong>&nbsp;= &lt;bound method CacheMgr.reserve of &lt;ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc&gt;&gt;, <strong>amount</strong>&nbsp;= 1380888</font></small></td></tr></table>
105<table width="100%" cellspacing=0 cellpadding=0 border=0>
106<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/CacheMgr.py">/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/CacheMgr.py</a> in <strong>reserve</strong>(self=&lt;ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc&gt;, amount=1380888, longterm=False, timeout=None)</td></tr>
107<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;81</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;need,&nbsp;cache&nbsp;in&nbsp;filter(lambda&nbsp;c:&nbsp;c[0]&nbsp;&gt;&nbsp;0,&nbsp;needfrom):<br>
108</tt></font></td></tr>
109<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;82</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;cache.available():<br>
110</tt></font></td></tr>
111<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;83</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plan&nbsp;=&nbsp;cache.createRemovalPlan(need)<br>
112</tt></td></tr>
113<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;84</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;plan.getAmountFreed()&nbsp;&gt;=&nbsp;need:<br>
114</tt></font></td></tr>
115<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;85</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plans.append(&nbsp;(plan.getScore(),&nbsp;plan)&nbsp;)<br>
116</tt></font></td></tr>
117<tr><td><small><font color="#909090"><strong>plan</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.simple._RemovalPlan object at 0x86b6d8c&gt;, <strong>cache</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.simple.SimpleCache object at 0x82e568c&gt;, cache.<strong>createRemovalPlan</strong>&nbsp;= &lt;bound method SimpleCache.createRemovalPlan of &lt;...gr.cache.simple.SimpleCache object at 0x82e568c&gt;&gt;, <strong>need</strong>&nbsp;= 1313983.0</font></small></td></tr></table>
118<table width="100%" cellspacing=0 cellpadding=0 border=0>
119<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py">/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py</a> in <strong>createRemovalPlan</strong>(self=&lt;ncsa_sciarch.cachemgr.cache.simple.SimpleCache object at 0x82e568c&gt;, amount=1313983.0)</td></tr>
120<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;121</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""<br>
121</tt></font></td></tr>
122<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;122</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plnr&nbsp;=&nbsp;self._Planner(self,&nbsp;self._scorer,&nbsp;self._comparer,&nbsp;self._logger)<br>
123</tt></font></td></tr>
124<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;123</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;plnr.makePlan(amount)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
125</tt></td></tr>
126<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;124</small>&nbsp;<br>
127</tt></font></td></tr>
128<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;125</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;free(self,&nbsp;amount,&nbsp;lock=None):<br>
129</tt></font></td></tr>
130<tr><td><small><font color="#909090"><strong>plnr</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c&gt;, plnr.<strong>makePlan</strong>&nbsp;= &lt;bound method _Planner.makePlan of &lt;ncsa_sciarch...hemgr.cache.simple._Planner object at 0x82e914c&gt;&gt;, <strong>amount</strong>&nbsp;= 1313983.0</font></small></td></tr></table>
131<table width="100%" cellspacing=0 cellpadding=0 border=0>
132<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py">/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py</a> in <strong>makePlan</strong>(self=&lt;ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c&gt;, amount=1313983.0, urgency=0)</td></tr>
133<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;80</small>&nbsp;<br>
134</tt></font></td></tr>
135<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;81</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;makePlan(self,&nbsp;amount,&nbsp;urgency=0):<br>
136</tt></font></td></tr>
137<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;82</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;items&nbsp;=&nbsp;self._listCache()<br>
138</tt></td></tr>
139<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;83</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;items.sort(self._cmp)<br>
140</tt></font></td></tr>
141<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;84</small>&nbsp;<br>
142</tt></font></td></tr>
143<tr><td><small><font color="#909090"><em>global</em> <strong>items</strong>&nbsp;= &lt;module 'ncsa_sciarch.cachemgr.cache.items' from...ch/python/ncsa_sciarch/cachemgr/cache/items.pyc'&gt;, <strong>self</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c&gt;, self.<strong>_listCache</strong>&nbsp;= &lt;bound method _Planner._listCache of &lt;ncsa_sciar...hemgr.cache.simple._Planner object at 0x82e914c&gt;&gt;</font></small></td></tr></table>
144<table width="100%" cellspacing=0 cellpadding=0 border=0>
145<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py">/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py</a> in <strong>_listCache</strong>(self=&lt;ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c&gt;)</td></tr>
146<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;72</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;set&nbsp;the&nbsp;priority&nbsp;to&nbsp;zero&nbsp;to&nbsp;indicate&nbsp;that&nbsp;this&nbsp;is&nbsp;a&nbsp;trashed<br>
147</tt></font></td></tr>
148<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;73</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;file<br>
149</tt></font></td></tr>
150<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;74</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ditems.addPath(file,&nbsp;0)<br>
151</tt></td></tr>
152<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;75</small>&nbsp;<br>
153</tt></font></td></tr>
154<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;76</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;file&nbsp;in&nbsp;os.listdir(self._cache._cachedir):<br>
155</tt></font></td></tr>
156<tr><td><small><font color="#909090"><strong>ditems</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac&gt;, ditems.<strong>addPath</strong>&nbsp;= &lt;bound method CacheItemList.addPath of &lt;ncsa_sci...r.cache.items.CacheItemList object at 0x82e90ac&gt;&gt;, <strong>file</strong>&nbsp;= 'cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'</font></small></td></tr></table>
157<table width="100%" cellspacing=0 cellpadding=0 border=0>
158<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py">/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py</a> in <strong>addPath</strong>(self=&lt;ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac&gt;, path='cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', priority=0, score=None)</td></tr>
159<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;152</small>&nbsp;<br>
160</tt></font></td></tr>
161<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;153</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;addPath(self,&nbsp;path,&nbsp;priority=1,&nbsp;score=None):<br>
162</tt></font></td></tr>
163<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;154</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self._additem(CacheItem.makeFor(path,&nbsp;self._cachedir,&nbsp;priority),&nbsp;score)<br>
164</tt></td></tr>
165<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;155</small>&nbsp;<br>
166</tt></font></td></tr>
167<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;156</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;addData(self,&nbsp;path,&nbsp;size,&nbsp;atime,&nbsp;mtime,&nbsp;priority=1,&nbsp;isdir=False,&nbsp;<br>
168</tt></font></td></tr>
169<tr><td><small><font color="#909090"><strong>self</strong>&nbsp;= &lt;ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac&gt;, self.<strong>_additem</strong>&nbsp;= &lt;bound method CacheItemList._additem of &lt;ncsa_sc...r.cache.items.CacheItemList object at 0x82e90ac&gt;&gt;, <em>global</em> <strong>CacheItem</strong>&nbsp;= &lt;class 'ncsa_sciarch.cachemgr.cache.items.CacheItem'&gt;, CacheItem.<strong>makeFor</strong>&nbsp;= &lt;function makeFor at 0x82cd72c&gt;, <strong>path</strong>&nbsp;= 'cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', self.<strong>_cachedir</strong>&nbsp;= '/data/cache/1/datacache/cache', <strong>priority</strong>&nbsp;= 0, <strong>score</strong>&nbsp;= None</font></small></td></tr></table>
170<table width="100%" cellspacing=0 cellpadding=0 border=0>
171<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py">/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py</a> in <strong>makeFor</strong>(path='cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', cachedir='/data/cache/1/datacache/cache', priority=0, size=None)</td></tr>
172<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;41</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;cachedir&nbsp;and&nbsp;not&nbsp;os.path.isabs(fullpath):<br>
173</tt></font></td></tr>
174<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;42</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fullpath&nbsp;=&nbsp;os.path.join(cachedir,&nbsp;path)<br>
175</tt></font></td></tr>
176<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;43</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs&nbsp;=&nbsp;os.stat(fullpath)<br>
177</tt></td></tr>
178<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;44</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isdir&nbsp;=&nbsp;stat.S_ISDIR(fs.st_mode)<br>
179</tt></font></td></tr>
180<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;45</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;size&nbsp;is&nbsp;None:<br>
181</tt></font></td></tr>
182<tr><td><small><font color="#909090">fs <em>undefined</em>, <em>global</em> <strong>os</strong>&nbsp;= &lt;module 'os' from '/lsst/DC3/stacks/32bit/19aug10/Linux/external/python/2.5.2/lib/python2.5/os.pyc'&gt;, os.<strong>stat</strong>&nbsp;= &lt;built-in function stat&gt;, <strong>fullpath</strong>&nbsp;= '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'</font></small></td></tr></table><p><strong>&lt;type 'exceptions.OSError'&gt;</strong>: [Errno 2] No such file or directory: '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
183<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>args&nbsp;=
184(2, 'No such file or directory')
185<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>errno&nbsp;=
1862
187<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>filename&nbsp;=
188'/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
189<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>message&nbsp;=
190''
191<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>strerror&nbsp;=
192'No such file or directory'
193
194
195<!-- The above is a description of an error in a Python program, formatted
196     for a Web browser because the 'cgitb' module was enabled.  In case you
197     are not reading this in a Web browser, here is the original traceback:
198
199Traceback (most recent call last):
200  File "/var/www/cgi-bin/DATAarch/dc3GetProduct.py", line 128, in &lt;module&gt;
201    main()
202  File "/var/www/cgi-bin/DATAarch/dc3GetProduct.py", line 56, in main
203    deliver(id, cfg)
204  File "/var/www/cgi-bin/DATAarch/dc3GetProduct.py", line 75, in deliver
205    restore(res, id, int(cfg.timeout))
206  File "/var/www/cgi-bin/DATAarch/dc3GetProduct.py", line 106, in restore
207    res.restore(id)
208  File "/appl/DATAarch/python/lsst/daf/web/dc3restore.py", line 455, in restore
209    self.restore(tid)
210  File "/appl/DATAarch/python/lsst/daf/web/dc3restore.py", line 474, in restore
211    reservation = self._opencache(sz)
212  File "/appl/DATAarch/python/lsst/daf/web/dc3restore.py", line 394, in _opencache
213    return self._cachemgr.reserve(amount)
214  File "/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/CacheMgr.py", line 83, in reserve
215    plan = cache.createRemovalPlan(need)
216  File "/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py", line 123, in createRemovalPlan
217    return plnr.makePlan(amount)
218  File "/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py", line 82, in makePlan
219    items = self._listCache()
220  File "/appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py", line 74, in _listCache
221    ditems.addPath(file, 0)
222  File "/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py", line 154, in addPath
223    self._additem(CacheItem.makeFor(path, self._cachedir, priority), score)
224  File "/home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py", line 43, in makeFor
225    fs = os.stat(fullpath)
226OSError: [Errno 2] No such file or directory: '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
227
228-->
229