Cannot run local topology in scion vm

14 views
Skip to first unread message

Sven Dammann

unread,
Jul 2, 2019, 8:29:05 AM7/2/19
to SCION community
Hi,

I am trying to run a local topology inside the scion vm using Tiny.topo.

When running scion using ./scion.sh run, I get the following output:


Compiling...

fatal: No names found, cannot describe anything.

fatal: No names found, cannot describe anything.

Running zookeeper...

./tools/dc: line 72: docker-compose: command not found

Running the network...


AFAIK, the zookeeper does not start up, as it fails with the second to last output line. If I however manually install docker-compose via apt-get, the terminal complains about wrong usage of docker-compose:


Compiling...

fatal: No names found, cannot describe anything.

fatal: No names found, cannot describe anything.

Running zookeeper...

Define and run multi-container applications with Docker.

Usage:

 docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]

 docker-compose -h|--help
[...]


In the system log we can see that all 3 AS from the topology fail to connect to the zookeeper.


==> /home/ubuntu/go/src/github.com/scionproto/scion/logs/bs1-ff00_0_110-1.DEBUG <==

2019-07-02 11:57:06.118765+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_110/bs1-ff00_0_110-1/certs/ISD1-V1.trc

2019-07-02 11:57:06.119506+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_110/bs1-ff00_0_110-1/certs/ISD1-ASff00_0_110-V1.crt

2019-07-02 11:57:06.119751+0000 [INFO] (MainThread) Exporting metrics on [127.0.0.11]:31023

2019-07-02 11:57:06.121928+0000 [DEBUG] (MainThread) connect to dispatcher at path /run/shm/dispatcher/default.sock

2019-07-02 11:57:06.122048+0000 [DEBUG] (MainThread) Attempt connect

2019-07-02 11:57:06.122457+0000 [DEBUG] (MainThread) Registered to dispatcher for addr (1-ff00:0:110 (IPV4) 127.0.0.11):31010

2019-07-02 11:57:06.129104+0000 [INFO] (MainThread) Connecting to Zookeeper

2019-07-02 11:57:21.154418+0000 [CRITICAL] (MainThread) Timed out connecting to Zookeeper on startup, exiting

2019-07-02 11:57:21.154849+0000 [INFO] (MainThread) Exiting

2019-07-02 11:57:21.155280+0000 [ERROR] (Dummy-5) Received SIGUSR2


==> /home/ubuntu/go/src/github.com/scionproto/scion/logs/bs1-ff00_0_111-1.DEBUG <==

2019-07-02 11:57:05.969398+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_111/bs1-ff00_0_111-1/certs/ISD1-V1.trc

2019-07-02 11:57:05.970011+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_111/bs1-ff00_0_111-1/certs/ISD1-ASff00_0_111-V1.crt

2019-07-02 11:57:05.970252+0000 [INFO] (MainThread) Exporting metrics on [127.0.0.18]:31018

2019-07-02 11:57:05.970824+0000 [DEBUG] (MainThread) connect to dispatcher at path /run/shm/dispatcher/default.sock

2019-07-02 11:57:05.970983+0000 [DEBUG] (MainThread) Attempt connect

2019-07-02 11:57:05.971235+0000 [DEBUG] (MainThread) Registered to dispatcher for addr (1-ff00:0:111 (IPV4) 127.0.0.18):31000

2019-07-02 11:57:05.979777+0000 [INFO] (MainThread) Connecting to Zookeeper

2019-07-02 11:57:21.033271+0000 [CRITICAL] (MainThread) Timed out connecting to Zookeeper on startup, exiting

2019-07-02 11:57:21.033775+0000 [INFO] (MainThread) Exiting

2019-07-02 11:57:21.033980+0000 [ERROR] (Dummy-5) Received SIGUSR2


==> /home/ubuntu/go/src/github.com/scionproto/scion/logs/bs1-ff00_0_112-1.DEBUG <==

2019-07-02 11:57:06.072693+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_112/bs1-ff00_0_112-1/certs/ISD1-V1.trc

2019-07-02 11:57:06.073420+0000 [DEBUG] (MainThread) Loaded: gen/ISD1/ASff00_0_112/bs1-ff00_0_112-1/certs/ISD1-ASff00_0_112-V1.crt

2019-07-02 11:57:06.073665+0000 [INFO] (MainThread) Exporting metrics on [127.0.0.26]:31020

2019-07-02 11:57:06.074362+0000 [DEBUG] (MainThread) connect to dispatcher at path /run/shm/dispatcher/default.sock

2019-07-02 11:57:06.074459+0000 [DEBUG] (MainThread) Attempt connect

2019-07-02 11:57:06.074802+0000 [DEBUG] (MainThread) Registered to dispatcher for addr (1-ff00:0:112 (IPV4) 127.0.0.26):31005

2019-07-02 11:57:06.081765+0000 [INFO] (MainThread) Connecting to Zookeeper

2019-07-02 11:57:21.140818+0000 [CRITICAL] (MainThread) Timed out connecting to Zookeeper on startup, exiting

2019-07-02 11:57:21.141546+0000 [INFO] (MainThread) Exiting

2019-07-02 11:57:21.141822+0000 [ERROR] (Dummy-5) Received SIGUSR2



Is this an issue or am I doing something wrong here?

Cheers,
Sven


Matthias Frei

unread,
Jul 3, 2019, 3:34:17 AM7/3/19
to SCION community

Hi Sven,

you're doing everything right, we've just failed to fix up all the scripts in scionlab after some changes to the zookeeper infrastructure. Sorry for this.

However, the solution should be quite simple; after running scion.sh topology, delete the file gen/zk-dc.yml. After that, the normal (non-docker) zookeeper should be started when running scion.sh start.

Cheers,
Matthias
Reply all
Reply to author
Forward
0 new messages