+1 (669) 231-3838 or +1 (800) 930-5144

Top 10 Things For New OpenDaylight Developers

I recently started contributing upstream to the Open Daylight project (ODL) as a developer. I mostly followed the ODL developer documentation on how to get started and how to use the tools. Through ambiguous documentation or through hubris (every developer always thinks they know what they are doing), I made some mistakes and had to learn some things the hard way. This article is an enumeration of some of those hard knocks, just in case it can help the next person following this path.

First, this list is more than ten items. It is just that “top 10” has a catchy sound to it that just isn’t there for “top 17”.

Gerrit Workflow

Gerrit has a different workflow that you are likely using in downstream coding with other tools. There is a general tutorial and an ODL coding introduction to working with Gerrit that is very helpful.

Coding Conventions

We followed our own coding guidelines and those did not match to the Google coding conventions used upstream. Differences we ran into were:

  • Lower-case method names, even for JUnit test methods
  • Using the most restrictive visibility for access qualifiers (I won’t push back the philosophy of library design)
  • Use Java 8 lambdas everywhere possible

Gerrit Commands

Gerrit (plugin) has some non-obvious controls, namely that you can kick off another build by putting “recheck” as your comment. Others are “rerun”, “verify” as in here.

WIP

Upstream coders usually add the prefix “WIP: ” to their bug report to let other developers know things are not ready for prime time reviews yet. I have been putting the “WIP:” prefix as a new comment right after my new patch set.

Diffs

Mechanically you can review the issues by using “Diff against:” drop list to pick a revision to start at then go into the first file and then use the upper right arrows to move between files.

Broken Master

The master branch on ODL can and does break, causing lots of down time with broken builds (days even). Full builds take 10 hours and verifying-before-pushing is an evolving process. Have patience.

Git Review

If you are using “git review” and you forgot the “- – amend” option on your commit, you will be prompted to squash and will end up with a new branch. You can recover using “git rebase -i HEAD~2” then using the force option and then abandoning the new branch.

Staleness

Along with master breaking, master can also produce stale artifacts, so don’t assume that clearing your m2 cache, creating a subproject repo and building will give you up-to-date code.

Searching Jars

You can search jar files using find . -type f -name ‘*.jar’ -print0 |  xargs -0 -I ‘{}’ sh -c ‘jar tf {} | grep “YourClassHere” &&  echo {}’ for helping verify your m2 has the latest.

Patch Workflow

The patch workflow is not very good at all for having multiple people working on an item; traditional git branches and management are superior in this respect so expect some pain.

Broken Master Again

If your patch won’t build because master is broken, you can rebase it to pick up a fix temporarily. When you do a “git review” to push it, you will be prompted because there are two commits (your new patch revision and the fix). You do not want to merge that fix into your patch.

Skip Tests

There may be a bug here or there in dependencies, so you should always to a full build within a subproject the first time after you create the repo. In my case, I was in netconf and saw a difference between starting off with a “-DskipTests” or not. The former lead to a failed build, while starting with a full build (and then doing any number of skip tests), seemed to work.

Checkstyle

If you are a developer who works with meaningful coding standards, you will find yourself clashing with the pedantic nature of ODL’s use of check style. Although it probably varies from project to project, your code reviewer might decide that your code is the perfect opportunity to enforce check style.

Bug Report

Put the URL to the gerrit issue in “external references” on the bug report and put the bug as the first part of the commit message like “BUG-8118: ….”

Gerrit Patch Set

Any replies that you make to the patch set discussion use the current patch set as an annotation. Be sure to move your “current patch set” by using the upper right drop list “Patch sets 8/8” (for example).

Easy Debug

You can do development on a project like netconf and start a controller with your code: git clone, mvn clean install, go to netconf/karaf/target/assembly/bin, do ./karaf, at console install your feature, like feature:install odl-netconf-callhome-ssh (and maybe odl-mdsal-apidocs). Viola!

Docs

If you work on the docs, then you need to know there are three kinds: contributor (on wiki), developer, and user (both on docs.opendaylight.org).

Getting Started Upstream in ODL

By Allan Clarke and Anil Vishnoi

 

 

Getting started as an upstream contributor to OpenDaylight is not easy. The controller ecosystem is big, there are many projects, and there are millions of lines of code. What is a new ODL developer to do? Here is some pragmatic advice on where to begin to become an active contributor.

Fix Bugs

One of the easiest ways to get to know a code base is to start fixing bugs. Peruse the ODL bugs list on Bugzilla, say with the NETCONF project. You want to find bugs that aren’t likely being worked on and are of limited scope (to match your limited understanding of the project). Ideally bugs will have an owner assigned to indicate that they are actively being worked on, but it is not always a great indicator. In particular, someone may run across a bug, file a report, then jump into fixing it—and forget to assign it to themselves. This is most likely with the project contributors, so figure out who are the project contributors and look at the date of the report. If it was a project contributor and a newish date, then that bug might be being worked on. You should read through the report and try to decide how much domain knowledge is needed—as a newbie, smaller is better.

Once you have selected a bug to work on, click on the “take” link. Also add a comment to the bug. If someone already is working on it, they should get a notice and respond. You can also try the ODL mailing lists and give notice there. You mainly want to avoid duplicate work, of course.

Review Patches

Reviewing patches is a great way to contribute. You can access patches via Gerrit, and we’ll use the NETCONF patches as an example. Doing code reviews is a great way to not only see existing code but also to interact with other developers.

  • If you have some domain expertise and know the code, you can review the functionality that is being pushed.
  • If you have neither of these, you can do the review based on Java best practices and good software engineering practice.

Address Technical Debt

ODL uses Sonar for analytics of the upstream project. Here is an example for the NETCONF issues. Note that the ODL project has coding conventions, and the Sonar Qube has some best practices. This list shows violations that should be addressed. As a newbie, you can work on these with little domain knowledge required. You can also see that the code coverage varies for the NETCONF coverage, so adding NETCONF unit tests to boost the coverage in the weakest areas would be very helpful.

Sonar has a lot of interesting metrics. You can explore some of them starting here including coverage, tech debt, etc. If you look at the Sonar dashboard, it will point out a lot of available work that does not require a large span of time to invest. Doing some of this work is a great step towards getting your first patch submitted.

Follow Best Practices

With well over a million lines of code and many contributors from many companies, the ODL project has quite a girth. To manage the code entropy, ODL has some best practices that you should become familiar with. These cover a diverse set of topics, including coding practices, debugging, project setup and workflow. We strongly recommend that you carefully read these. They will save you a lot of time and will pay back your investment quickly. They will help you skate through code reviews. These practices are really time-tested advice from all the ODL developers, so don’t ignore them.

Support Attribution

Attribution is an important insight into most if not all open source projects. Attribution allows stakeholders to see who is contributing what, from the individual up through sponsoring companies. It allows both a historical and current view of the project. You can see an example of why attribution is illuminating here. You need to sign up for an ODL account, and a part of that process will be to associate yourself with a company (if applicable). You can also see breakdowns by authors on the ODL Spectrometer.

That’s all for now. Happy trails, newbie.

Watch for Allan’s blog next week where he will share his Top 10 learnings as a new developer contributing to ODL.

Lumina Networks、SDN市場に参入

~ベンダー・ロックインを排除するオープンなソフトウェア・ネットワークを促進することを目的に創
設されたLumina Networks~
【東京、2017年8月8日発表】 Lumina Networks, Inc.(本社:米国カリフォルニア州サンノゼ
、CEO:Andrew Coward)は、Brocade Communications Systems, Inc.よりSDNコントローラ
製品ファミリに関連する資産を取得して、SDN(Software-Defined Networking)市場に進出した
ことを本日発表しました。Luminaは、OpenDaylight™によって強化された先進的なSDNコントロー
ラ・ソリューションと共に、才能のあるネットワーク・ソフトウェア・エンジニア・チームを擁し、すでに
世界最大のサービスプロバイダの何社かを含む顧客と取引しています。Lumina SDNコントロー
ラ、アプリケーション、およびネットワーク開発(NetDev)サービスを提供するLuminaは、オープン
なソフトウェア・ネットワークの開発段階から本番環境での稼働への速やかな移行を支援します。
ソフトウェアベースのネットワークに移行することで、ネットワークの機能と顧客体験を変化させな
がら、資本コストおよび運用コストを大幅に削減できます。しかし、ハードウェアからソフトウェアへ
の移行が複雑であると共に、特定ベンダーに依存しないことが強く求められていることで、ネットワ
ーク・プロバイダにとって開発テスト環境から本番環境への移行が困難になっていました。これは
、オープンソース・ベースのネットワーキング技術がまさに役立つところです。
LuminaはOpenDaylight™を推奨オープンソース・コントローラとして使用しているため、ネットワー
ク・プロバイダはSDNの実装を直接制御でき、ベンダーを選んで独自のソリューションを開発でき
ることでベンダー・ロックインを排除できます。Luminaは、OpenDaylightとコードベースでの完全
互換性を保証するために、SDNコントローラの拡張機能をオープンソース・コミュニティーにフィー
ドバックしています。
また、LuminaはNetDevサービスも提供しており、企業によるネットワーク・エンジニアリングと運
用チームの変革を支援します。LuminaのNetDevサービスチームは、プロトタイピングと概念実証
からパイロット段階までの期間を迅速化するアジャイル手法を使用して、顧客と協力して稼働シス
テムを共同開発します。Lumina NetDevサービスは、Lumina製品、オープンソース・プロジェクト
製品、あるいは競合製品を使用してソリューションを構築します。Luminaの手法により、顧客のチ
ームは新しいオープンソース・プラットフォームの開発と管理を自ら行うことができます。

Lumina Networksの最高経営責任者(CEO)であるアンドリュー・カワード(Andrew Coward)は、
次のように述べています。
「私たちの仕事は、ネットワーク・プロバイダがオープン・ソフトウェア・ネットワークを開発段階から
本番稼働への移行を促進することです。私たちは、プロバイダが重要なユースケースにオープン
ソースを使用できるよう支援するためにLumina Networksを立ち上げました。しかし、ただ技術を
提供するだけでは不十分です。当社の顧客は、私たちと一緒に実装を行っているため、両者が共
同で導入するプラットフォームの開発と管理に必要な技術、プラクティス、およびツールを学習し、
取得しています」
Luminaの製品ポートフォリオは、以下の通りです。
 Lumina SDN Controller:完全にテスト、文書化、品質保証されたOpenDaylight版の
Lumina SDN Controllerは、ネットワークを制御し、そのノードを管理する共通のオープン・
プラットフォームを提供。
 Lumina Flow Manager:効率的なトラフィックフローを実現するパス計算などの高度なアルゴ
リズムを使用して、ネットワークのより容易で高度なトラフィック・エンジニアリングを可能にす
るコントローラ・ベースのアプリケーション。
 Lumina Zero Touch Installer:仮想CPEなどのデバイスの初期化に、正しいソフトウェア・イ

メージと設定を自動的に提供するコントローラ・ベースのアプリケーション。
ACG Research社の最高経営責任者(CEO)兼主任アナリストであるRay Mota(レイ・モタ)氏は
、次のように述べています。
「Lumina Networksは、オープン性を備え、技術革新を重ねていくことで、SDN市場において明確
な差別化を図ることができます。同社は、才能豊かなソフトウェア・エンジニア・チームを持っており
、大規模なサービスプロバイダ顧客が採用されている強力なSDNコントローラを通じて、ネットワ
ーク事業者がSDNの使用を拡大して時間とコストを節約できるよう支援しています」
Lumina Networksは、日本仮想化技術株式会社(本社:東京都渋谷区、代表取締役社長:宮原
徹)と提携し、日本における大手サービスプロバイダ市場で事業を展開していきます。日本仮想化
技術のオープンソース・ソフトウェア・コンサルティング能力は、Lumina Networksのオープンソー
ス製品とNetDevサービスを補完するものです。 Luminaと日本仮想化技術は、日本の顧客向け
にSDN、NFV、ネットワーク自動化、DevOps、 およびNetOpsに焦点を置いた最先端プロジェク
トを共同で提供します。
●Lumina Networksについて
Lumina Networksは、ネットワーク・プロバイダが開発を制御できるオープンなソフトウェア・ネット
ワークだと考えています。同社は、オープンなソフトウェア・ネットワークを開発段階から本番ネット
ワークの稼働の移行を促進します。Lumina Networksは、オープンソース・プラットフォームを開
発し、NetDevサービスを提供して、稼働システムの共同提供とアジャイル・ソフトウェア開発手法
のノウハウ移転を行います。
©2017 Lumina Networks. All Rights Reserved.
Lumina NetworksおよびLumina Networksのロゴおよびシンボルは、米国およびその他の国に
おけるLumina Networks、Inc.の商標または登録商標です。その他の商標は第三者に帰属して
いる可能性があります。
<<報道関係からのお問い合わせ先>>
Lumina Networks, Inc.
Kevin Woods
Tel: +81 (408) 906-8514
Email: kevin@luminanetworks.com

Service Providers Are Placing Big Bets on Open Source Software Networking – Should You?

The service provider market is undergoing earth-shaking changes. These changes impact the way that applications for consumers and business users are deployed in the network and cloud as well as the way that the underlying data transport networks are built.

At Lumina, we’ve had the chance to work with several large service providers on their software transformation initiatives and get an up-close look at what works and what doesn’t. Three factors are particularly favorable in setting up successful projects for frictionless progress from the lab through prototype and proof of concept and into the production network.

Top-Down Advantage

Our first observation is that top-down initiatives and leadership work better than bottom-up or “grass roots” approaches. The experience of AT&T strongly illustrates the advantage. While a few of the hyperscale cloud providers had already launched open source initiatives and projects, the first big move among the established service providers was AT&T’s Domain 2.0, led by John Donovan in 2013. Domain 2.0 was not a precise description of everything that AT&T wanted to do, but through that initiative, the leadership created an environment where transformative projects are embraced and resistance to change is pushed aside.

While lack of top down support is not a showstopper, it is extremely helpful to get past obstacles and overcome organizational resistance to change. If top-down support in your organization is lacking or weak, it is worth your effort to influence and educate your executives. In engaging executives focus on the business value of open software networking. The advantages of open source in software networks include eliminating lock-in and spurring innovation. As our CEO, Andrew Coward, wrote in his recent blog, Why Lumina Networks? Why Now?: “Those who build their own solutions—using off-the-shelf components married to unique in-house developed functionality—build-in the agility and options for difference that are necessary to stay ahead.”

Although it may create a slower start, from what we have seen, taking the time to do early PoCs to onboard executive support so that they deeply attach to the value is time well worth spent. Sometimes a slow start is just what is needed to move fast.

Collaboration through Open Source

The second observation is that industry collaboration can work. I read an interesting comment by Radhika Venkatraman, senior vice president and CIO of network and technology at Verizon, in her interview with SDxCentral. She said, “We are trying to learn from the Facebooks and Googles about how they did this.” One of the best ways to collaborate with other thought leaders in the industry is to join forces within the developer community at open source projects. The Linux Foundation’s OpenDaylight Project includes strong participation from both the vendor community and global service providers including AT&T, Alibaba Group, Baidu, China Mobile, Comcast and Tencent. Tencent, for one, has over 500 million subscribers that utilize their OpenDaylight infrastructure, and they are contributing back to the community as are many others.

A great recent example of industry collaboration is the newly announced ONAP (Open Network Automation Platform) project. Here, the origins of the project have roots in work done by AT&T, China Mobile and others. And now, we have a thriving open source developer community consisting of engineers and innovators who may not have necessarily collaborated in the past.

These participants see benefits of collaboration not only to accelerate innovation but also to build the software run time across many different types of environments and use cases so as to increase reliability. Providers recognize that in their transformation to software networks there’s much they can do together to drive technology, while using how they define and deliver services to stand out from each other in the experiences created for customers.

What about your organization? Do you engage in the OpenDaylight community? Have you explored how ONAP can help you? Do you use OpenStack in your production network? And importantly, do you engage in the discussions and share back what you learn and develop?

Pursuit of Innovation

A third observation is the growing ability for service providers to create and innovate at levels not seen before. A prime example here is the work done by CenturyLink to develop Central Office Re-architected as a Datacenter platform to deliver DSL services running on OpenDaylight. CenturyLink used internal software development teams along with open source and Agile approaches to create and deploy CORD as part of a broad software transformation initiative.

One might have thought that you would only see this level of innovation at Google, Facebook or AWS, but at Lumina we are seeing this as an industry-wide trend. The customer base, business model, and operations of service providers vary widely from one to another based on their historical strengths and legacy investment. All have an opportunity to innovate in a way that advances their particular differences and competitive advantages.

Closing Thoughts

So we encourage you to get on the bandwagon! Don’t stand on the sidelines. A combination of leadership, collaboration and innovation are the ingredients you need to help your organization drive the software transformation needed to stay competitive. There is no other choice.

Stay tuned for my next blog where we will discuss some of the specifics of the advantages, development and innovation using open source.

Welcome to Lumina Networks

Today Lumina Networks is launching through our acquisition of Brocade’s SDN Controller product family and the joining of its talented development and services engineers. We are truly thrilled for this new chapter and opportunity to work with you.

Lumina is dedicated to the advancement of open software networks that give providers control over how they implement their ideas and priorities for change. We believe our job is to be the catalyst to bring open software networking out of the lab and into live networks, and we have the products and expertise to help our customers do just that.

As Lumina Networks, we will continue to provide the industry-leading Lumina SDN Controller, powered by OpenDaylightTM (ODL) along with our optional controller-based applications. As you may know, this solution offers a common, open platform for developers, giving providers direct control over their SDN development and implementation, thus eliminating vendor lock-in. What you may not realize is how widely deployed the ODL Controller is today, now supporting over 1 billion users worldwide.

In addition, we will also offer Lumina NetDev Services for organizations that wish to accelerate the implementation of their open software network and want to expand the skill set of their network engineering and operations team through hands-on experience. Our NetDev Services team of experts works with customers to jointly develop production systems using Agile methods to prototype and speed through proof-of-concept and pilot phases. The team’s expertise and willingness to work spans open source, Lumina products and any third-party products needed to achieve multi-vendor interworking.

This is a particularly gratifying day for me, having spent my last three years at Brocade, working alongside this outstanding team and developing what we believe to be a unique set of products and services. Learn more about why providers around the world are working with Lumina now and the principles we are committed to following to bring open software out of the lab and into the live network.

If this resonates with you, and you have a software networking project in the lab that you are ready to move to the live network, please reach out. Join our movement and get out of the lab today!

 

Pin It on Pinterest