View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003048 | GNUnet | testbed service | public | 2013-09-26 23:25 | 2013-12-24 20:54 |
| Reporter | Bart Polot | Assigned To | Sree Harsha Totakura | ||
| Priority | low | Severity | text | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Target Version | 0.10.0 | Fixed in Version | 0.10.0 | ||
| Summary | 0003048: Testbed does not work across multiple machines using ssh | ||||
| Description | [bart@saturn ~/g/src/testbed]$ head ~/regex/regexprofiler.conf [testbed] AUTOSTART = NO ACCEPT_FROM = 127.0.0.1; 192.168.1.0/24; 131.159.0.0/16; HOSTNAME = localhost OVERLAY_TOPOLOGY=RANDOM OVERLAY_RANDOM_LINKS=1000 HELPER_BINARY_PATH=/tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed SETUP_TIMEOUT = 1 m OPERATION_TIMEOUT = 1 m [...] [bart@saturn ~/g/src/testbed]$ cat 3.hosts bart@localhost:22 bart@localhost:22 team@pixel:22 team@fulcrum:22 [bart@saturn ~/g/src/testbed]$ echo $GNUNET_TESTBED_RSH_CMD ssh -o BatchMode=yes -o NoHostAuthenticationForLocalhost=yes -l %u %h [bart@saturn ~/g/src/testbed]$ ssh -o BatchMode=yes -o NoHostAuthenticationForLocalhost=yes -l team fulcrum stat /tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed File: ‘/tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed’ Size: 69305 Blocks: 136 IO Block: 4096 regular file Device: 804h/2052d Inode: 2494718 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1001/ team) Gid: ( 1001/ team) Access: 2013-09-26 22:40:57.323445461 +0200 Modify: 2013-09-26 21:48:09.229449364 +0200 Change: 2013-09-26 21:48:09.229449364 +0200 Birth: - [bart@saturn ~/g/src/testbed]$ ssh -o BatchMode=yes -o NoHostAuthenticationForLocalhost=yes -l team pixel stat /tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed File: `/tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed' Size: 67829 Blocks: 144 IO Block: 4096 regular file Device: 806h/2054d Inode: 753037 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1003/ team) Gid: ( 1003/ team) Access: 2013-09-26 22:40:56.000000000 +0200 Modify: 2013-09-26 21:48:17.000000000 +0200 Change: 2013-09-26 21:48:17.000000000 +0200 Birth: - [bart@saturn ~/g/src/testbed]$ ssh -o BatchMode=yes -o NoHostAuthenticationForLocalhost=yes -l bart localhost stat /tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed File: '/tmp/teamgnunet/lib/gnunet/libexec/gnunet-helper-testbed' Size: 38633 Blocks: 80 IO Block: 4096 regular file Device: 1eh/30d Inode: 85221150 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1000/ bart) Gid: ( 100/ users) Access: 2013-09-26 23:21:22.520913100 +0200 Modify: 2013-09-26 22:48:57.982533738 +0200 Change: 2013-09-26 22:48:57.982533738 +0200 Birth: - [bart@saturn ~/g/src/testbed]$ ./gnunet-testbed-profiler -c ~/regex/regexprofiler.conf -p 1000 -H 3.hosts Permission denied (publickey). Sep 26 23:21:22-596329 testbed-links-3577 WARNING Unexpected slave shutdown Sep 26 23:21:22-605045 gnunet-testbed-profiler-3540 ERROR Controller crash detected. Shutting down. Sep 26 23:21:22-605302 gnunet-testbed-profiler-3540 WARNING Aborting [bart@saturn ~/g/src/testbed]$ | ||||
| Tags | No tags attached. | ||||
|
|
Looks like there SSH is not able to connect as there is a permission denied for the public key |
|
|
that's why I included a sample of manually running the ssh command testbed uses to test host habitability ... |
|
|
So the problem really is with the usage of the hostname 'localhost' in the hostfile. This is because the localhost controller will create peers with HOSTNAME set to 127.0.0.1 and the peers only get the localhost addresses. Thus the overlay links to those peers fail. Using the actual hostname of the machine doesn't seem to solve this as on my machine the hostname 'nautophone' resolves to '127.0.1.1'. Again the same problem in this case as the peers only get the localhost addresses. The problem is solved when you use the actual IP address of your local machine. For example I was able run testbed profiler successfully with the following hostfile: totakura@localhost:22 totakura@131.159.20.91:22 team@saturn:22 team@fulcrum:22 The IP is of nautophone's. Note that the first localhost doesn't arise a problem as it doesn't start any peers. The other two hostnames are resolved locally to their respective IP addresses and hence present no problems. |
|
|
will be making required changes in the documentation |
|
|
documentation fixed. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-09-26 23:25 | Bart Polot | New Issue | |
| 2013-09-26 23:25 | Bart Polot | Status | new => assigned |
| 2013-09-26 23:25 | Bart Polot | Assigned To | => Sree Harsha Totakura |
| 2013-09-26 23:26 | Bart Polot | Description Updated | |
| 2013-09-27 09:50 | Sree Harsha Totakura | Note Added: 0007478 | |
| 2013-09-27 10:19 | Bart Polot | Note Added: 0007479 | |
| 2013-09-27 10:20 | Bart Polot | Note Edited: 0007479 | |
| 2013-09-27 20:03 | Sree Harsha Totakura | Note Added: 0007481 | |
| 2013-09-27 20:03 | Sree Harsha Totakura | Status | assigned => resolved |
| 2013-09-27 20:03 | Sree Harsha Totakura | Resolution | open => no change required |
| 2013-09-27 20:04 | Sree Harsha Totakura | Status | resolved => feedback |
| 2013-09-27 20:04 | Sree Harsha Totakura | Resolution | no change required => reopened |
| 2013-09-27 20:04 | Sree Harsha Totakura | Priority | immediate => low |
| 2013-09-27 20:04 | Sree Harsha Totakura | Severity | major => text |
| 2013-09-27 20:05 | Sree Harsha Totakura | Note Added: 0007482 | |
| 2013-09-27 20:05 | Sree Harsha Totakura | Status | feedback => acknowledged |
| 2013-09-27 20:05 | Sree Harsha Totakura | Status | acknowledged => assigned |
| 2013-10-29 08:54 | Sree Harsha Totakura | Note Added: 0007573 | |
| 2013-10-29 08:54 | Sree Harsha Totakura | Status | assigned => resolved |
| 2013-10-29 08:54 | Sree Harsha Totakura | Fixed in Version | => 0.10.0 |
| 2013-10-29 08:54 | Sree Harsha Totakura | Resolution | reopened => fixed |
| 2013-11-06 16:29 | Christian Grothoff | Product Version | => Git master |
| 2013-11-06 16:29 | Christian Grothoff | Target Version | => 0.10.0 |
| 2013-12-24 20:54 | Christian Grothoff | Status | resolved => closed |