A docker tool used for deploying ONOS cluster.
141
The MTCO contains a set of tools for managing a container based ONOS cluster. We assume that the users have configured at least one linux node (remote machine) which is capable for running a docker container. Also the local machine where we run the MTCO has privilege to access to the remote machine through SSH tunnel without providing the password. To achieve this, the users need to 1) pre-create an user named "sdn" at all remote machines; 2) distribute a public RSA key from the local machine to all remote machines. With this setup, the local machine does not need to provide any password when it accesses to the remote machines.
To run MTCO, the local machine should be installed python, git, and ssh related softwares such as ssh-keygen, ssh-copy-id, etc. Since the user may use any UNIX-based OS, therefore the installation instruction of prerequisite softwares will be varied, we will not provide the detailed installation instruction on those softwares.
$ git clone https://github.com/sonaproject/onos-docker-tool.git
# useradd sdn
# echo "sdn ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# passwd sdn
$ ssh-keygen -t rsa
bash_profile. If the user wants to apply the variables for each login, he/she needs to put following content into .bash_profile under user directory.. ~/path-to-onos-docker-tool/bash_profile
site directory with its own name. By default, we provide a profile named default. Please refer to default to create your own site profile. After done all site profile creation, please apply the profile by issuing following commands.$ onos-docker-site profile_name
onos-docker-site can be further simplified with ods.
$ ssh-copy-id sdn@$ODC1
$ ssh-copy-id sdn@$ODC2
$ ssh-copy-id sdn@$ODC3
...
$ ./start.sh
network-cfg.json to one of the ONOS nodes.$ ./push-cfg.sh
$ onos-docker $ODC1
Note that, onos-docker can be further simplified with od. In order to use onos-docker command, please install sshpass utility first.
The following link describes how to install sshpass. https://gist.github.com/arunoda/7790979
$ onos-docker-log $ODC1
Note that, onos-docker-log can be further simplified with odl. odl does NOT stand for opendaylight :)
$ ./stop.sh
Content type
Image
Digest
Size
23.4 MB
Last updated
over 7 years ago
docker pull opensona/onos-docker-tool:stable