Skip to content
Snippets Groups Projects
Commit b826cf4d authored by Malte Bauch's avatar Malte Bauch Committed by Fabian Seidl
Browse files

The controllers docker did not start because of missing config files


See merge request !277

Co-authored-by: default avatarMalte Bauch <malte.bauch@extern.h-da.de>
parent 216a07ab
No related branches found
No related tags found
1 merge request!287Implement data persisting for user management
Pipeline #98987 failed
...@@ -20,3 +20,4 @@ cli/gosdnc ...@@ -20,3 +20,4 @@ cli/gosdnc
# testing and configs # testing and configs
controller/configs/testing-gosdn.toml controller/configs/testing-gosdn.toml
controller/configs/development-gosdn.toml controller/configs/development-gosdn.toml
controller/configs/containerlab-gosdn.toml
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
# Overview # Overview
`goSDN` is also an application that will allow you to manage your multi-vendor network using one unified controller. `goSDN` is also an application that will allow you to manage your multi-vendor
network using one unified controller.
`goSDN` provides: `goSDN` provides:
* Model driven device representation * Model driven device representation
...@@ -25,7 +26,8 @@ ...@@ -25,7 +26,8 @@
* Multi controller environments * Multi controller environments
## Example ## Example
A simple showcase how the controller can be adressed after `make containerlab-start` is shown below: A simple showcase how the controller can be adressed after
`make containerlab-start` is shown below:
![](gosdn-cli-showcase.webm) ![](gosdn-cli-showcase.webm)
...@@ -42,9 +44,9 @@ A simple showcase how the controller can be adressed after `make containerlab-st ...@@ -42,9 +44,9 @@ A simple showcase how the controller can be adressed after `make containerlab-st
# Concepts # Concepts
The `goSDN` controllers core - also called `nucleus` - is a lightweight library that The `goSDN` controllers core - also called `nucleus` - is a lightweight library
manages principal network domains and provides southbound interface operations that manages principal network domains and provides southbound interface
for orchestrated networking devices. operations for orchestrated networking devices.
In addition we provide a simple Northbound-API for the controller () In addition we provide a simple Northbound-API for the controller ()
...@@ -74,8 +76,9 @@ running `./gosdn` from the shell. ...@@ -74,8 +76,9 @@ running `./gosdn` from the shell.
# Getting Started # Getting Started
If you want to use the the [playground](#playground) you have to make sure you have If you want to use the the [playground](#playground) you have to make sure you
[containerlab](https://containerlab.dev/install/) installed on your system. have [containerlab](https://containerlab.dev/install/) installed on your
system.
## Playground ## Playground
...@@ -86,9 +89,16 @@ The environment contains two [Arista ...@@ -86,9 +89,16 @@ The environment contains two [Arista
cEOS](https://www.arista.com/en/products/software-controlled-container-networking), cEOS](https://www.arista.com/en/products/software-controlled-container-networking),
a goSDN, a cSBI orchestrator and a gNMI target. a goSDN, a cSBI orchestrator and a gNMI target.
> If you're a member of the danet group you should have access to the containers repo. Don't forget to `docker login registry.code.fbi.h-da.de` > If you're a member of the danet group you should have access to the
> containers repo. Don't forget to `sudo docker login
> registry.code.fbi.h-da.de` (`sudo` is necessary since `containerlab` has to
> be run with it and therefore a normal `docker login` wouldn't be recognized
> by it.)
> >
> If you're no member of the danet group you have to [create an account](https://www.arista.com/en/login) at Arista and download the Arista cEOS image by yourself. Don't forget to change the image name (line `11` in the `gosdn.clab.yml` file) to the local one you've downloaded. > If you're no member of the danet group you have to [create an
> account](https://www.arista.com/en/login) at Arista and download the Arista
> cEOS image by yourself. Don't forget to change the image name (line `11` in
> the `gosdn.clab.yml` file) to the local one you've downloaded.
```sh ```sh
# starts the containerlab topology which contains two Arista cEOS, an cSBI orchestrator, a goSDN controller and gNMI target. # starts the containerlab topology which contains two Arista cEOS, an cSBI orchestrator, a goSDN controller and gNMI target.
......
...@@ -12,10 +12,7 @@ FROM installer as builder ...@@ -12,10 +12,7 @@ FROM installer as builder
COPY . . COPY . .
RUN make build RUN make build
#FROM scratch as gosdn
#COPY --from=builder /gosdn/artifacts/gosdn /
#ENTRYPOINT ["/gosdn"]
FROM builder as gosdn FROM builder as gosdn
COPY controller/configs/development-gosdn.toml.example /gosdn/configs/development-gosdn.toml COPY controller/configs/development-gosdn.toml.example /gosdn/configs/development-gosdn.toml
COPY controller/configs/containerlab-gosdn.toml.example /gosdn/configs/containerlab-gosdn.toml
ENTRYPOINT ["/gosdn/artifacts/gosdn"] ENTRYPOINT ["/gosdn/artifacts/gosdn"]
...@@ -47,7 +47,7 @@ import ( ...@@ -47,7 +47,7 @@ import (
var cfgFile string var cfgFile string
var loglevel string var loglevel string
var grpcPort string var socket string
var csbiOrchestrator string var csbiOrchestrator string
var pluginFolder string var pluginFolder string
var security string var security string
...@@ -80,7 +80,7 @@ func init() { ...@@ -80,7 +80,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./configs/gosdn.toml)") rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./configs/gosdn.toml)")
rootCmd.PersistentFlags().StringVarP(&loglevel, "log-level", "l", "", "log level 'debug' or 'trace'") rootCmd.PersistentFlags().StringVarP(&loglevel, "log-level", "l", "", "log level 'debug' or 'trace'")
rootCmd.Flags().StringVar(&grpcPort, "grpc-port", "", "port for gRPC NBI") rootCmd.Flags().StringVar(&socket, "socket", "", "port for the controllers gRPC northbound interface")
rootCmd.Flags().StringVar(&csbiOrchestrator, "csbi-orchestrator", "", "csbi orchestrator address") rootCmd.Flags().StringVar(&csbiOrchestrator, "csbi-orchestrator", "", "csbi orchestrator address")
rootCmd.Flags().StringVar(&pluginFolder, "plugin-folder", "", "folder holding all goSDN specific plugins") rootCmd.Flags().StringVar(&pluginFolder, "plugin-folder", "", "folder holding all goSDN specific plugins")
rootCmd.Flags().StringVarP(&security, "security", "s", "", "security level 'secure' or 'insecure'") rootCmd.Flags().StringVarP(&security, "security", "s", "", "security level 'secure' or 'insecure'")
......
[[client]]
identifier = "ciena-mcp"
endpoint = "172.17.0.3:8080"
gjsonDefaultPath = "data.#.object_data.tapi-object-data"
gjsonConnectionsPath = "data.#.object_data"
basepnduuid = "5f20f34b-cbd0-4511-9ddc-c50cf6a3b49d"
basesouthboundtype = 1
basesouthbounduuid = "ca29311a-3b17-4385-96f8-515b602a97ac"
cli_pnd = "0455b241-5863-4660-ad15-dfde7617738e"
cli_sbi = "a249f2d2-f7da-481d-8a99-b7f11471e0af"
csbi-orchestrator = "clab-gosdn_csbi_arista_base-csbi-orchestrator:55056"
help = false
plugin-folder = "plugins"
log-level = "debug"
pnduuid = "bf8160d4-4659-4a1b-98fd-f409a04111ec"
socket = ":55055"
databaseConnection = "mongodb://root:example@clab-gosdn_csbi_arista_base-mongodb:27017"
...@@ -3,10 +3,9 @@ basesouthboundtype = 1 ...@@ -3,10 +3,9 @@ basesouthboundtype = 1
basesouthbounduuid = "ca29311a-3b17-4385-96f8-515b602a97ac" basesouthbounduuid = "ca29311a-3b17-4385-96f8-515b602a97ac"
cli_pnd = "0455b241-5863-4660-ad15-dfde7617738e" cli_pnd = "0455b241-5863-4660-ad15-dfde7617738e"
cli_sbi = "a249f2d2-f7da-481d-8a99-b7f11471e0af" cli_sbi = "a249f2d2-f7da-481d-8a99-b7f11471e0af"
config = ""
csbi-orchestrator = "localhost:55056" csbi-orchestrator = "localhost:55056"
grpc-port = ""
help = false help = false
plugin-folder = "plugins"
log-level = "debug" log-level = "debug"
pnduuid = "bf8160d4-4659-4a1b-98fd-f409a04111ec" pnduuid = "bf8160d4-4659-4a1b-98fd-f409a04111ec"
socket = ":55055" socket = ":55055"
......
...@@ -3,10 +3,9 @@ basesouthboundtype = 1 ...@@ -3,10 +3,9 @@ basesouthboundtype = 1
basesouthbounduuid = "ca29311a-3b17-4385-96f8-515b602a97ac" basesouthbounduuid = "ca29311a-3b17-4385-96f8-515b602a97ac"
cli_pnd = "0455b241-5863-4660-ad15-dfde7617738e" cli_pnd = "0455b241-5863-4660-ad15-dfde7617738e"
cli_sbi = "a249f2d2-f7da-481d-8a99-b7f11471e0af" cli_sbi = "a249f2d2-f7da-481d-8a99-b7f11471e0af"
config = ""
csbi-orchestrator = "localhost:55056" csbi-orchestrator = "localhost:55056"
grpc-port = ""
help = false help = false
plugin-folder = "plugins"
log-level = "debug" log-level = "debug"
pnduuid = "bf8160d4-4659-4a1b-98fd-f409a04111ec" pnduuid = "bf8160d4-4659-4a1b-98fd-f409a04111ec"
socket = ":55055" socket = ":55055"
...@@ -36,8 +36,7 @@ topology: ...@@ -36,8 +36,7 @@ topology:
- 8080:8080 - 8080:8080
- 40000:40000 - 40000:40000
cmd: cmd:
--config /gosdn/configs/development-gosdn.toml --config /gosdn/configs/containerlab-gosdn.toml
--csbi-orchestrator clab-gosdn_csbi_arista_base-csbi-orchestrator:55056
mgmt_ipv4: 172.100.0.5 mgmt_ipv4: 172.100.0.5
gnmi-target: gnmi-target:
kind: linux kind: linux
...@@ -88,8 +87,9 @@ topology: ...@@ -88,8 +87,9 @@ topology:
ports: ports:
- 8081:8081 - 8081:8081
env: env:
MONGO_INITDB_ROOT_USERNAME: root ME_CONFIG_MONGODB_ADMINUSERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_SERVER: mongodb
mgmt_ipv4: 172.100.0.14 mgmt_ipv4: 172.100.0.14
links: links:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment