GithubHelp home page GithubHelp logo

opencord / voltha Goto Github PK

View Code? Open in Web Editor NEW
79.0 41.0 168.0 14.33 MB

Virtual OLT Hardware Abstraction

License: Apache License 2.0

Makefile 0.69% Shell 6.88% Python 88.54% Ruby 0.01% Go 1.65% C 0.27% XSLT 1.60% Dockerfile 0.03% RobotFramework 0.09% Jinja 0.23%

voltha's Introduction

DEPRECATED

No Maintenance Intended

VOLTHA 1.7 was the last release that officially supported the voltha core written in python as the core container for VOLTHA. From 2.0 onwards the voltha core has been rewritten in go voltha-go. This codebase is going to be removed after the VOLTHA 2.8 release LTS support ends in December 2022.

VOLTHA

What is Voltha?

Voltha aims to provide a layer of abstraction on top of legacy and next generation access network equipment for the purpose of control and management. Its initial focus is on PON (GPON, EPON, NG PON 2), but it aims to go beyond to eventually cover other access technologies (xDSL, Docsis, G.FAST, dedicated Ethernet, fixed wireless).

Key concepts of Voltha:

  • Network as a Switch: It makes a set of connected access network devices to look like a(n abstract) programmable flow device, a L2/L3/L4 switch. Examples:
    • PON as a Switch
    • PON + access backhaul as a Switch
    • xDSL service as a Switch
  • Evolution to virtualization: it can work with a variety of (access) network technologies and devices, including legacy, fully virtualized (in the sense of separation of hardware and software), and in between. Voltha can run on a decice, on general purpose servers in the central office, or in data centers.
  • Unified OAM abstraction: it provides unified, vendor- and technology agnostic handling of device management tasks, such as service lifecycle, device lifecycle (including discovery, upgrade), system monitoring, alarms, troubleshooting, security, etc.
  • Cloud/DevOps bridge to modernization: it does all above while also treating the abstracted network functions as software services manageable much like other software components in the cloud, i.e., containers.

Why Voltha?

Control and management in the access network space is a mess. Each access technology brings its own bag of protocols, and on top of that vendors have their own interpretation/extension of the same standards. Compounding the problem is that these vendor- and technology specific differences ooze way up into the centralized OSS systems of the service provider, creating a lot of inefficiencies.

Ideally, all vendor equipment for the same access technology should provide an identical interface for control and management. Moreover, there shall be much higher synergies across technologies. While we wait for vendors to unite, Voltha provides an increment to that direction, by confining the differences to the locality of access and hiding them from the upper layers of the OSS stack.

How can you work with Voltha?

While we are still at the early phase of development, you can check out the BUILD.md file to see how you can build it, run it, test it, etc.

How can you help?

Contributions, small and large, are welcome. Minor contributions and bug fixes are always welcome in form of pull requests. For larger work, the best is to check in with the existing developers to see where help is most needed and to make sure your solution is compatible with the general philosophy of Voltha.

Contributing Unit Tests

To begin, make sure to have a development environement installed according to the OpenCord WIKI. Next, In a shell environment

source env.sh;             # Source the environment Settings and create a virtual environment
make utest-with-coverage;  # Execute the Unit Test with coverage reporting

Unit-testing the Core

New unit tests for the core can be written in the nosetest framework and can be found under /tests/utest/

Unit-testing an Adapter

Each adapter's unit tests are discovered by the presence of a test.mk submake file underneath the adapter's directory. for example)

# voltha/adapters/my_new_adapter/test.mk

.PHONY test
test:
   @echo "Testing my amazing new adapter"
   @./my_test_harness
   

Voltha's test framework will execute the FIRST Target in the submake file as the unit test function. It may include as many dependencies as needed, such as using a different python framework for testing (pytest, unittest, tox) or even alternate languages (go, rust, php).

In order for you adapter's test-coverage to be reported, make sure that your test_harness creates a coverage report in a junit xml format. Most test harnesses can easily produce this report format. The Jenkins Job will pick up your coverage report file if named appropriately junit-report.xml according to the Jenkins configuration.

voltha's People

Contributors

abakagamze avatar alshabib avatar andybavier avatar cboling avatar cuilin2018 avatar dbainbri-ciena avatar dvelben avatar gcgirish-radisys avatar gdepatie-northforgeinc avatar gertjanvd avatar jonohart avatar khalasik avatar khenaidoo avatar mrvantastic avatar nikolaygtitov avatar paulgray-tibit avatar pshafik avatar ralthicord avatar rouzbahan avatar sathishg02 avatar sauravdas2 avatar sbarbari avatar sdcrooks avatar sergio-slobodrian avatar shadansari avatar smbaker avatar teone avatar theeyagus avatar tlabclutgen avatar zdw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

voltha's Issues

voltctl is not able to run

ubuntu@ip-172-31-85-221:~/source/voltha-go$ docker-compose -f compose/system-test.yml ps
Name Command State Ports

compose_adapter_openolt_1 /app/openolt --kafka_clust ... Up 0.0.0.0:50062->50062/tcp,:::50062->50062/tcp
compose_adapter_openonu_1 /voltha/adapters/brcm_open ... Up
compose_etcd_1 etcd --name=etcd0 --advert ... Up 0.0.0.0:2379->2379/tcp,:::2379->2379/tcp, 0.0.0.0:32791->2380/tcp,:::32791->2380/tcp,
0.0.0.0:32790->4001/tcp,:::32790->4001/tcp
compose_kafka_1 start-kafka.sh Up 0.0.0.0:9092->9092/tcp,:::9092->9092/tcp
compose_ofagent_1 /app/ofagent --controller= ... Up
compose_onos_1 ./bin/onos-service server Up 6640/tcp, 0.0.0.0:6653->6653/tcp,:::6653->6653/tcp, 0.0.0.0:8101->8101/tcp,:::8101->8101/tcp,
0.0.0.0:8181->8181/tcp,:::8181->8181/tcp, 9876/tcp
compose_rw_core_1 /app/rw_core -kv_store_typ ... Up 0.0.0.0:50057->50057/tcp,:::50057->50057/tcp
compose_zookeeper_1 /bin/sh -c /usr/sbin/sshd ... Up 0.0.0.0:2181->2181/tcp,:::2181->2181/tcp, 22/tcp, 2888/tcp, 3888/tcp
ubuntu@ip-172-31-85-221:~/source/voltha-go$

ubuntu@ip-172-31-85-221:~/source/voltha-go$ voltctl adapter list
ERROR: UNAVAILABLE: transport: Error while dialing dial tcp 127.0.0.1:55555: connect: connection refused

ofagent disconnects and reconnects with onos pods

I have created an ONOS cluster running as Kubernetes pods. I could connect ofagent with the cluster and could see my OLT in ONOS console with one master and two standbys. However when I 'watch roles' I can see the connection is lost every 30 seconds on both the standbys or so and is reestablished.
I am getting the following error in ofagent logs.

20190308T112531.089 DEBUG MainThread connection_mgr.get_list_of_reachable_logical_devices_from_voltha {'instance_id': 'ofagent-lee-1', 'datapath_id': 183060333L, 'id': '000100000ae9476d', 'event': 'reachable-logical-device-entry'}
20190308T112531.251 ERROR MainThread agent.enter_disconnected {'instance_id': 'ofagent-lee-1', 'reason': <twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>, 'event': 'connection-lost'}
20190308T112531.253 DEBUG MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'after_delay': 1, 'event': 'reconnect'}
20190308T112531.257 ERROR MainThread agent.clientConnectionLost {'connector': <twisted.internet.tcp.Connector instance at 0x7f8c80cc6050>, 'instance_id': 'ofagent-lee-1', 'reason': <twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>, 'event': 'client-connection-lost'}
20190308T112531.261 ERROR MainThread agent.enter_disconnected {'instance_id': 'ofagent-lee-1', 'reason': <twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>, 'event': 'connection-lost'}
20190308T112531.263 DEBUG MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'after_delay': 1, 'event': 'reconnect'}
20190308T112531.264 ERROR MainThread agent.clientConnectionLost {'connector': <twisted.internet.tcp.Connector instance at 0x7f8c80cc6b90>, 'instance_id': 'ofagent-lee-1', 'reason': <twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>, 'event': 'client-connection-lost'}
20190308T112532.257 INFO MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'host': 'onos-state-0.onos-state.default.svc.cluster.local', 'port': 6653, 'event': 'connecting'}
20190308T112532.260 INFO MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'event': 'tls-disabled'}
20190308T112532.264 INFO MainThread agent.enter_connected {'instance_id': 'ofagent-lee-1', 'event': 'connected'}
20190308T112532.265 INFO MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'host': 'onos-state-1.onos-state.default.svc.cluster.local', 'port': 6653, 'event': 'connecting'}
20190308T112532.265 INFO MainThread agent.keep_connected {'instance_id': 'ofagent-lee-1', 'event': 'tls-disabled'}
20190308T112532.266 DEBUG MainThread of_protocol_handler.start {'instance_id': 'ofagent-lee-1', 'event': 'starting'}

Any help will be highly useful

In RG docker, can not run dhclient

I can't run dhclient in RG docker container, "it shows dhclient: error while loading shared libraries: libdns-export.so.162: cannot open shared object file: No such file or directory", however the so locates in the dir "/lib/x86_64-linux-gnu/" , and the path is include by /etc/ld.so.conf. Log show below

docker run --net=host --privileged --name RG -it cord/tester bash
root@ubuntu-x64:/lib/x86_64-linux-gnu# dhclient pon1_128
dhclient: error while loading shared libraries: libdns-export.so.162: cannot open shared object file: No such file or directory
root@ubuntu-x64:/lib/x86_64-linux-gnu# ls -l /lib/x86_64-linux-gnu/libdns-export.so.162*
lrwxrwxrwx 1 root root 24 Apr 12 09:23 /lib/x86_64-linux-gnu/libdns-export.so.162 -> libdns-export.so.162.1.3
-rw-r--r-- 1 root root 1937280 Apr 12 09:23 /lib/x86_64-linux-gnu/libdns-export.so.162.1.3

Help

Getting this error when running pyang with plugin set to yangtoprotbuf

root@ubuntu:/home/ngashok/Projects/my_ikc_cloud/3rdparty/cli/pyang/pyang-master/bin# ./pyang --plugindir plugins/ -f proto -o my.proto -p plugins/ /home/ngashok/Projects/my_ikc_cloud/3rdparty/cli/clixon-master/yang/[email protected]

Traceback (most recent call last):
File "./pyang", line 11, in
import pyang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.