Zooko O'Whielacronx
240de64598
install our custom timestamp formats in a less disruptive way
...
The unit tests on Windows fail because trial is attempting to remove its own
log observer during teardown. This patch customizes the extant log observer
object by replacing its formatTime method with our own.
I first tried the approach of storing their log observer object and putting it
back during teardown, but it didn't work (perhaps because our node object
doesn't get a chance to do its deferred stopService behavior in time), and
anyway I generally prefer the "fail-safe", or "crash-only" design.
2007-10-14 20:43:11 -07:00
Brian Warner
654bbbed8f
node.py: fix timestamps (add ms and Z) by replacing the FileLogObserver. #171 .
2007-10-11 17:30:07 -07:00
Brian Warner
34a25b9b28
node.py: don't append 'Z' to the timestamp, since it's really localtime. We need deeper changes to make it be UTC
2007-10-11 02:24:17 -07:00
Brian Warner
1b406f3c32
node.py: set logging timestamp to '2007-10-11 02:11:14.000Z', per ticket #171 . No milliseconds yet, though
2007-10-11 02:13:05 -07:00
Brian Warner
325c7a7bfa
node.py: chmod the foolscap private key (node.pem) to 0600, since it's secret
2007-09-21 16:52:55 -07:00
Brian Warner
1428079a84
node: change get_or_create_config to strip whitespace and accept a filemode= argument
2007-08-27 19:23:50 -07:00
Brian Warner
89ceb49309
node.py: change get_or_create_config() to accept a function
2007-08-27 19:07:12 -07:00
Brian Warner
77a7232867
node.py: refactor config-file getting and setting
2007-08-27 18:58:39 -07:00
tahoe
f49194cb5e
trying to introduce old style humanreadablied logs hopefully without breaking the existing ones
2007-08-11 14:52:37 -07:00
Zooko O'Whielacronx
42f8e57416
don't over-encode the nodeid many times with ascii-encoding
2007-08-12 10:29:38 -07:00
Brian Warner
998802fd6d
#96 : add flag to enable pushing data to ourselves, defaulting to False
2007-08-09 18:30:24 -07:00
Brian Warner
e3eba2d6c5
remove unused imports: hush pyflakes warnings
2007-07-24 18:13:58 -07:00
Zooko O'Whielacronx
32c90c6468
switch from rfc 3548 base-32 to z-base-32 except for tubids/nodeids
2007-07-24 13:46:06 -07:00
Brian Warner
48a8c32ed7
webish: display program/library versions on the welcome page
2007-06-11 10:51:11 -07:00
robk-org
7c479ba8a7
catch failures in startService() and abort process
2007-06-04 18:46:37 -07:00
Brian Warner
d1d7cdd859
node.py: multi-class exception calls need parentheses
2007-05-31 18:32:21 -07:00
Brian Warner
4f0e944087
node.py: add logging of startup/shutdown, for the cygwin test_system failure
2007-05-31 13:44:22 -07:00
Brian Warner
1160c1def2
node.py: log twisted version along with tahoe/foolscap/zfec versions
2007-05-31 11:21:06 -07:00
Brian Warner
cbca430062
node.py: hush pyflakes warnings
2007-05-23 17:54:48 -07:00
Zooko O'Whielacronx
44902c5152
add unit test for "advertised_ip_addresses" feature and fix bug in that feature uncovered by this unit test
2007-05-23 15:08:55 -07:00
Zooko O'Whielacronx
77f55f368a
make stopService() defer until startService() completes (fixes a problem with the new not-yet-committed unit test)
2007-05-23 15:08:03 -07:00
Brian Warner
f9e45391f6
node.py: use 'node.pem' for all nodes
...
Rather than use separate client.pem and introducer.pem files, use 'node.pem'
for all nodes regardless of what type it is. This is slightly cleaner, but
introduces a compatibility. Users who upgrade to this change should do
'mv client.pem node.pem' to avoid generating a new certificate and thus
changing their TubID.
2007-05-23 12:48:52 -07:00
Brian Warner
9edc6574ae
node.py: use Tub's certFile= argument instead of doing it ourselves
2007-05-23 12:41:23 -07:00
Zooko O'Whielacronx
921e643b93
don't check for existence of portnum file and then try to open it -- instead try to open it and catch exception
...
This avoids a race condition, also known as time-of-check-to-time-of-use.
2007-05-22 14:06:00 -07:00
Zooko O'Whielacronx
98066ccaee
don't test for existence of certfile and then try to open it -- instead try to open it and catch exception
...
This avoids a race condition, also known as time-of-check-to-time-of-use.
2007-05-22 14:04:16 -07:00
Zooko O'Whielacronx
a2970cf7c1
fix handling of local_ip file and rename it to advertised_ip_addresses and document it in README
2007-05-22 14:01:40 -07:00
Zooko O'Whielacronx
3d1adf6d30
update docs, remove extraneous licence text, sort module names in import statement
...
closes #46 ?
2007-05-21 13:42:51 -07:00
Zooko O'Whielacronx
d19d1058e0
extirpate all references the "queen" and "metatracker"
...
This is a potentially disruptive and potentially ugly change to the code base,
because I renamed the object that serves in both roles from "Queen" to
"IntroducerAndVdrive", which is a bit of an ugly name.
However, I think that clarity is important enough in this release to make this
change. All unit tests pass. I'm now darcs recording this patch in order to
pull it to other machines for more testing.
2007-04-30 09:57:52 -07:00
Zooko O'Whielacronx
a70a599249
make it print out version numbers when it constructs a Node instance
2007-04-27 13:47:38 -07:00
Brian Warner
5b0ece6ece
node: enable Tub.logLocalFailures now that we require foolscap-0.1.2
2007-04-06 20:55:59 -07:00
Brian Warner
25ff9e1f97
complete the Introducer changes, separate out vdrive access, make everything work again
2007-03-27 16:12:11 -07:00
Brian Warner
91e7f092e8
node.py: switch to using get_local_addresses_async, which is slightly more portable (most forms of unix)
2007-03-08 15:12:52 -07:00
Brian Warner
78d19c271c
rearrange service startup a bit, now Node.startService() returns a Deferred that fires when the tub is actually ready, and there is also a Node.when_tub_ready() hook. This allows get_local_addresses() to be slow and not break everything. Changed all necessary test cases to accomodate this slow startup.
2007-03-08 15:10:36 -07:00
Brian Warner
d4020fa533
control: add RIControlClient, fix some pyflakes warnings
2007-03-07 19:20:27 -07:00
Brian Warner
2c261ce996
change node startup to put all local addresses in the PBURL, including 127.0.0.1. This should facilitate testing on both connected and disconnected systems.
2007-03-07 18:43:17 -07:00
Brian Warner
3490378551
move all packages into src/, fix allmydata.Crypto build. Now you must perform a 'setup.py build' before using anything, and you must add the build directory (build/lib.linux-i686-2.4) to your PYTHONPATH before doing anything
2006-12-14 03:39:50 -07:00