autohelp-wrapper update cinder issue

Bug #1651738 reported by nikesh on 2016-12-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-doc-tools
High
sreedhar

Bug Description

I used the link "http://git.openstack.org/cgit/openstack/openstack-doc-tools/plain/autogenerate_config_docs/README.rst" to autogenerate configuration table for updated options in the Ocata Release for Kaminario Cinder Driver.

I am getting error on running command "./autohelp-wrapper update cinder".

Following are the complete details:
git clone https://github.com/openstack/openstack-doc-tools.git
cd openstack-doc-tools/
cd autogenerate_config_docs/
sudo apt-get install python-dev python-pip python-virtualenv libxml2-dev libxslt1-dev zlib1g-dev libmysqlclient-dev libpq-dev libffi-dev
sudo pip install -rrequirements.txt
vi autohelp-wrapper changed git://git.openstack.org to https://github.com
./autohelp-wrapper update cinder

I am getting below error
Traceback (most recent call last):
  File "/home/ubuntu/openstack-kaminario-manual/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 636, in <module>
    main()
  File "/home/ubuntu/openstack-kaminario-manual/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 618, in main
    options = OptionsCache(overrides, verbose=args.verbose)
  File "/home/ubuntu/openstack-kaminario-manual/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 276, in __init__
    self._add_opt(optname, 'DEFAULT', opt)
  File "/home/ubuntu/openstack-kaminario-manual/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 291, in _add_opt
    opt.default = _sanitize_default(opt)
  File "/home/ubuntu/openstack-kaminario-manual/openstack-doc-tools/autogenerate_config_docs/autohelp.py", line 217, in _sanitize_default
    return ", ".join(opt.default)
TypeError: sequence item 0: expected string, int found

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

Changed in openstack-doc-tools:
assignee: nobody → sreedhar (sreevar)
status: New → In Progress
Changed in openstack-doc-tools:
importance: Undecided → High

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

commit a46d872d3c1d91627b5f1a0f2117285cf153f078
Author: Sreedhar Varma <email address hidden>
Date: Wed Dec 21 07:19:46 2016 -0500

    Fix TypeError in autohelp.py

    The command "./autohelp-wrapper update cinder" is throwing
    "TypeError: sequence item 0: expected string, int found".

    This error is due to using ", ".join on the
    list of integers in autohelp.py.

    Change-Id: Ib4142466d15534adbdade8ebd8724a954f50e95d
    Closes-Bug: #1651738
    Co-Authored-By: Nikesh Mahalka <email address hidden>
    Co-Authored-By: Alekhya Mallina <email address hidden>
    Co-Authored-By: Srinivas Dasthagiri <email address hidden>

Changed in openstack-doc-tools:
status: In Progress → Fix Released

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

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

Other bug subscribers