TypeError when use doc tools to generate configuration difference

Bug #1672377 reported by Chason Chan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstackdocstheme
Fix Released
Medium
Christian Berendt

Bug Description

When I use openstack-doc-tools to generate "New, updated, and deprecated options" for Networking service, I failed with "TypeError: 'module' object is not iterable".

More output see the following:

Working on neutron (stable/newton)
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
Traceback (most recent call last):
  File "/root/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 636, in <module>
    main()
  File "/root/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 614, in main
    import_modules(base_path, package_name, verbose=args.verbose)
  File "/root/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 143, in import_modules
    _register_runtime_opts(module, abs_path, verbose)
  File "/root/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 198, in _register_runtime_opts
    for opt in obj:
TypeError: 'module' object is not iterable
Traceback (most recent call last):
  File "./diff_branches.py", line 306, in <module>
    sys.exit(main())
  File "./diff_branches.py", line 282, in main
    old_list = get_options(project, args.old_branch)
  File "./diff_branches.py", line 91, in get_options
    'PATH': path})
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['./autohelp-wrapper', '-q', '-b', 'stable/newton', '-e', 'venv/stable_newton', 'dump', 'neutron']' returned non-zero exit status 1

BTW, I run the following command to generate:

./diff_branches.py stable/newton stable/ocata neutron

Not sure what I am missing. Could you or someone else please help me?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-doc-tools (master)

Fix proposed to branch: master
Review: https://review.openstack.org/444902

Changed in openstack-doc-tools:
assignee: nobody → Christian Berendt (berendt)
status: New → In Progress
Brian Moss (bmoss)
Changed in openstack-doc-tools:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-doc-tools (master)

Reviewed: https://review.openstack.org/444902
Committed: https://git.openstack.org/cgit/openstack/openstack-doc-tools/commit/?id=9a7a07dde13f231fd2ebfa80b0af1c332cf6f144
Submitter: Jenkins
Branch: master

commit 9a7a07dde13f231fd2ebfa80b0af1c332cf6f144
Author: Christian Berendt <email address hidden>
Date: Mon Mar 13 14:27:43 2017 +0100

    Handle object type when registering runtime options in autohelp

    Change-Id: I9800c7ae467a807c0e6b6bca6784aace2140c75b
    Closes-bug: #1672377

Changed in openstack-doc-tools:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-doc-tools 1.6.0

This issue was fixed in the openstack/openstack-doc-tools 1.6.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.