]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - NEWS
Add a test for upload.shares_by_server
[tahoe-lafs/tahoe-lafs.git] / NEWS
1 User visible changes in Tahoe-LAFS.  -*- outline -*-
2
3 * Release 1.6.1 (2010-02-27)
4
5 ** Bugfixes
6
7 *** Correct handling of Small Immutable Directories
8
9 Immutable directories can now be deep-checked and listed in the web UI in
10 all cases. (In v1.6.0, some operations, such as deep-check, on a directory
11 graph that included very small immutable directories, would result in an
12 exception causing the whole operation to abort.) (#948)
13
14 ** Usability Improvements
15
16 Improved user interface messages and error reporting. (#681, #837, #939)
17
18 The timeouts for operation handles have been greatly increased, so that
19 you can view the results of an operation up to 4 days after it has
20 completed. After viewing them for the first time, the results are
21 retained for a further day. (#577)
22
23 * Release 1.6.0 (2010-02-01)
24
25 ** New Features
26
27 *** Immutable Directories
28
29 Tahoe-LAFS can now create and handle immutable directories. (#607, #833, #931)
30 These are read just like normal directories, but are "deep-immutable", meaning
31 that all their children (and everything reachable from those children) must be
32 immutable objects (i.e. immutable or literal files, and other immutable
33 directories).
34
35 These directories must be created in a single webapi call that provides all
36 of the children at once. (Since they cannot be changed after creation, the
37 usual create/add/add sequence cannot be used.) They have URIs that start with
38 "URI:DIR2-CHK:" or "URI:DIR2-LIT:", and are described on the human-facing web
39 interface (aka the "WUI") with a "DIR-IMM" abbreviation (as opposed to "DIR"
40 for the usual read-write directories and "DIR-RO" for read-only directories).
41
42 Tahoe-LAFS releases before 1.6.0 cannot read the contents of an immutable
43 directory. 1.5.0 will tolerate their presence in a directory listing (and
44 display it as "unknown"). 1.4.1 and earlier cannot tolerate them: a DIR-IMM
45 child in any directory will prevent the listing of that directory.
46
47 Immutable directories are repairable, just like normal immutable files.
48
49 The webapi "POST t=mkdir-immutable" call is used to create immutable
50 directories. See docs/frontends/webapi.txt for details.
51
52 *** "tahoe backup" now creates immutable directories, backupdb has dircache
53
54 The "tahoe backup" command has been enhanced to create immutable directories
55 (in previous releases, it created read-only mutable directories) (#828). This
56 is significantly faster, since it does not need to create an RSA keypair for
57 each new directory. Also "DIR-IMM" immutable directories are repairable, unlike
58 "DIR-RO" read-only mutable directories at present. (A future Tahoe-LAFS release
59 should also be able to repair DIR-RO.)
60
61 In addition, the backupdb (used by "tahoe backup" to remember what it has
62 already copied) has been enhanced to store information about existing immutable
63 directories. This allows it to re-use directories that have moved but still
64 contain identical contents, or that have been deleted and later replaced. (The
65 1.5.0 "tahoe backup" command could only re-use directories that were in the
66 same place as they were in the immediately previous backup.)  With this change,
67 the backup process no longer needs to read the previous snapshot out of the
68 Tahoe-LAFS grid, reducing the network load considerably. (#606)
69
70 A "null backup" (in which nothing has changed since the previous backup) will
71 require only two Tahoe-side operations: one to add an Archives/$TIMESTAMP
72 entry, and a second to update the Latest/ link. On the local disk side, it
73 will readdir() all your local directories and stat() all your local files.
74
75 If you've been using "tahoe backup" for a while, you will notice that your
76 first use of it after upgrading to 1.6.0 may take a long time: it must create
77 proper immutable versions of all the old read-only mutable directories. This
78 process won't take as long as the initial backup (where all the file contents
79 had to be uploaded too): it will require time proportional to the number and
80 size of your directories. After this initial pass, all subsequent passes
81 should take a tiny fraction of the time.
82
83 As noted above, Tahoe-LAFS versions earlier than 1.5.0 cannot list a directory
84 containing an immutable subdirectory. Tahoe-LAFS versions earlier than 1.6.0
85 cannot read the contents of an immutable directory.
86
87 The "tahoe backup" command has been improved to skip over unreadable objects
88 (like device files, named pipes, and files with permissions that prevent the
89 command from reading their contents), instead of throwing an exception and
90 terminating the backup process. It also skips over symlinks, because these
91 cannot be represented faithfully in the Tahoe-side filesystem. A warning
92 message will be emitted each time something is skipped. (#729, #850, #641)
93
94 *** "create-node" command added, "create-client" now implies --no-storage
95
96 The basic idea behind Tahoe-LAFS's client+server and client-only processes is
97 that you are creating a general-purpose Tahoe-LAFS "node" process, which has
98 several components that can be activated. Storage service is one of these
99 optional components, as is the Helper, FTP server, and SFTP server. Web gateway
100 functionality is nominally on this list, but it is always active; a future
101 release will make it optional. There are three special purpose servers that
102 can't currently be run as a component in a node: introducer, key-generator,
103 and stats-gatherer.
104
105 So now "tahoe create-node" will create a Tahoe-LAFS node process, and after
106 creation you can edit its tahoe.cfg to enable or disable the desired
107 services. It is a more general-purpose replacement for "tahoe create-client".
108 The default configuration has storage service enabled. For convenience, the
109 "--no-storage" argument makes a tahoe.cfg file that disables storage
110 service. (#760)
111
112 "tahoe create-client" has been changed to create a Tahoe-LAFS node without a
113 storage service. It is equivalent to "tahoe create-node --no-storage". This
114 helps to reduce the confusion surrounding the use of a command with "client" in
115 its name to create a storage *server*. Use "tahoe create-client" to create a
116 purely client-side node. If you want to offer storage to the grid, use
117 "tahoe create-node" instead.
118
119 In the future, other services will be added to the node, and they will be
120 controlled through options in tahoe.cfg . The most important of these
121 services may get additional --enable-XYZ or --disable-XYZ arguments to
122 "tahoe create-node".
123
124 ** Performance Improvements
125
126 Download of immutable files begins as soon as the downloader has located the K
127 necessary shares (#928, #287). In both the previous and current releases, a
128 downloader will first issue queries to all storage servers on the grid to
129 locate shares before it begins downloading the shares. In previous releases of
130 Tahoe-LAFS, download would not begin until all storage servers on the grid had
131 replied to the query, at which point K shares would be chosen for download from
132 among the shares that were located. In this release, download begins as soon as
133 any K shares are located. This means that downloads start sooner, which is
134 particularly important if there is a server on the grid that is extremely slow
135 or even hung in such a way that it will never respond. In previous releases
136 such a server would have a negative impact on all downloads from that grid. In
137 this release, such a server will have no impact on downloads, as long as K
138 shares can be found on other, quicker, servers.  This also means that
139 downloads now use the "best-alacrity" servers that they talk to, as measured by
140 how quickly the servers reply to the initial query. This might cause downloads
141 to go faster, especially on grids with heterogeneous servers or geographical
142 dispersion.
143
144 ** Minor Changes
145
146 The webapi acquired a new "t=mkdir-with-children" command, to create and
147 populate a directory in a single call. This is significantly faster than
148 using separate "t=mkdir" and "t=set-children" operations (it uses one
149 gateway-to-grid roundtrip, instead of three or four). (#533)
150
151 The t=set-children (note the hyphen) operation is now documented in
152 docs/frontends/webapi.txt, and is the new preferred spelling of the old
153 t=set_children (with an underscore). The underscore version remains for
154 backwards compatibility. (#381, #927)
155
156 The tracebacks produced by errors in CLI tools should now be in plain text,
157 instead of HTML (which is unreadable outside of a browser). (#646)
158
159 The [storage]reserved_space configuration knob (which causes the storage
160 server to refuse shares when available disk space drops below a threshold)
161 should work on Windows now, not just UNIX. (#637)
162
163 "tahoe cp" should now exit with status "1" if it cannot figure out a suitable
164 target filename, such as when you copy from a bare filecap. (#761)
165
166 "tahoe get" no longer creates a zero-length file upon error. (#121)
167
168 "tahoe ls" can now list single files. (#457)
169
170 "tahoe deep-check --repair" should tolerate repair failures now, instead of
171 halting traversal. (#874, #786)
172
173 "tahoe create-alias" no longer corrupts the aliases file if it had
174 previously been edited to have no trailing newline. (#741)
175
176 Many small packaging improvements were made to facilitate the "tahoe-lafs"
177 package being included in Ubuntu. Several mac/win32 binary libraries were
178 removed, some figleaf code-coverage files were removed, a bundled copy of
179 darcsver-1.2.1 was removed, and additional licensing text was added.
180
181 Several DeprecationWarnings for python2.6 were silenced. (#859)
182
183 The checker --add-lease option would sometimes fail for shares stored
184 on old (Tahoe v1.2.0) servers. (#875)
185
186 The documentation for installing on Windows (docs/install.html) has been
187 improved. (#773)
188
189 For other changes not mentioned here, see
190 <http://allmydata.org/trac/tahoe/query?milestone=1.6.0&keywords=!~news-done>.
191 To include the tickets mentioned above, go to
192 <http://allmydata.org/trac/tahoe/query?milestone=1.6.0>.
193
194
195 * Release 1.5.0 (2009-08-01)
196
197 ** Improvements
198
199 Uploads of immutable files now use pipelined writes, improving upload speed
200 slightly (10%) over high-latency connections. (#392)
201
202 Processing large directories has been sped up, by removing a O(N^2) algorithm
203 from the dirnode decoding path and retaining unmodified encrypted entries.
204 (#750, #752)
205
206 The human-facing web interface (aka the "WUI") received a significant CSS
207 makeover by Kevin Reid, making it much prettier and easier to read. The WUI
208 "check" and "deep-check" forms now include a "Renew Lease" checkbox,
209 mirroring the CLI --add-lease option, so leases can be added or renewed from
210 the web interface.
211
212 The CLI "tahoe mv" command now refuses to overwrite directories. (#705)
213
214 The CLI "tahoe webopen" command, when run without arguments, will now bring
215 up the "Welcome Page" (node status and mkdir/upload forms).
216
217 The 3.5MB limit on mutable files was removed, so it should be possible to
218 upload arbitrarily-sized mutable files. Note, however, that the data format
219 and algorithm remains the same, so using mutable files still requires
220 bandwidth, computation, and RAM in proportion to the size of the mutable file.
221 (#694)
222
223 This version of Tahoe-LAFS will tolerate directory entries that contain filecap
224 formats which it does not recognize: files and directories from the future.
225 This should improve the user experience (for 1.5.0 users) when we add new cap
226 formats in the future. Previous versions would fail badly, preventing the user
227 from seeing or editing anything else in those directories. These unrecognized
228 objects can be renamed and deleted, but obviously not read or written. Also
229 they cannot generally be copied. (#683)
230
231 ** Bugfixes
232
233 deep-check-and-repair now tolerates read-only directories, such as the ones
234 produced by the "tahoe backup" CLI command. Read-only directories and mutable
235 files are checked, but not repaired. Previous versions threw an exception
236 when attempting the repair and failed to process the remaining contents. We
237 cannot yet repair these read-only objects, but at least this version allows
238 the rest of the check+repair to proceed. (#625)
239
240 A bug in 1.4.1 which caused a server to be listed multiple times (and
241 frequently broke all connections to that server) was fixed. (#653)
242
243 The plaintext-hashing code was removed from the Helper interface, removing
244 the Helper's ability to mount a partial-information-guessing attack. (#722)
245
246 ** Platform/packaging changes
247
248 Tahoe-LAFS now runs on NetBSD, OpenBSD, ArchLinux, and NixOS, and on an
249 embedded system based on an ARM CPU running at 266 MHz.
250
251 Unit test timeouts have been raised to allow the tests to complete on
252 extremely slow platforms like embedded ARM-based NAS boxes, which may take
253 several hours to run the test suite. An ARM-specific data-corrupting bug in
254 an older version of Crypto++ (5.5.2) was identified: ARM-users are encouraged
255 to use recent Crypto++/pycryptopp which avoids this problem.
256
257 Tahoe-LAFS now requires a SQLite library, either the sqlite3 that comes
258 built-in with python2.5/2.6, or the add-on pysqlite2 if you're using
259 python2.4. In the previous release, this was only needed for the "tahoe backup"
260 command: now it is mandatory.
261
262 Several minor documentation updates were made.
263
264 To help get Tahoe-LAFS into Linux distributions like Fedora and Debian,
265 packaging improvements are being made in both Tahoe-LAFS and related libraries
266 like pycryptopp and zfec.
267
268 The Crypto++ library included in the pycryptopp package has been upgraded to
269 version 5.6.0 of Crypto++, which includes a more efficient implementation of
270 SHA-256 in assembly for x86 or amd64 architectures.
271
272 ** dependency updates
273
274  foolscap-0.4.1
275  no python-2.4.0 or 2.4.1 (2.4.2 is good)
276   (they contained a bug in base64.b32decode)
277  avoid python-2.6 on windows with mingw: compiler issues
278  python2.4 requires pysqlite2 (2.5,2.6 does not)
279  no python-3.x
280  pycryptopp-0.5.15
281
282
283 * Release 1.4.1 (2009-04-13)
284
285 ** Garbage Collection
286
287 The big feature for this release is the implementation of garbage collection,
288 allowing Tahoe storage servers to delete shares for old deleted files. When
289 enabled, this uses a "mark and sweep" process: clients are responsible for
290 updating the leases on their shares (generally by running "tahoe deep-check
291 --add-lease"), and servers are allowed to delete any share which does not
292 have an up-to-date lease. The process is described in detail in
293 docs/garbage-collection.txt .
294
295 The server must be configured to enable garbage-collection, by adding
296 directives to the [storage] section that define an age limit for shares. The
297 default configuration will not delete any shares.
298
299 Both servers and clients should be upgraded to this release to make the
300 garbage-collection as pleasant as possible. 1.2.0 servers have code to
301 perform the update-lease operation but it suffers from a fatal bug, while
302 1.3.0 servers have update-lease but will return an exception for unknown
303 storage indices, causing clients to emit an Incident for each exception,
304 slowing the add-lease process down to a crawl. 1.1.0 servers did not have the
305 add-lease operation at all.
306
307 ** Security/Usability Problems Fixed
308
309 A super-linear algorithm in the Merkle Tree code was fixed, which previously
310 caused e.g. download of a 10GB file to take several hours before the first
311 byte of plaintext could be produced. The new "alacrity" is about 2 minutes. A
312 future release should reduce this to a few seconds by fixing ticket #442.
313
314 The previous version permitted a small timing attack (due to our use of
315 strcmp) against the write-enabler and lease-renewal/cancel secrets. An
316 attacker who could measure response-time variations of approximatly 3ns
317 against a very noisy background time of about 15ms might be able to guess
318 these secrets. We do not believe this attack was actually feasible. This
319 release closes the attack by first hashing the two strings to be compared
320 with a random secret.
321
322 ** webapi changes
323
324 In most cases, HTML tracebacks will only be sent if an "Accept: text/html"
325 header was provided with the HTTP request. This will generally cause browsers
326 to get an HTMLized traceback but send regular text/plain tracebacks to
327 non-browsers (like the CLI clients). More errors have been mapped to useful
328 HTTP error codes.
329
330 The streaming webapi operations (deep-check and manifest) now have a way to
331 indicate errors (an output line that starts with "ERROR" instead of being
332 legal JSON). See docs/frontends/webapi.txt for details.
333
334 The storage server now has its own status page (at /storage), linked from the
335 Welcome page. This page shows progress and results of the two new
336 share-crawlers: one which merely counts shares (to give an estimate of how
337 many files/directories are being stored in the grid), the other examines
338 leases and reports how much space would be freed if GC were enabled. The page
339 also shows how much disk space is present, used, reserved, and available for
340 the Tahoe server, and whether the server is currently running in "read-write"
341 mode or "read-only" mode.
342
343 When a directory node cannot be read (perhaps because of insufficent shares),
344 a minimal webapi page is created so that the "more-info" links (including a
345 Check/Repair operation) will still be accessible.
346
347 A new "reliability" page was added, with the beginnings of work on a
348 statistical loss model. You can tell this page how many servers you are using
349 and their independent failure probabilities, and it will tell you the
350 likelihood that an arbitrary file will survive each repair period. The
351 "numpy" package must be installed to access this page. A partial paper,
352 written by Shawn Willden, has been added to docs/proposed/lossmodel.lyx .
353
354 ** CLI changes
355
356 "tahoe check" and "tahoe deep-check" now accept an "--add-lease" argument, to
357 update a lease on all shares. This is the "mark" side of garbage collection.
358
359 In many cases, CLI error messages have been improved: the ugly HTMLized
360 traceback has been replaced by a normal python traceback.
361
362 "tahoe deep-check" and "tahoe manifest" now have better error reporting.
363 "tahoe cp" is now non-verbose by default.
364
365 "tahoe backup" now accepts several "--exclude" arguments, to ignore certain
366 files (like editor temporary files and version-control metadata) during
367 backup.
368
369 On windows, the CLI now accepts local paths like "c:\dir\file.txt", which
370 previously was interpreted as a Tahoe path using a "c:" alias.
371
372 The "tahoe restart" command now uses "--force" by default (meaning it will
373 start a node even if it didn't look like there was one already running).
374
375 The "tahoe debug consolidate" command was added. This takes a series of
376 independent timestamped snapshot directories (such as those created by the
377 allmydata.com windows backup program, or a series of "tahoe cp -r" commands)
378 and creates new snapshots that used shared read-only directories whenever
379 possible (like the output of "tahoe backup"). In the most common case (when
380 the snapshots are fairly similar), the result will use significantly fewer
381 directories than the original, allowing "deep-check" and similar tools to run
382 much faster. In some cases, the speedup can be an order of magnitude or more.
383 This tool is still somewhat experimental, and only needs to be run on large
384 backups produced by something other than "tahoe backup", so it was placed
385 under the "debug" category.
386
387 "tahoe cp -r --caps-only tahoe:dir localdir" is a diagnostic tool which,
388 instead of copying the full contents of files into the local directory,
389 merely copies their filecaps. This can be used to verify the results of a
390 "consolidation" operation.
391
392 ** other fixes
393
394 The codebase no longer rauses RuntimeError as a kind of assert(). Specific
395 exception classes were created for each previous instance of RuntimeError.
396
397 Many unit tests were changed to use a non-network test harness, speeding them
398 up considerably.
399
400 Deep-traversal operations (manifest and deep-check) now walk individual
401 directories in alphabetical order. Occasional turn breaks are inserted to
402 prevent a stack overflow when traversing directories with hundreds of
403 entries.
404
405 The experimental SFTP server had its path-handling logic changed slightly, to
406 accomodate more SFTP clients, although there are still issues (#645).
407
408
409 * Release 1.3.0 (2009-02-13)
410
411 ** Checker/Verifier/Repairer
412
413 The primary focus of this release has been writing a checker / verifier /
414 repairer for files and directories.  "Checking" is the act of asking storage
415 servers whether they have a share for the given file or directory: if there
416 are not enough shares available, the file or directory will be
417 unrecoverable. "Verifying" is the act of downloading and cryptographically
418 asserting that the server's share is undamaged: it requires more work
419 (bandwidth and CPU) than checking, but can catch problems that simple
420 checking cannot. "Repair" is the act of replacing missing or damaged shares
421 with new ones.
422
423 This release includes a full checker, a partial verifier, and a partial
424 repairer. The repairer is able to handle missing shares: new shares are
425 generated and uploaded to make up for the missing ones. This is currently the
426 best application of the repairer: to replace shares that were lost because of
427 server departure or permanent drive failure.
428
429 The repairer in this release is somewhat able to handle corrupted shares. The
430 limitations are:
431
432  * Immutable verifier is incomplete: not all shares are used, and not all
433    fields of those shares are verified. Therefore the immutable verifier has
434    only a moderate chance of detecting corrupted shares.
435  * The mutable verifier is mostly complete: all shares are examined, and most
436    fields of the shares are validated.
437  * The storage server protocol offers no way for the repairer to replace or
438    delete immutable shares. If corruption is detected, the repairer will
439    upload replacement shares to other servers, but the corrupted shares will
440    be left in place.
441  * read-only directories and read-only mutable files must be repaired by
442    someone who holds the write-cap: the read-cap is insufficient. Moreover,
443    the deep-check-and-repair operation will halt with an error if it attempts
444    to repair one of these read-only objects.
445  * Some forms of corruption can cause both download and repair operations to
446    fail. A future release will fix this, since download should be tolerant of
447    any corruption as long as there are at least 'k' valid shares, and repair
448    should be able to fix any file that is downloadable.
449
450 If the downloader, verifier, or repairer detects share corruption, the
451 servers which provided the bad shares will be notified (via a file placed in
452 the BASEDIR/storage/corruption-advisories directory) so their operators can
453 manually delete the corrupted shares and investigate the problem. In
454 addition, the "incident gatherer" mechanism will automatically report share
455 corruption to an incident gatherer service, if one is configured. Note that
456 corrupted shares indicate hardware failures, serious software bugs, or malice
457 on the part of the storage server operator, so a corrupted share should be
458 considered highly unusual.
459
460 By periodically checking/repairing all files and directories, objects in the
461 Tahoe filesystem remain resistant to recoverability failures due to missing
462 and/or broken servers.
463
464 This release includes a wapi mechanism to initiate checks on individual
465 files and directories (with or without verification, and with or without
466 automatic repair). A related mechanism is used to initiate a "deep-check" on
467 a directory: recursively traversing the directory and its children, checking
468 (and/or verifying/repairing) everything underneath. Both mechanisms can be
469 run with an "output=JSON" argument, to obtain machine-readable check/repair
470 status results. These results include a copy of the filesystem statistics
471 from the "deep-stats" operation (including total number of files, size
472 histogram, etc). If repair is possible, a "Repair" button will appear on the
473 results page.
474
475 The client web interface now features some extra buttons to initiate check
476 and deep-check operations. When these operations finish, they display a
477 results page that summarizes any problems that were encountered. All
478 long-running deep-traversal operations, including deep-check, use a
479 start-and-poll mechanism, to avoid depending upon a single long-lived HTTP
480 connection. docs/frontends/webapi.txt has details.
481
482 ** Efficient Backup
483
484 The "tahoe backup" command is new in this release, which creates efficient
485 versioned backups of a local directory. Given a local pathname and a target
486 Tahoe directory, this will create a read-only snapshot of the local directory
487 in $target/Archives/$timestamp. It will also create $target/Latest, which is
488 a reference to the latest such snapshot. Each time you run "tahoe backup"
489 with the same source and target, a new $timestamp snapshot will be added.
490 These snapshots will share directories that have not changed since the last
491 backup, to speed up the process and minimize storage requirements. In
492 addition, a small database is used to keep track of which local files have
493 been uploaded already, to avoid uploading them a second time. This
494 drastically reduces the work needed to do a "null backup" (when nothing has
495 changed locally), making "tahoe backup' suitable to run from a daily cronjob.
496
497 Note that the "tahoe backup" CLI command must be used in conjunction with a
498 1.3.0-or-newer Tahoe client node; there was a bug in the 1.2.0 webapi
499 implementation that would prevent the last step (create $target/Latest) from
500 working.
501
502 ** Large Files
503
504 The 12GiB (approximate) immutable-file-size limitation is lifted. This
505 release knows how to handle so-called "v2 immutable shares", which permit
506 immutable files of up to about 18 EiB (about 3*10^14). These v2 shares are
507 created if the file to be uploaded is too large to fit into v1 shares. v1
508 shares are created if the file is small enough to fit into them, so that
509 files created with tahoe-1.3.0 can still be read by earlier versions if they
510 are not too large. Note that storage servers also had to be changed to
511 support larger files, and this release is the first release in which they are
512 able to do that. Clients will detect which servers are capable of supporting
513 large files on upload and will not attempt to upload shares of a large file
514 to a server which doesn't support it.
515
516 ** FTP/SFTP Server
517
518 Tahoe now includes experimental FTP and SFTP servers. When configured with a
519 suitable method to translate username+password into a root directory cap, it
520 provides simple access to the virtual filesystem. Remember that FTP is
521 completely unencrypted: passwords, filenames, and file contents are all sent
522 over the wire in cleartext, so FTP should only be used on a local (127.0.0.1)
523 connection. This feature is still in development: there are no unit tests
524 yet, and behavior with respect to Unicode filenames is uncertain. Please see
525 docs/frontends/FTP-and-SFTP.txt for configuration details. (#512, #531)
526
527 ** CLI Changes
528
529 This release adds the 'tahoe create-alias' command, which is a combination of
530 'tahoe mkdir' and 'tahoe add-alias'. This also allows you to start using a
531 new tahoe directory without exposing its URI in the argv list, which is
532 publicly visible (through the process table) on most unix systems.  Thanks to
533 Kevin Reid for bringing this issue to our attention.
534
535 The single-argument form of "tahoe put" was changed to create an unlinked
536 file. I.e. "tahoe put bar.txt" will take the contents of a local "bar.txt"
537 file, upload them to the grid, and print the resulting read-cap; the file
538 will not be attached to any directories. This seemed a bit more useful than
539 the previous behavior (copy stdin, upload to the grid, attach the resulting
540 file into your default tahoe: alias in a child named 'bar.txt').
541
542 "tahoe put" was also fixed to handle mutable files correctly: "tahoe put
543 bar.txt URI:SSK:..." will read the contents of the local bar.txt and use them
544 to replace the contents of the given mutable file.
545
546 The "tahoe webopen" command was modified to accept aliases. This means "tahoe
547 webopen tahoe:" will cause your web browser to open to a "wui" page that
548 gives access to the directory associated with the default "tahoe:" alias. It
549 should also accept leading slashes, like "tahoe webopen tahoe:/stuff".
550
551 Many esoteric debugging commands were moved down into a "debug" subcommand:
552
553  tahoe debug dump-cap
554  tahoe debug dump-share
555  tahoe debug find-shares
556  tahoe debug catalog-shares
557  tahoe debug corrupt-share
558
559 The last command ("tahoe debug corrupt-share") flips a random bit of the
560 given local sharefile. This is used to test the file verifying/repairing
561 code, and obviously should not be used on user data.
562
563 The cli might not correctly handle arguments which contain non-ascii
564 characters in Tahoe v1.3 (although depending on your platform it
565 might, especially if your platform can be configured to pass such
566 characters on the command-line in utf-8 encoding).  See
567 http://allmydata.org/trac/tahoe/ticket/565 for details.
568
569 ** Web changes
570
571 The "default webapi port", used when creating a new client node (and in the
572 getting-started documentation), was changed from 8123 to 3456, to reduce
573 confusion when Tahoe accessed through a Firefox browser on which the
574 "Torbutton" extension has been installed. Port 8123 is occasionally used as a
575 Tor control port, so Torbutton adds 8123 to Firefox's list of "banned ports"
576 to avoid CSRF attacks against Tor. Once 8123 is banned, it is difficult to
577 diagnose why you can no longer reach a Tahoe node, so the Tahoe default was
578 changed. Note that 3456 is reserved by IANA for the "vat" protocol, but there
579 are argueably more Torbutton+Tahoe users than vat users these days. Note that
580 this will only affect newly-created client nodes. Pre-existing client nodes,
581 created by earlier versions of tahoe, may still be listening on 8123.
582
583 All deep-traversal operations (start-manifest, start-deep-size,
584 start-deep-stats, start-deep-check) now use a start-and-poll approach,
585 instead of using a single (fragile) long-running synchronous HTTP connection.
586 All these "start-" operations use POST instead of GET. The old "GET
587 manifest", "GET deep-size", and "POST deep-check" operations have been
588 removed.
589
590 The new "POST start-manifest" operation, when it finally completes, results
591 in a table of (path,cap), instead of the list of verifycaps produced by the
592 old "GET manifest". The table is available in several formats: use
593 output=html, output=text, or output=json to choose one. The JSON output also
594 includes stats, and a list of verifycaps and storage-index strings.
595
596 The "return_to=" and "when_done=" arguments have been removed from the
597 t=check and deep-check operations.
598
599 The top-level status page (/status) now has a machine-readable form, via
600 "/status/?t=json". This includes information about the currently-active
601 uploads and downloads, which may be useful for frontends that wish to display
602 progress information. There is no easy way to correlate the activities
603 displayed here with recent wapi requests, however.
604
605 Any files in BASEDIR/public_html/ (configurable) will be served in response
606 to requests in the /static/ portion of the URL space. This will simplify the
607 deployment of javascript-based frontends that can still access wapi calls
608 by conforming to the (regrettable) "same-origin policy".
609
610 The welcome page now has a "Report Incident" button, which is tied into the
611 "Incident Gatherer" machinery. If the node is attached to an incident
612 gatherer (via log_gatherer.furl), then pushing this button will cause an
613 Incident to be signalled: this means recent log events are aggregated and
614 sent in a bundle to the gatherer. The user can push this button after
615 something strange takes place (and they can provide a short message to go
616 along with it), and the relevant data will be delivered to a centralized
617 incident-gatherer for later processing by operations staff.
618
619 The "HEAD" method should now work correctly, in addition to the usual "GET",
620 "PUT", and "POST" methods. "HEAD" is supposed to return exactly the same
621 headers as "GET" would, but without any of the actual response body data. For
622 mutable files, this now does a brief mapupdate (to figure out the size of the
623 file that would be returned), without actually retrieving the file's
624 contents.
625
626 The "GET" operation on files can now support the HTTP "Range:" header,
627 allowing requests for partial content. This allows certain media players to
628 correctly stream audio and movies out of a Tahoe grid. The current
629 implementation uses a disk-based cache in BASEDIR/private/cache/download ,
630 which holds the plaintext of the files being downloaded. Future
631 implementations might not use this cache. GET for immutable files now returns
632 an ETag header.
633
634 Each file and directory now has a "Show More Info" web page, which contains
635 much of the information that was crammed into the directory page before. This
636 includes readonly URIs, storage index strings, object type, buttons to
637 control checking/verifying/repairing, and deep-check/deep-stats buttons (for
638 directories). For mutable files, the "replace contents" upload form has been
639 moved here too. As a result, the directory page is now much simpler and
640 cleaner, and several potentially-misleading links (like t=uri) are now gone.
641
642 Slashes are discouraged in Tahoe file/directory names, since they cause
643 problems when accessing the filesystem through the wapi. However, there are
644 a couple of accidental ways to generate such names. This release tries to
645 make it easier to correct such mistakes by escaping slashes in several
646 places, allowing slashes in the t=info and t=delete commands, and in the
647 source (but not the target) of a t=rename command.
648
649 ** Packaging
650
651 Tahoe's dependencies have been extended to require the "[secure_connections]"
652 feature from Foolscap, which will cause pyOpenSSL to be required and/or
653 installed. If OpenSSL and its development headers are already installed on
654 your system, this can occur automatically. Tahoe now uses pollreactor
655 (instead of the default selectreactor) to work around a bug between pyOpenSSL
656 and the most recent release of Twisted (8.1.0). This bug only affects unit
657 tests (hang during shutdown), and should not impact regular use.
658
659 The Tahoe source code tarballs now come in two different forms: regular and
660 "sumo". The regular tarball contains just Tahoe, nothing else. When building
661 from the regular tarball, the build process will download any unmet
662 dependencies from the internet (starting with the index at PyPI) so it can
663 build and install them. The "sumo" tarball contains copies of all the
664 libraries that Tahoe requires (foolscap, twisted, zfec, etc), so using the
665 "sumo" tarball should not require any internet access during the build
666 process. This can be useful if you want to build Tahoe while on an airplane,
667 a desert island, or other bandwidth-limited environments.
668
669 Similarly, allmydata.org now hosts a "tahoe-deps" tarball which contains the
670 latest versions of all these dependencies. This tarball, located at
671 http://allmydata.org/source/tahoe/deps/tahoe-deps.tar.gz, can be unpacked in
672 the tahoe source tree (or in its parent directory), and the build process
673 should satisfy its downloading needs from it instead of reaching out to PyPI.
674 This can be useful if you want to build Tahoe from a darcs checkout while on
675 that airplane or desert island.
676
677 Because of the previous two changes ("sumo" tarballs and the "tahoe-deps"
678 bundle), most of the files have been removed from misc/dependencies/ . This
679 brings the regular Tahoe tarball down to 2MB (compressed), and the darcs
680 checkout (without history) to about 7.6MB. A full darcs checkout will still
681 be fairly large (because of the historical patches which included the
682 dependent libraries), but a 'lazy' one should now be small.
683
684 The default "make" target is now an alias for "setup.py build", which itself
685 is an alias for "setup.py develop --prefix support", with some extra work
686 before and after (see setup.cfg). Most of the complicated platform-dependent
687 code in the Makefile was rewritten in Python and moved into setup.py,
688 simplifying things considerably.
689
690 Likewise, the "make test" target now delegates most of its work to "setup.py
691 test", which takes care of getting PYTHONPATH configured to access the tahoe
692 code (and dependencies) that gets put in support/lib/ by the build_tahoe
693 step. This should allow unit tests to be run even when trial (which is part
694 of Twisted) wasn't already installed (in this case, trial gets installed to
695 support/bin because Twisted is a dependency of Tahoe).
696
697 Tahoe is now compatible with the recently-released Python 2.6 , although it
698 is recommended to use Tahoe on Python 2.5, on which it has received more
699 thorough testing and deployment.
700
701 Tahoe is now compatible with simplejson-2.0.x . The previous release assumed
702 that simplejson.loads always returned unicode strings, which is no longer the
703 case in 2.0.x .
704
705 ** Grid Management Tools
706
707 Several tools have been added or updated in the misc/ directory, mostly munin
708 plugins that can be used to monitor a storage grid.
709
710 The misc/spacetime/ directory contains a "disk watcher" daemon (startable
711 with 'tahoe start'), which can be configured with a set of HTTP URLs
712 (pointing at the wapi '/statistics' page of a bunch of storage servers),
713 and will periodically fetch disk-used/disk-available information from all the
714 servers. It keeps this information in an Axiom database (a sqlite-based
715 library available from divmod.org). The daemon computes time-averaged rates
716 of disk usage, as well as a prediction of how much time is left before the
717 grid is completely full.
718
719 The misc/munin/ directory contains a new set of munin plugins
720 (tahoe_diskleft, tahoe_diskusage, tahoe_doomsday) which talk to the
721 disk-watcher and provide graphs of its calculations.
722
723 To support the disk-watcher, the Tahoe statistics component (visible through
724 the wapi at the /statistics/ URL) now includes disk-used and disk-available
725 information. Both are derived through an equivalent of the unix 'df' command
726 (i.e. they ask the kernel for the number of free blocks on the partition that
727 encloses the BASEDIR/storage directory). In the future, the disk-available
728 number will be further influenced by the local storage policy: if that policy
729 says that the server should refuse new shares when less than 5GB is left on
730 the partition, then "disk-available" will report zero even though the kernel
731 sees 5GB remaining.
732
733 The 'tahoe_overhead' munin plugin interacts with an allmydata.com-specific
734 server which reports the total of the 'deep-size' reports for all active user
735 accounts, compares this with the disk-watcher data, to report on overhead
736 percentages. This provides information on how much space could be recovered
737 once Tahoe implements some form of garbage collection.
738
739 ** Configuration Changes: single INI-format tahoe.cfg file
740
741 The Tahoe node is now configured with a single INI-format file, named
742 "tahoe.cfg", in the node's base directory. Most of the previous
743 multiple-separate-files are still read for backwards compatibility (the
744 embedded SSH debug server and the advertised_ip_addresses files are the
745 exceptions), but new directives will only be added to tahoe.cfg . The "tahoe
746 create-client" command will create a tahoe.cfg for you, with sample values
747 commented out. (ticket #518)
748
749 tahoe.cfg now has controls for the foolscap "keepalive" and "disconnect"
750 timeouts (#521).
751
752 tahoe.cfg now has controls for the encoding parameters: "shares.needed" and
753 "shares.total" in the "[client]" section. The default parameters are still
754 3-of-10.
755
756 The inefficient storage 'sizelimit' control (which established an upper bound
757 on the amount of space that a storage server is allowed to consume) has been
758 replaced by a lightweight 'reserved_space' control (which establishes a lower
759 bound on the amount of remaining space). The storage server will reject all
760 writes that would cause the remaining disk space (as measured by a '/bin/df'
761 equivalent) to drop below this value. The "[storage]reserved_space="
762 tahoe.cfg parameter controls this setting. (note that this only affects
763 immutable shares: it is an outstanding bug that reserved_space does not
764 prevent the allocation of new mutable shares, nor does it prevent the growth
765 of existing mutable shares).
766
767 ** Other Changes
768
769 Clients now declare which versions of the protocols they support. This is
770 part of a new backwards-compatibility system:
771 http://allmydata.org/trac/tahoe/wiki/Versioning .
772
773 The version strings for human inspection (as displayed on the Welcome web
774 page, and included in logs) now includes a platform identifer (frequently
775 including a linux distribution name, processor architecture, etc).
776
777 Several bugs have been fixed, including one that would cause an exception (in
778 the logs) if a wapi download operation was cancelled (by closing the TCP
779 connection, or pushing the "stop" button in a web browser).
780
781 Tahoe now uses Foolscap "Incidents", writing an "incident report" file to
782 logs/incidents/ each time something weird occurs. These reports are available
783 to an "incident gatherer" through the flogtool command. For more details,
784 please see the Foolscap logging documentation. An incident-classifying plugin
785 function is provided in misc/incident-gatherer/classify_tahoe.py .
786
787 If clients detect corruption in shares, they now automatically report it to
788 the server holding that share, if it is new enough to accept the report.
789 These reports are written to files in BASEDIR/storage/corruption-advisories .
790
791 The 'nickname' setting is now defined to be a UTF-8 -encoded string, allowing
792 non-ascii nicknames.
793
794 The 'tahoe start' command will now accept a --syslog argument and pass it
795 through to twistd, making it easier to launch non-Tahoe nodes (like the
796 cpu-watcher) and have them log to syslogd instead of a local file. This is
797 useful when running a Tahoe node out of a USB flash drive.
798
799 The Mac GUI in src/allmydata/gui/ has been improved.
800
801
802 * Release 1.2.0 (2008-07-21)
803
804 ** Security
805
806 This release makes the immutable-file "ciphertext hash tree" mandatory.
807 Previous releases allowed the uploader to decide whether their file would
808 have an integrity check on the ciphertext or not. A malicious uploader could
809 use this to create a readcap that would download as one file or a different
810 one, depending upon which shares the client fetched first, with no errors
811 raised. There are other integrity checks on the shares themselves, preventing
812 a storage server or other party from violating the integrity properties of
813 the read-cap: this failure was only exploitable by the uploader who gives you
814 a carefully constructed read-cap. If you download the file with Tahoe 1.2.0
815 or later, you will not be vulnerable to this problem. #491
816
817 This change does not introduce a compatibility issue, because all existing
818 versions of Tahoe will emit the ciphertext hash tree in their shares.
819
820 ** Dependencies
821
822 Tahoe now requires Foolscap-0.2.9 . It also requires pycryptopp 0.5 or newer,
823 since earlier versions had a bug that interacted with specific compiler
824 versions that could sometimes result in incorrect encryption behavior. Both
825 packages are included in the Tahoe source tarball in misc/dependencies/ , and
826 should be built automatically when necessary.
827
828 ** Web API
829
830 Web API directory pages should now contain properly-slash-terminated links to
831 other directories. They have also stopped using absolute links in forms and
832 pages (which interfered with the use of a front-end load-balancing proxy).
833
834 The behavior of the "Check This File" button changed, in conjunction with
835 larger internal changes to file checking/verification. The button triggers an
836 immediate check as before, but the outcome is shown on its own page, and does
837 not get stored anywhere. As a result, the web directory page no longer shows
838 historical checker results.
839
840 A new "Deep-Check" button has been added, which allows a user to initiate a
841 recursive check of the given directory and all files and directories
842 reachable from it. This can cause quite a bit of work, and has no
843 intermediate progress information or feedback about the process. In addition,
844 the results of the deep-check are extremely limited. A later release will
845 improve this behavior.
846
847 The web server's behavior with respect to non-ASCII (unicode) filenames in
848 the "GET save=true" operation has been improved. To achieve maximum
849 compatibility with variously buggy web browsers, the server does not try to
850 figure out the character set of the inbound filename. It just echoes the same
851 bytes back to the browser in the Content-Disposition header. This seems to
852 make both IE7 and Firefox work correctly.
853
854 ** Checker/Verifier/Repairer
855
856 Tahoe is slowly acquiring convenient tools to check up on file health,
857 examine existing shares for errors, and repair files that are not fully
858 healthy. This release adds a mutable checker/verifier/repairer, although
859 testing is very limited, and there are no web interfaces to trigger repair
860 yet. The "Check" button next to each file or directory on the wapi page
861 will perform a file check, and the "deep check" button on each directory will
862 recursively check all files and directories reachable from there (which may
863 take a very long time).
864
865 Future releases will improve access to this functionality.
866
867 ** Operations/Packaging
868
869 A "check-grid" script has been added, along with a Makefile target. This is
870 intended (with the help of a pre-configured node directory) to check upon the
871 health of a Tahoe grid, uploading and downloading a few files. This can be
872 used as a monitoring tool for a deployed grid, to be run periodically and to
873 signal an error if it ever fails. It also helps with compatibility testing,
874 to verify that the latest Tahoe code is still able to handle files created by
875 an older version.
876
877 The munin plugins from misc/munin/ are now copied into any generated debian
878 packages, and are made executable (and uncompressed) so they can be symlinked
879 directly from /etc/munin/plugins/ .
880
881 Ubuntu "Hardy" was added as a supported debian platform, with a Makefile
882 target to produce hardy .deb packages. Some notes have been added to
883 docs/debian.txt about building Tahoe on a debian/ubuntu system.
884
885 Storage servers now measure operation rates and latency-per-operation, and
886 provides results through the /statistics web page as well as the stats
887 gatherer. Munin plugins have been added to match.
888
889 ** Other
890
891 Tahoe nodes now use Foolscap "incident logging" to record unusual events to
892 their NODEDIR/logs/incidents/ directory. These incident files can be examined
893 by Foolscap logging tools, or delivered to an external log-gatherer for
894 further analysis. Note that Tahoe now requires Foolscap-0.2.9, since 0.2.8
895 had a bug that complained about "OSError: File exists" when trying to create
896 the incidents/ directory for a second time.
897
898 If no servers are available when retrieving a mutable file (like a
899 directory), the node now reports an error instead of hanging forever. Earlier
900 releases would not only hang (causing the wapi directory listing to get
901 stuck half-way through), but the internal dirnode serialization would cause
902 all subsequent attempts to retrieve or modify the same directory to hang as
903 well. #463
904
905 A minor internal exception (reported in logs/twistd.log, in the
906 "stopProducing" method) was fixed, which complained about "self._paused_at
907 not defined" whenever a file download was stopped from the web browser end.
908
909
910 * Release 1.1.0 (2008-06-11)
911
912 ** CLI: new "alias" model
913
914 The new CLI code uses an scp/rsync -like interface, in which directories in
915 the Tahoe storage grid are referenced by a colon-suffixed alias. The new
916 commands look like:
917  tahoe cp local.txt tahoe:virtual.txt
918  tahoe ls work:subdir
919
920 More functionality is available through the CLI: creating unlinked files and
921 directories, recursive copy in or out of the storage grid, hardlinks, and
922 retrieving the raw read- or write- caps through the 'ls' command. Please read
923 docs/CLI.txt for complete details.
924
925 ** wapi: new pages, new commands
926
927 Several new pages were added to the web API:
928
929  /helper_status : to describe what a Helper is doing
930  /statistics : reports node uptime, CPU usage, other stats
931  /file : for easy file-download URLs, see #221
932  /cap == /uri : future compatibility
933
934 The localdir=/localfile= and t=download operations were removed. These
935 required special configuration to enable anyways, but this feature was a
936 security problem, and was mostly obviated by the new "cp -r" command.
937
938 Several new options to the GET command were added:
939
940  t=deep-size : add up the size of all immutable files reachable from the directory
941  t=deep-stats : return a JSON-encoded description of number of files, size
942                 distribution, total size, etc
943
944 POST is now preferred over PUT for most operations which cause side-effects.
945
946 Most wapi calls now accept overwrite=, and default to overwrite=true .
947
948 "POST /uri/DIRCAP/parent/child?t=mkdir" is now the preferred API to create
949 multiple directories at once, rather than ...?t=mkdir-p .
950
951 PUT to a mutable file ("PUT /uri/MUTABLEFILECAP", "PUT /uri/DIRCAP/child")
952 will modify the file in-place.
953
954 ** more munin graphs in misc/munin/
955
956   tahoe-introstats
957   tahoe-rootdir-space
958   tahoe_estimate_files
959   mutable files published/retrieved
960   tahoe_cpu_watcher
961   tahoe_spacetime
962
963 ** New Dependencies
964
965   zfec 1.1.0
966   foolscap 0.2.8
967   pycryptopp 0.5
968   setuptools (now required at runtime)
969
970 ** New Mutable-File Code
971
972 The mutable-file handling code (mostly used for directories) has been
973 completely rewritten. The new scheme has a better API (with a modify()
974 method) and is less likely to lose data when several uncoordinated writers
975 change a file at the same time.
976
977 In addition, a single Tahoe process will coordinate its own writes. If you
978 make two concurrent directory-modifying wapi calls to a single tahoe node,
979 it will internally make one of them wait for the other to complete. This
980 prevents auto-collision (#391).
981
982 The new mutable-file code also detects errors during publish better. Earlier
983 releases might believe that a mutable file was published when in fact it
984 failed.
985
986 ** other features
987
988 The node now monitors its own CPU usage, as a percentage, measured every 60
989 seconds. 1/5/15 minute moving averages are available on the /statistics web
990 page and via the stats-gathering interface.
991
992 Clients now accelerate reconnection to all servers after being offline
993 (#374). When a client is offline for a long time, it scales back reconnection
994 attempts to approximately once per hour, so it may take a while to make the
995 first attempt, but once any attempt succeeds, the other server connections
996 will be retried immediately.
997
998 A new "offloaded KeyGenerator" facility can be configured, to move RSA key
999 generation out from, say, a wapi node, into a separate process. RSA keys
1000 can take several seconds to create, and so a wapi node which is being used
1001 for directory creation will be unavailable for anything else during this
1002 time. The Key Generator process will pre-compute a small pool of keys, to
1003 speed things up further. This also takes better advantage of multi-core CPUs,
1004 or SMP hosts.
1005
1006 The node will only use a potentially-slow "du -s" command at startup (to
1007 measure how much space has been used) if the "sizelimit" parameter has been
1008 configured (to limit how much space is used). Large storage servers should
1009 turn off sizelimit until a later release improves the space-management code,
1010 since "du -s" on a terabyte filesystem can take hours.
1011
1012 The Introducer now allows new announcements to replace old ones, to avoid
1013 buildups of obsolete announcements.
1014
1015 Immutable files are limited to about 12GiB (when using the default 3-of-10
1016 encoding), because larger files would be corrupted by the four-byte
1017 share-size field on the storage servers (#439). A later release will remove
1018 this limit. Earlier releases would allow >12GiB uploads, but the resulting
1019 file would be unretrievable.
1020
1021 The docs/ directory has been rearranged, with old docs put in
1022 docs/historical/ and not-yet-implemented ones in docs/proposed/ .
1023
1024 The Mac OS-X FUSE plugin has a significant bug fix: earlier versions would
1025 corrupt writes that used seek() instead of writing the file in linear order.
1026 The rsync tool is known to perform writes in this order. This has been fixed.