Transcript
Page 1: An Open Source Strategy for NASA

An Open Source Strategy for NASA

Chris A. MattmannSenior Computer Scientist, NASA Jet Propulsion Laboratory

Adjunct Assistant Professor, Univ. of Southern CaliforniaMember, Apache Software Foundation

Page 2: An Open Source Strategy for NASA

Roadmap• Areas for Open Source at NASA• Strategies and Decision Points• Apache OODT• Wrap-up

• This is a shorter version of a longer, half day breakout on NASA Open Source that I led at the 9th NASA Earth Science Data System Working Group Meetings in October 2010

• http://s.apache.org/anM

29-Mar-11 2NASAOSS-MATTMANN

Page 3: An Open Source Strategy for NASA

And you are?

• Apache Member involved in– OODT (VP, PMC), Tika (VP,PMC), Nutch (PMC), Incubator

(PMC), SIS (Mentor), Lucy (Mentor) and Gora (Champion), MRUnit (Mentor)

• Senior Computer Scientist at NASA JPL in Pasadena, CA USA

• Software Architecture/Engineering Prof at Univ. of Southern California

29-Mar-11 3NASAOSS-MATTMANN

Page 4: An Open Source Strategy for NASA

The NASA ESDS Context

4

Where is open source most useful?

Which area should produce open source software?

29-Mar-11 NASAOSS-MATTMANN

Page 5: An Open Source Strategy for NASA

Concerns in the Open Source World

• Licensing– GPL(v2, v3?), LGPL(v?), BSD, MIT, ASLv2– Your own custom license approved by OSS

• NASA OSS license?• Caltech license?

– Copy-left versus Copy-right• Redistribution

– Can you take open source product X and use it in your commercially interested software Y?

• If so, do you have to pay for it?– Should others pay for your open source product if they use it in their

commercial application?• Open Source “Help Desk” Syndrome versus Community

– Are you trying to simply make your open source software (releases) available for distribution (aka help desk)?

– Are you trying to get others to “buy in” to your open source software?

529-Mar-11 NASAOSS-MATTMANN

Page 6: An Open Source Strategy for NASA

Concerns in the Open Source World

• Intellectual Property– Who owns it?– How does the Open Source Software affect your IP?

• Open Source Ecosystems– Where can you find the “killer app” you need?– Which communities are conducive for longevity?– How relevant are “generic” open source software communities to NASA Earth

Science Data Systems?• Contributing

– Are you even allowed to contribute to a OSS community?– Can you do it on “company” time?– What’s required?– What’s the governance?

• Responsiveness– How response is the OSS community to your projects’ needs?

629-Mar-11 NASAOSS-MATTMANN

Page 7: An Open Source Strategy for NASA

Concerns in the Open Source World

729-Mar-11 NASAOSS-MATTMANN

Page 8: An Open Source Strategy for NASA

The NASA ESDS Context

8

The aforementioned OSS concerns are cross cutting against the whole ESDS enterprise!

29-Mar-11 NASAOSS-MATTMANN

Page 9: An Open Source Strategy for NASA

Licensing• Relates to: redistribution, intellectual property,

contributing, legal strategies

• There are tons of OSS approved licenses– What’s the difference between them?

• The difference mostly has to do with – Commercialization– Redistribution– Attribution

• Will talk specifics in the breakout sessions

929-Mar-11 NASAOSS-MATTMANN

Page 10: An Open Source Strategy for NASA

Redistribution• So you’ve built some awesome piece of NASA ESDS Software• And you’re wondering

– What are my options for distributing it to• Other DAACs?• Other SIPS?• Other funded proposal efforts we’re collaborating with (ACCESS, MEASURES)• Any other collaborators?

• Question: what license are you going to choose?– Hopefully one that supports redistribution under your own terms!

• How to redistribute the software?– Requires infrastructure– Who’s going to set it up?

1029-Mar-11 NASAOSS-MATTMANN

Page 11: An Open Source Strategy for NASA

OSS Ecosystems• Where should you go to for your open source project?

• Should NASA have its own?• Should your project (SIPS, DAAC, proposal) have its own?

1129-Mar-11 NASAOSS-MATTMANN

Page 12: An Open Source Strategy for NASA

Apache Maturity Model• Start out

with Incubation

• Grow community

• Make releases

• Gain interest• Diversify

• When the project is ready, graduate into– Top-Level Project (TLP)– Sub-project of TLP

• Increasingly, Sub-projects are discouraged compared to TLPs

12NASAOSS-MATTMANN29-Mar-11

Page 13: An Open Source Strategy for NASA

• Apache is a meritocracy– You earn your keep and your

credentials• Start out as Contributor

– Patches, mailing list comments, etc.– No commit access

• Move onto Committer– Commit access, evolve the code

• PMC Members– Have binding VOTEs on releases/personnel

• Officer (VP, Project)– PMC Chair

• ASF Member– Have binding VOTE in the state of the foundation– Elect Board of Directors

• Director– Oversight of projects, foundation activities

13NASAOSS-MATTMANN29-Mar-11

Apache Organization

Page 14: An Open Source Strategy for NASA

SourceForge (a different model)• Project Proposal

– Accepted? Get going!• No foundation-wide oversight• Tons of dormant projects with

no communities of interest• Goal is to host infrastructure and

host technologies• Goal is not to build communities• No foundation-wide rules or guidelines for committership or for

project management – Dealt with locally by the progenitor of the project– Can lead to BDFL (benevolent dictator for life) syndrome

• No foundation-wide license requirements– BSD, GPL(v2, v3), MIT, LGPL, etc all allowed

14NASAOSS-MATTMANN29-Mar-11

Page 15: An Open Source Strategy for NASA

OSS Ecosystems• FTR, there are tons of concerns here

– Should the ecosystem impose license restrictions?• Only support license X or Y?

– What are the redistribution policies?– What’s the community?– What’s the IP?– What’s the infrastructure support?– Is it a foundation with rules, or just free for all?

• Elephant in the room: What is the exposure? How many people are going to community C and are going to see your software and perhaps want to use it, improve it, file bugs against it, file patches, etc.?

• Where/how does this matter to NASA?– Standing up our own OSS ecosystem may make sense for large, coarse-

grained federations– A LOT more difficult to justify OTOH, for fine grained components, and module

reuse

1529-Mar-11 NASAOSS-MATTMANN

Page 16: An Open Source Strategy for NASA

Community versus “Help Desk”• How do you want to have your open source software

project run in the open?– Do you expect folks to come to you and only file bugs?

• Then you and your team are the only ones who can fix them?• Then you and your team are the only ones who can release updates?• ”Help Desk” open source project• Examples: Sourceforge.net, Google Code, etc.

– Do you expect to grow a community of interest where volunteers actively engage in software development?

• Are volunteers empowered to pick up a shovel and help dig the hole?• Can volunteers (including your own paid employees) file issues?• Do you want to give the community a stake/vote in the overall

process?• “Community Building” open source project• Examples: Apache Software Foundation, Eclipse Foundation, etc.

1629-Mar-11 NASAOSS-MATTMANN

Page 17: An Open Source Strategy for NASA

Communities for NASA• Working on common software

– Measured not in terms of what center contributor works for, but in terms of

• Number of patches contributed (high quality)• Mailing list questions answered• # of releases made, or helped with• Tests written• Documentation added

– Take the politics out of it and just work on “core” common code of mutual interest

• Deciding on the right redistribution mechanism and license– Apache Software Foundation and ASLv2 provide openness and

ability for center-local redistribution, commerciality and other decisions (for internal distributions and beyond)

1729-Mar-11 NASAOSS-MATTMANN

Page 18: An Open Source Strategy for NASA

Intellectual Property within NASA• Centers can similarly (if they so choose) have their own

customizations/distributions of OSS – NASA Langley DAAC’s FooBar powered by Apache Hadoop– NASA AIRS SIPS’s Baz built on Apache Pivot powered by Linux

• NASA protects its marks through the New Technology Report process– Uncover marks– Uncover potential patents– License/etc., as appropriate– We see this less on the ground side than we do with the flight– Mostly NASA wide, but some center specifics (e.g., Caltech)

• Takeaway: the answer to “who owns it” is still “the Center” or “the project” who initiated the software development, with or without OSS. OSS may have its own restrictions/rules, so need to be wary of that (recall copyleft syndrome)

1829-Mar-11 NASAOSS-MATTMANN

Page 19: An Open Source Strategy for NASA

Contributing to OSS• OSS communities are built around “contributions”

– But what does it mean to contribute?• Mailing list help/discussions

– Yes those are contributions• Reporting/filing bugs and new feature improvements

– Yes those are contributions• Writing documentation and user guides

– Yes those are contributions• Volunteering to make releases

– Yes those are contributions• Positively contributing towards the evolution of the project with

your thoughts and ideas– Yes those are contributions

• NOTE: What did I leave out?

1929-Mar-11 NASAOSS-MATTMANN

Page 20: An Open Source Strategy for NASA

Contributing to OSS: code• Yes yes, code is important (but not the only contribution)• How should you go about your code contributing process to open

source?• Relates to: “Help Desk” versus Community• Do you want the members of your project to be the only folks who

can actual touch the source code of your OSS project?– Only bug reports?– How “open” are you?– How “open” do you want to be?

• Do you want to accept code contributions from the community?– Patches?– Allow community members to become “committers” (assist in the

development of the code?)– RTC versus CTR

2029-Mar-11 NASAOSS-MATTMANN

Page 21: An Open Source Strategy for NASA

Responsiveness• Measure of a “healthy” community• Does your patch sit?• Do your mailing list questions go unanswered?• Is the project electing new “committers” (if it’s in community

mode)?

• How should your NASA center/group decide whether or not an OSS project you want to use is responsive?

• How should your NASA center/group decide how responsive it will be?

• Heavily influenced by:– Community mode: “Help desk” versus “Community”

2129-Mar-11 NASAOSS-MATTMANN

Page 22: An Open Source Strategy for NASA

Getting help?• Using Open Source Software is different than producing software intended

for distribution in open source– Either way: what’s your strategy for getting help?– It used to be: you can’t rely on OSS for any “real time” support– Not anymore: companies stood up “around” OSS technology, dedicated to

providing support• Apache Hadoop: Cloudera• Apache Solr/Lucene: Lucid Imagination• Apache Cassandra: Riptano• Apache Maven: Sonatype• …others?

• How good is the documentation for the OSS Project?– Healthy wiki?– Healthy “cook books”?– Is the documentation baked in or separate?– Javadocs (or equivalent) on all public methods?– Use cases?

2229-Mar-11 NASAOSS-MATTMANN

Page 23: An Open Source Strategy for NASA

Getting help: DIY• Build expertise and intellectual capital in existing open

source technology– If you are pulling it in and using it– Involves: “Community” model, but also works in “Help Desk”– Involves: active participation– Involves: friendly license (especially if you want to redistribute)

• If you are building your own technology that you want to put into open source– Others may “help” you– Solve challenges at ZERO cost to you

(well not ZERO but minimal)– Free cycles of interest

2329-Mar-11 NASAOSS-MATTMANN

Page 24: An Open Source Strategy for NASA

Interactions with Open Source

• Case Study: Mailing lists communications*

24* Taken from: http://wiki.apache.org/nutch/Becoming_A_Nutch_Developer

29-Mar-11 NASAOSS-MATTMANN

Page 25: An Open Source Strategy for NASA

Interactions with Open Source• Mailing list interaction very important

– Most immediate feedback you get when contributing to open source, and also when creating your own open source project

– Is the biggest thing that turns people away to start out with– “who are these nerds and why don’t they have any manners?”– It’s all about “learning” their “language”

• Sure, the cost may be high in terms of ego and attitude, but the reward (free work!) is well worth it

• Following and understanding the practices of the OSS project are hugely important

– Know the license for an OSS product– Know whether they are “community” versus “help desk”– Know its history– Read its documentation– Be informed!

• Danger: thinking the OSS community is your personal helpdesk (or vice versa, you are its)

2529-Mar-11 NASAOSS-MATTMANN

Page 26: An Open Source Strategy for NASA

Architectural and Implementation issues

• How to design for open source?• Extension points

– Places in your code for “plug ins”– Plugins should be well documented

• Public facing “javadoc” (or similar)• “Cookbooks” for integrating• Wiki pages• Baked in documentation

• Use of shared component marketplace– Many times PL specific– PyPI – Python– Maven Central/Ibiblio – Java– CPAN – Perl– STL, GNU, Autoconf, Make, etc. – C/C++– YMMV, some are

• Webified, have package metadata, searchable, etc.

2629-Mar-11 NASAOSS-MATTMANN

Page 27: An Open Source Strategy for NASA

Leverage active technologies• Don’t expect to use Haskel and have a huge OSS community there

to assist you• Some modern active OSS languages

– Python– Perl– Ruby– Java

• Don’t just be a consumer, be a producer– Pick up a shovel and help dig the hole– Instead of overlooking the OSS

community and telling them how the hole should be dug to meetyour needs

– Will help you get needed OSSfeedback for your technology

2729-Mar-11 NASAOSS-MATTMANN

Page 28: An Open Source Strategy for NASA

Legal Issues• Understand patent law

– Or pay people to understand it for you• Understand OSS licenses and what you sign up for when

you use relevant technologies and their licenses• Look for open APIs and open specs

– Understand what “open” means• Vendor lock in

– Try to avoid it through the use of all the techniques of OSS which we’ve discussed

• Engage the community and understand what’s “really” free an what isn’t

• Get legal’s buy-in– Don’t insulate them

2829-Mar-11 NASAOSS-MATTMANN

Page 29: An Open Source Strategy for NASA

Legal Issues• Understand “marks”

– Trademarks– Their implication to patents

• What will NASA support in terms of licensing?– Center specific– Depends on IP, export control, ITAR, compliance, commercialization– If you make it through all of the above and the software is cleared for

release, you really are in the driver’s seat• No NASA wide guidelines• Most or all communities allowed• Most or all OSS approved licenses allowed

• Is there a Contributor License Agreement (CLA) or Corporate Contributor License Agreement (CCLA) to sign?– What are its implications?

2929-Mar-11 NASAOSS-MATTMANN

Page 30: An Open Source Strategy for NASA

OODT: An Open Source Framework for Distributed Science Data Mgmt Environments

• Originally funded by NASA to focus on– distributed science data system environments– science data generation – data capture, end-to-end– Distributed access to science data repositories

by the community

• Entered the Apache incubator program in January 2010

– First Apache project we are aware of originating from a NASA Lab

• Graduated to Apache Top Level Project in November 2010

• Used for a number of science data system activities in planetary, earth, biomedicine, astrophysics

30NASAOSS-MATTMANN

http://oodt.apache.org

29-Mar-11

Page 31: An Open Source Strategy for NASA

OODT Principles• Division of Labor

Avoid making one component the workhorse, configurable

• Technology Independence Guard against unexpected changes in the technology landscape

• Metadata as a first-class citizenDescriptions of resources come in handy

• Separation of software and data modelsAllow each to evolve independently

• Modular, domain-agnostic Pick and choose from adaptable components with defined interfaces

NASAOSS-MATTMANN 3129-Mar-11

Page 32: An Open Source Strategy for NASA

OODT Components• Software Components

– Catalog/Archive Services – data mgmt/workflow– Product Services – access/transformation of data– Profile Services – discovery of resources/data– Query Services – query federation– Web Grid – web-based messaging to connect services

• Core Models– Common XML representations as an interface to all

components– Representation of distributed resources

• Domain Models– These are specializations that sit on top of OODT

NASAOSS-MATTMANN 3229-Mar-11

Page 33: An Open Source Strategy for NASA

OODT Science/Mission/Project Specialization

NASAOSS-MATTMANN 33

Com

mon

Spec

ific

UniqueRqmts.

More Capabilities

OODT Core Framework• Core Components/Models• Process Control Framework

Science/Mission/Project-Specific• OODT Extension• Discipline Models• Mission-Specific Services

New capabilities/improvements

29-Mar-11

Page 34: An Open Source Strategy for NASA

Case Study: OODT’s Movement to the Apache Software Foundation

• Meeting held June 15, 2007 at JPL with ASF President Justin Erenkrantz– Develop plan moving forward to bring first NASA

project to Apache– Discuss obstacles, sponsorship– Discuss outlook

29-Mar-11 NASAOSS-MATTMANN 34

Page 35: An Open Source Strategy for NASA

OODT: Incubation

• Come up with incubation proposal– Send out emails to the Incubator mailing list

• Look for mentors

• Get sponsorship from ranking Apache PMC member or board member– Justin and others

• Top-level project versus sub project outlook heading out of incubation

29-Mar-11 35NASAOSS-MATTMANN

Page 36: An Open Source Strategy for NASA

Incubation Requirements• Monthly Updates (for first 3 months, then quarterly)

– Status– Progress– Community– Acceptance

• Plan for exiting incubation (no hard deadlines)– How to have a solid user base– How to operate as a unit in the Apache way– Maintenance of user interest and community going forward– Diversity: contributions from more than just JPL

• Children’s Hospital LA, USC, Project WBS, AOL Time Warner, other NASA centers, DOE labs, SKA project

29-Mar-11 36NASAOSS-MATTMANN

Page 37: An Open Source Strategy for NASA

…2 years later

• Worked it out with JPL legal– Turns out the ASLv2 license is extremely friendly

and is something that at least JPL was amenable to

• Developed OODT incubator proposal– http://wiki.apache.org/incubator/OODTProposal

• Found willing Apache mentors besides Justin– Jean-Frederic Clere, Ross Gardler, Ian Holsman

• …Put OODT at Apache!

29-Mar-11 NASAOSS-MATTMANN 37

Page 38: An Open Source Strategy for NASA

Takeaways

• Lots for NASA to consider in terms of OSS• Choose licenses, strategies, processes that

enable folks to pick up a shovel and help dig the hole

• Education perspective: this is how CS/science are being trained at the University level– We can’t ignore open source

• I sincerely look forward to the breakout sessions, lots to discuss

29-Mar-11 NASAOSS-MATTMANN 38

Page 39: An Open Source Strategy for NASA

Free as in beer• “Something like the Apache foundation is the best place for released government software.

A previous attempt at release and public distribution via a private company was a truly dismal failure. OpenPBS (portable batch system) is supposed to be available to anyone that asks. However when you do ask a sales rep strings you along for more than a month trying to sell you something that they can't actually assure you will fit your requirements (and is no longer under development) even when the free one is documented as doing so. It was a truly stupid waste of the salesperson's time and mine that would have exceeded the price of providing the file for download or sending by email by several orders of magnitude and generated a lot of ill will. I'll go as far as saying it was blatant false advertising using a government funded open source product to do a bait and switch to try to sell me an unmaintained product they picked up in a corporate take over. My experience appears to have been identical to that of many that attempted to obtain this government funded open source software that NASA had declared was available for anyone. Eventually due to this open source project becoming closed the project just had to fork and the compatible Torque batch system was developed by people that had actually get hold of the original OpenPBS.”

– Slashdot user comment

39

Page 40: An Open Source Strategy for NASA

Alright, I’ll shut up now

• Any questions?

• THANK YOU!– [email protected] – @chrismattmann on Twitter

29-Mar-11 40NASAOSS-MATTMANN

Page 41: An Open Source Strategy for NASA

Thank You!• Learn more and track our progress at:

– http://oodt.apache.org • Join the mailing list:

[email protected][email protected]

• Chat on IRC:– #oodt on irc.freenode.net

• Acknowledgements– Key Members of the OODT teams: Dan Crichton, Chris Mattmann, Steve Hughes, Andrew Hart,

Sean Kelly, Sean Hardman, Paul Ramirez, David Woollard, Brian Foster, Dana Freeborn, Emily Law, Mike Cayanan, Luca Cinquini, Heather Kincaid

– Projects, Sponsors, Collaborators: Planetary Data System, Early Detection Research Network, Climate Data Exchange, Virtual Pediatric Intensive Care Unit, NASA SMAP Mission, NASA OCO-2 Mission, NASA NPP Sounder Peate, NASA ACOS Mission, Earth System Grid Federation

41NASAOSS-MATTMANN29-Mar-11

Page 42: An Open Source Strategy for NASA

Backup

29-Mar-11 NASAOSS-MATTMANN 42

Page 43: An Open Source Strategy for NASA

Implementation strategies• Concerns

– Insulation: how do I insulate my project from OSS change but still use OSS?

– How do I make my project’s OSS software available for redistribution?

– What technologies are the “best” for my project?– What communities are the best?

• Answers:– See next slide– It depends– It depends– It depends

4329-Mar-11 NASAOSS-MATTMANN

Page 44: An Open Source Strategy for NASA

Insulation: one strategy• Missions maintain

their own local CMs• Local mission CMs

contain forks of existing OSS software– Forks can be patch

based or CM based

• Changes found particularly effectiveare discussed within the comm.And eventually brought before a CCB that reviews their generality, etc.

44

Fig Credit:Dana Freeborn

29-Mar-11 NASAOSS-MATTMANN

Page 45: An Open Source Strategy for NASA

Review use of Open Source• Review architecture• Interrogate buy versus build

– Why did you buy?– Why did you build?– WHY DID YOU USE OPEN SOURCE?

• Or why didn’t you?• Review regularly• Review it again

– And again• Promote open source infusion• Promote construction of open source components inside of

your data system implementation and their redistribution

4529-Mar-11 NASAOSS-MATTMANN

Page 46: An Open Source Strategy for NASA

Steps forward• JPL to tackle legal issues

– Is OODT releasable as an Apache product– http://www.apache.org/licenses/software-grant.txt

• This needs to be signed by parties that be by JPL– Contributor License Agreement

• Do we need a corporate one? – Ended up signing one for OODT and an SGA

• In parallel to this– Draft OODT incubation proposal– Start identifying who would initially be interested

• More external, non-JPL people who are interested, the better

29-Mar-11 46NASAOSS-MATTMANN


Recommended