Chutney issueshttps://gitlab.torproject.org/tpo/core/chutney/-/issues2020-06-27T13:18:44Zhttps://gitlab.torproject.org/tpo/core/chutney/-/issues/27965Chutney's single-onion-ipv6-md test fails on master2020-06-27T13:18:44ZteorChutney's single-onion-ipv6-md test fails on masterWhen we merged legacy/trac#27215, it changed the default HiddenServiceVersion from 2 to 3.
Chutney expects the default to be v2, so single-onion-ipv6-md fails with an error, because IPv6-only v3 single onion services are not yet support...When we merged legacy/trac#27215, it changed the default HiddenServiceVersion from 2 to 3.
Chutney expects the default to be v2, so single-onion-ipv6-md fails with an error, because IPv6-only v3 single onion services are not yet supported.
I have a patch to fix this issue. I'll attach it to this ticket.Tor: 0.3.5.x-finalteorteorhttps://gitlab.torproject.org/tpo/core/chutney/-/issues/27068TOR_DIR shouldn't override CHUTNEY_TOR and CHUTNEY_TOR_GENCERT2020-06-27T13:18:45ZTaylor YuTOR_DIR shouldn't override CHUTNEY_TOR and CHUTNEY_TOR_GENCERTRight now, chutney's warnings when it can't find tor or tor-gencert suggest to set `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`. However, attempts to set these get overwritten by tools/test-network.sh with either a computed result based on `...Right now, chutney's warnings when it can't find tor or tor-gencert suggest to set `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`. However, attempts to set these get overwritten by tools/test-network.sh with either a computed result based on `TOR_DIR` if that is set, or with plain program names to be searched in the path. This makes it harder to work around legacy/trac#27067.Tor: 0.3.5.x-finalhttps://gitlab.torproject.org/tpo/core/chutney/-/issues/27067test-network can't find tor binaries on tor master2020-06-27T13:18:45ZTaylor Yutest-network can't find tor binaries on tor master`make test-network` doesn't work on master even when given explicit paths for `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`. This seems to be due to the 0.3.5 source tree reorganization.
chutney should learn about the new source tree layout ...`make test-network` doesn't work on master even when given explicit paths for `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`. This seems to be due to the 0.3.5 source tree reorganization.
chutney should learn about the new source tree layout (and also probably keep looking for the old layout for backward compatibility).
There is a child ticket for dealing with `TOR_DIR` overriding `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`.
Example failure when setting only `CHUTNEY_PATH`:
```
$ CHUTNEY_PATH=../../chutney make test-network
../src/test/test-network.sh --hs-multi-client 1
test-network.sh: using CHUTNEY_DNS_CONF '/dev/null'
test-network.sh: no $TOR_DIR, chutney will use $PATH for tor binaries
Using Python 2.7.12
Sending SIGINT to nodes
Waiting for nodes to finish.
bootstrap-network.sh: bootstrapping network: bridges+hs
Using Python 2.7.12
NOTE: creating '/home/tlyu/src/tor/build-norust/../../chutney/net/nodes.1533677645', linking to '/home/tlyu/src/tor/build-norust/../../chutney/net/nodes'
Creating identity key /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key for test000a with tor-gencert --create-identity-key --passphrase-fd 0 -i /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a 127.0.0.1:7000
Cannot find the tor-gencert binary tor-gencert for the command line 'tor-gencert --create-identity-key --passphrase-fd 0 -i /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a 127.0.0.1:7000'. Use the CHUTNEY_TOR_GENCERT environment variable to set the path, or put the binary into $PATH: '/home/tlyu/.cargo/bin:/home/tlyu/bin:/home/tlyu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'. If your $PATH contains ~, use $HOME instead.
sed: can't read /home/tlyu/src/tor/build-norust/../../chutney/net/nodes/*a/torrc: No such file or directory
Using Python 2.7.12
Starting nodes
Cannot find tor binary 'tor'. Use CHUTNEY_TOR environment variable to set the path, or put the binary into $PATH.
Using Python 2.7.12
0/12 nodes are running
Makefile:15762: recipe for target 'test-network' failed
make: *** [test-network] Error 3
```
Example failure when setting `CHUTNEY_TOR`, `CHUTNEY_TOR_GENCERT`, and `CHUTNEY_PATH`:
```
$ CHUTNEY_TOR=`pwd`/src/app/tor CHUTNEY_TOR_GENCERT=`pwd`/src/tools/tor-gencert CHUTNEY_PATH=../../chutney make test-network
../src/test/test-network.sh --hs-multi-client 1
test-network.sh: using CHUTNEY_DNS_CONF '/dev/null'
test-network.sh: no $TOR_DIR, chutney will use $PATH for tor binaries
Using Python 2.7.12
Sending SIGINT to nodes
Waiting for nodes to finish.
bootstrap-network.sh: bootstrapping network: bridges+hs
Using Python 2.7.12
NOTE: creating '/home/tlyu/src/tor/build-norust/../../chutney/net/nodes.1533677759', linking to '/home/tlyu/src/tor/build-norust/../../chutney/net/nodes'
Creating identity key /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key for test000a with tor-gencert --create-identity-key --passphrase-fd 0 -i /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a 127.0.0.1:7000
Cannot find the tor-gencert binary tor-gencert for the command line 'tor-gencert --create-identity-key --passphrase-fd 0 -i /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a 127.0.0.1:7000'. Use the CHUTNEY_TOR_GENCERT environment variable to set the path, or put the binary into $PATH: '/home/tlyu/.cargo/bin:/home/tlyu/bin:/home/tlyu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'. If your $PATH contains ~, use $HOME instead.
sed: can't read /home/tlyu/src/tor/build-norust/../../chutney/net/nodes/*a/torrc: No such file or directory
Using Python 2.7.12
Starting nodes
Cannot find tor binary 'tor'. Use CHUTNEY_TOR environment variable to set the path, or put the binary into $PATH.
Using Python 2.7.12
0/12 nodes are running
Makefile:15762: recipe for target 'test-network' failed
make: *** [test-network] Error 3
```Tor: 0.3.5.x-final