<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 3 March 2016 at 16:56, Stephen Balukoff <span dir="ltr"><<a href="mailto:sbalukoff@bluebox.net" target="_blank">sbalukoff@bluebox.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I have a problem I'm hoping someone can help with: I have gone through the task of completing a shiny new feature for an openstack project, and now I'm trying to figure out how to get that last all-important documentation step done so that people will know about this new feature and use it. But I'm having no luck figuring out how I actually go about doing this...</div><div><br></div><div>This started when I was told that in order to consider the feature "complete," I needed to make sure that it was documented in the openstack official documentation. I wholeheartedly agree with this: If it's not documented, very few people will know about it, let alone use it. And few things make an open-source contributor more sad than the idea that the work they've spent months or years completing isn't getting used.</div><div><br></div><div>So... No problem! I'm an experienced OpenStack developer, and I just spent months getting this major new feature through my project's gauntlet of an approval process. How hard could documenting it be, right?</div><div><br></div><div>So in the intervening days I've been going through the openstack-manuals, openstack-doc-tools, and other repositories, trying to figure out where I make my edits. I found both the CLI and API reference in the openstack-manuals repository... but when I went to edit these files, I noticed that there's a comment at the top stating they are auto-generated and shouldn't be edited? It seemed odd to me that the results of something auto-generated should be checked into a git repository instead of the configuration which creates the auto-generated output... but it's not my project, right?</div><div><br></div><div>Anyway, so then I went to try to figure out how I get this auto-generated output updated, and haven't found much (ha!) documented on the process... when I sought help from Sam-I-Am, I was told that these essentially get generated once per release by "somebody." So...  I'm done, right?</div><div><br></div><div>Well... I'm not so sure. Yes, if the CLI and API documentation gets auto-generated from the right sources, we should be good to go on that front, but how can I be sure the automated process is pulling this information from the right place? Shouldn't there be some kind of continuous integration or jenkins check which tests this that I can look at? (And if such a thing exists, how am I supposed to find out about it?)</div><div><br></div><div>Also, the new feature I've added is somewhat involved, and it could probably use another document describing its intended use beyond the CLI / API ref. Heck, we already created on in the OpenStack wiki... but I'm also being told that we're trying to not rely on the wiki as much, per se, and that anything in the wiki really ought to be moved into the "official" documentation canon.</div><div><br></div><div>So.... I'm at a loss. I'm a big fan of documentation as a communication tool, and I'm an experienced OpenStack developer, but when I look in the manual for how to contribute to the OpenStack documentation, I find a guide that wants to walk me through setting up gerrit... and very little targeted toward someone who already knows that, but just needs to know the actual process for updating the manual (and which part of the manual should be updated).</div><div><br></div><div>When I went back to Sam-I-Am about this, this spawned a much larger discussion and he suggested I bring this up on the mailing list because there might be some "big picture" issues at play that should get a larger discussion. So... here I am.</div><div><br></div><div>Here's what I think the problem is:</div><div><br></div><div>* We want developers to document the features they add or modify</div><div>* We want developers to provide good user, operator, etc. documentation that actual users, operators, etc. can use to understand and use the software we're writing.</div><div>* We even go so far as to say that a feature is not complete unless it has this documentation (which I agree with)</div></div></blockquote><div><br></div><div>If you agree with this, why do you bring it up twice? :) </div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>* With a rather small openstack-docs contributor team, we want to automate as much as possible, and rely on the docs team to *edit* documentation written by developers instead of writing the docs themselves (which is more time consuming for the docs team to do, and may miss important things only the developers know about.)</div><div><br></div><div>But:</div><div><br></div><div>* We don't actually provide much help to the developers to know how to do this. We have plenty for people who are new to OpenStack to get started with gerrit--  but there doesn't seem to be much practical help on where to get started, as an experienced contributor to other projects, on the actual task of updating the manual.</div><div><br></div><div>And I would wager:</div><div><br></div><div>* We don't seem to have many automated tools that tie into the jenkins gate checks to make sure that new features are properly documented.</div><div>* We need something better than the 'APIImpact' and 'DocImpact' flags you can add to a commit message which generate docs project bug reports These are post-hoc back-filling at best, and as I understand it, often mean that some poor schmuck on the docs team will probably be the one who ends up writing the docs for the feature the developer added, probably without the developer's help.</div><div><br></div><div>Please understand: I know that big strides have been made in the right direction here recently, and I know that the docs team is both small and under-appreciated. For example, the move from XML-based documentation to .rst based documentation is a huge step in a direction that will prevent most developers from wanting to gouge their own eyes out anymore when it comes to writing documentation (though in my searching over the last few days I did find one api reference repository where it looked like people are actually editing raw XML and submitting this through the gerrit review process... please tell me this is not actually still the state of affairs!)</div><div><br></div><div>Also, I certainly don't blame the docs team for the history of how we got to where we are today. I'm pretty sure everyone on that (and most) projects is truly here to make the OpenStack world a better place and is working hard to make that happen. Nobody is trying to burn the house down.</div><div><br></div><div>But I think there are some flames that need extinguishing. I'm writing this e-mail because I think we've got some additional steps that need to be taken to actually help experienced openstack contributors know *how* they go about updating the openstack docs. It's not that we aren't willing to write documentation (well, I don't think most are unwilling), it's that the process for doing this seems extremely obfuscated.</div><div><br></div><div>Ideally, I would like to see a practical and relatively short how-to guide along the lines of: "The shiny new feature you added to your OpenStack project has merged. Congratulations! Here's how you update the manual..." This should be written by someone already very familiar with the OpenStack documentation system. This practical guide would provide answers for:</div><div><br></div><div>* How to actually ensure that API / CLI documentation is updated (if it's actually automated, and what the process for that is so that others can check.)</div><div>* Criteria to know when more documentation is required than just API / CLI reference updates</div><div>* Where to put this more extensive documentation.</div><div>* Other non-intuitive information you should know (eg. what image format diagrams should be in, and best practices for uploading them, plus style guides for the images)</div><div><br></div><div>Even more ideally, I would like to see a practical how-to guide along the lines of: "So you've started a new OpenStack project. Here's how to make sure it plays nice with the documentation system..." This would provide answers for:</div><div><br></div><div>* How to set up automated tests to ensure documentation meets machine-discernable standards for the openstack manual (eg. pep8 for docs with specific style-enforcement included)</div><div>* How to set up automated tests to ensure that documentation is either imported from your project to the OpenStack manual (less ideal, I know-- coders are coders and not writers for a reason), or that there are hooks from the openstack manual into your project which flag and potentially block merges of insufficiently-documented changes (ie. something better than adding 'APIImpact' and 'DocImpact' to your commit message and hoping somebody comes along and documents it at some point).</div><div>* Best practices for things like where to put the documentation, how and when to require release notes, documentation templates with the proper style, where to put sample config files so they get automatically slurped into the openstack manual, etc.</div><div>* How to know if certain types of documentation are inappropriate for the openstack manual, and best practices on where to put this, if not in the manual.</div><div><br></div><div>I fully admit that it's possible the above may already exist scattered in various places in the current documentation structure. However, I can tell you from my experience in the several OpenStack projects I've contributed to, that it is apparently not easily located or consumed because very few of the experienced contributors I work with have any clue about much of the above.</div><div><br></div><div>Please also note that I am *NOT* volunteering to write the above documents per se: The above docs need to be written by someone actually familiar with the documentation system. But it will be effort well spent, because when developers actually do start contributing documentation along with their new code, you'll get to spend more time editing those documentation contributions than writing them from scratch yourself. And everyone wins then because the OpenStack documentation becomes more complete and sucks less.</div><div><br></div><div>In any case, I am certainly willing to provide feedback on the above suggested how-to guides, should someone decide to write them.</div></div></blockquote><div><br></div><div>To start off, my humble suggestion would be to be kind and provide a TL;DR before going in such depth, otherwise there's a danger of missing the opportunity to reach out the right audience. I read this far because I felt I was called into question (after all I am the one 'imposing' the documentation requirement on the features we are delivering in Mitaka)!</div><div><br></div><div>That said, If you are a seasoned LBaaS developer and you don't know where LBaaS doc is located or how to contribute, that tells me that LBaaS docs are chronically neglected, and the links below are a proof of my fear.</div><div><br></div>[1] is broken, and a search on <a href="http://docs.openstack.org">docs.openstack.org</a> yields [2,3,4].</div><div class="gmail_quote"><br></div><div class="gmail_quote">[4] is really aimed at developers only, while [2,3] leave an untrained eye wondering if details are v1 or v2. Anyhow I digress...</div><div class="gmail_quote"><br></div><div class="gmail_quote">In a nutshell, this is a rather disastrous. Other Neutron developers already contribute successfully to user docs [5]. Most of it is already converted to rst and the tools you're familiar with are the ones used to produce content (like specs).</div><div class="gmail_quote"><br></div><div class="gmail_quote">My suggestion would be to forge your own path, and identify a place in the networking-guide where to locate some relevant content that describe LBaaS/Octavia: deployment architecture, features, etc. This is a long journey, that requires help from all parties, but I believe that the initiative needs to be driven from the LBaaS team as they are the custodian of the knowledge.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I fear that if none of the LBaaS core members steps up and figure this out, LBaaS will continue to be something everyone would like to adopt but no-one knows how to, at least not by tapping directly at the open source faucet.</div><div class="gmail_quote"><br></div><div class="gmail_quote">My 2c,</div><div class="gmail_quote">Armando</div><div class="gmail_quote"><br><div>[1] <a href="http://docs.openstack.org/developer/neutron-lbaas/">http://docs.openstack.org/developer/neutron-lbaas/</a><br></div><div>[2] <a href="http://docs.openstack.org/liberty/networking-guide/adv_config_LBaaS.html">http://docs.openstack.org/liberty/networking-guide/adv_config_LBaaS.html</a><br></div><div>[3] <a href="http://docs.openstack.org/admin-guide-cloud/networking_introduction.html">http://docs.openstack.org/admin-guide-cloud/networking_introduction.html</a></div><div>[4] <a href="http://docs.openstack.org/developer/devstack/guides/devstack-with-lbaas-v2.html">http://docs.openstack.org/developer/devstack/guides/devstack-with-lbaas-v2.html</a><br></div><div>[5] <a href="https://bugs.launchpad.net/neutron/+bugs?field.tag=doc">https://bugs.launchpad.net/neutron/+bugs?field.tag=doc</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Thanks,</div><div>Stephen</div><div><br></div><div>P.S. I still have no idea how I go about updating the manual for the major features that we added to neutron-lbaas and Octavia in this cycle.</div><span class=""><font color="#888888"><div><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><span></span><div>Stephen Balukoff</div><div>Principal Technologist</div><div>Blue Box, An IBM Company</div><div><a href="http://www.blueboxcloud.com" target="_blank">www.blueboxcloud.com</a></div><div><a href="mailto:sbalukoff@blueboxcloud.com" target="_blank">sbalukoff@blueboxcloud.com</a></div><div><a href="tel:206-607-0660%20x807" value="+12066070660" target="_blank">206-607-0660 x807</a></div></div></div></div></div></div>
</div></font></span></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>