ONOS

If you haven't done it yet, add the CORD repository to the list of your local repositories and update the repo index:

helm repo add cord https://charts.opencord.org
helm repo update

Then, to install ONOS run:

helm install -n onos cord/onos

Nodeports exposed

  • OpenFlow: 31653
  • SSH: 30115
  • REST/UI: 30120
  • Karaf debugger: 30555

Accessing the ONOS CLI

Assuming you have not changed the default ports in the chart, you can use this command to access the ONOS CLI:

ssh karaf@<node-ip> -p 30115

The default ONOS password is karaf.

ONOS logging

onos-log-agent sidecar container

By default, the onos helm chart will run a sidecar container to ship logs using Filebeat to Kafka for aggregation of logs with the rest of the CORD platform.

This container is named onos-log-agent, and because 2 containers are running in the pod when you run kubectl you may need to use the -c option to specify which container you want to interact with. For example, to view the ONOS logs via kubectl, you would use:

kubectl logs onos-7bbc9555bf-2754p -c onos

and to view the filebeat logs:

kubectl logs onos-7bbc9555bf-2754p -c onos-log-agent

If this the sidecar isn't required, it can be disabled when installing the chart by passing --set log_agent.enabled=false or by using a values file.

Modifying ONOS logging levels

An option can be added either to the default ONOS values.yaml file, or overritten through an external configuration file. Here is an example:

application_logs: |
  log4j.logger.org.opencord.olt = DEBUG
  log4j.logger.org.opencord.kafka = DEBUG
  log4j.logger.org.opencord.sadis = DEBUG

A configuration file called onos-debug.yaml can be found in the configs folder of the helm-chart repository. That already contains examplar lines to augment the ONOS logging level while deploying the ONOS pod. To use the onos-debug configuration, run:

helm install -n onos -f configs/onos-debug.yaml cord/onos

results matching ""

    No results matching ""