<div dir="ltr">Hi Chason -<div> </div><div>I wonder if it's due to some parsing error when handling unregistered options? See if you can modify autohelp.py locally to get more info about which module has unregistered options. That'll help you debug from there. </div><div><br></div><div>I can't quite figure out how to know which neutron moduel to add to the ignore list to skip over this error, which would also help target exactly which module is doing this. The FIXME in line 188 is what makes me think there's something going on with either the module import or the options themselves. See <a href="https://github.com/openstack/openstack-doc-tools/blob/master/autogenerate_config_docs/autohelp.py#L188">https://github.com/openstack/openstack-doc-tools/blob/master/autogenerate_config_docs/autohelp.py#L188</a></div><div><br></div><div>You can also ask for help from a neutron team member, such as John Davidge, who is the neutron docs liason <a href="https://wiki.openstack.org/wiki/CrossProjectLiaisons#Documentation">https://wiki.openstack.org/wiki/CrossProjectLiaisons#Documentation</a>.</div><div><br></div><div>Anne</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 8:46 AM, Chason Chan <span dir="ltr"><<a href="mailto:chen.xing@99cloud.net" target="_blank">chen.xing@99cloud.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><font face="Microsoft YaHei UI"><span></span>Hi <span style="line-height:1.5">Katomo and Berendt,</span></font></div><div><span style="line-height:1.5"><font face="Microsoft YaHei UI"><br></font></span></div><div><font face="Microsoft YaHei UI">There is still some Newton release content in the <span style="line-height:1.5">config-ref of Ocata release. I want to use the openstack-doc-tools to update it.</span></font></div><div><span style="line-height:1.5"><font face="Microsoft YaHei UI"><br></font></span></div><div><font face="Microsoft YaHei UI">But when I use openstack-doc-tools t<span>o generate "New, updated, and deprecated options" for Networking service, I failed with "</span><span style="line-height:1.5">TypeError: 'module' object <wbr>is not iterable</span><span style="line-height:1.5">". </span></font></div><div><span style="line-height:1.5"><font face="Microsoft YaHei UI"><br></font></span></div><div><span style="line-height:24px"><font face="Microsoft YaHei UI">More output see the following:</font></span></div><div><span style="line-height:24px"><font face="Microsoft YaHei UI"><br></font></span></div><div><span color=""><font face="Microsoft YaHei UI">Working on neutron (stable/<wbr>newton)<br>Guru meditation now registers <wbr>SIGUSR1 and SIGUSR2 by <wbr>default for backward <wbr>compatibility. SIGUSR1 will <wbr>no longer be registered in a <wbr>future release, so please use <wbr>SIGUSR2 to generate reports.<br>Traceback (most recent call <wbr>last):<br>  File "/root/openstack-doc-<wbr>tools/autogenerate_config_<wbr>docs/autohelp.py", line 636, <wbr>in <module><br>    main()<br>  File "/root/openstack-doc-<wbr>tools/autogenerate_config_<wbr>docs/autohelp.py", line 614, <wbr>in main<br>    import_modules(base_path, <wbr>package_name, verbose=args.<wbr>verbose)<br>  File "/root/openstack-doc-<wbr>tools/autogenerate_config_<wbr>docs/autohelp.py", line 143, <wbr>in import_modules<br>    _register_runtime_opts(<wbr>module, abs_path, verbose)<br>  File "/root/openstack-doc-<wbr>tools/autogenerate_config_<wbr>docs/autohelp.py", line 198, <wbr>in _register_runtime_opts<br>    for opt in obj:<br>TypeError: 'module' object is <wbr>not iterable<br>Traceback (most recent call <wbr>last):<br>  File "./diff_branches.py", <wbr>line 306, in <module><br>    sys.exit(main())<br>  File "./diff_branches.py", <wbr>line 282, in main<br>    old_list = get_options(<wbr>project, args.old_branch)<br>  File "./diff_branches.py", <wbr>line 91, in get_options<br>    'PATH': path})<br>  File "/usr/lib/python2.7/<wbr>subprocess.py", line 573, in <wbr>check_output<br>    raise CalledProcessError(<wbr>retcode, cmd, output=output)<br>subprocess.CalledProcessError:<wbr> Command '['./autohelp-<wbr>wrapper', '-q', '-b', 'stable/<wbr>newton', '-e', 'venv/stable_<wbr>newton', 'dump', 'neutron']' <wbr>returned non-zero exit status <wbr>1<br></font></span></div><div><span style="line-height:1.5"><font face="Microsoft YaHei UI"> </font></span></div><div><font face="Microsoft YaHei UI">BTW, I run the following command to generate: </font></div><div><font face="Microsoft YaHei UI"><br></font></div><div><font face="Microsoft YaHei UI">./diff_branches.py stable/<wbr>newton stable/ocata neutron</font></div><div><font face="Microsoft YaHei UI"><br></font></div><div><span style="line-height:normal"><font face="Microsoft YaHei UI"><br></font></span></div><div><span style="line-height:normal"><font face="Microsoft YaHei UI">Not sure what I am missing. Could you or someone else please help me?</font></span></div><div><span style="line-height:normal;background-color:window"><font face="Microsoft YaHei UI"><br></font></span></div><div><span style="line-height:normal;background-color:window"><font face="Microsoft YaHei UI">----------------</font></span></div><div><font face="Microsoft YaHei UI"><span style="line-height:normal;background-color:window">Thanks & r</span><span style="line-height:normal;background-color:window">egards,</span></font></div><div><span style="line-height:normal;background-color:window"><font face="Microsoft YaHei UI">Chason</font></span></div><div></div>
</div><br>______________________________<wbr>_________________<br>
OpenStack-docs mailing list<br>
<a href="mailto:OpenStack-docs@lists.openstack.org">OpenStack-docs@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-docs</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>Read my blog: <a href="https://justwriteclick.com" target="_blank">justwrite.click</a></div><div>Subscribe to Docs|Code: <a href="http://docslikecode.com" target="_blank">docslikecode.com</a> </div></div></div></div></div></div></div>
</div>