5 Commits

Author SHA1 Message Date
Shaun McCance
27ed6fa4f3 Reworked autohelp to support dup option names in different groups
autohelp.py can't currently distinguish between options with the same
name in different groups, leading to rather poor DocBook output. This
commit changes the flagmappings files to have the group name prepended
with a dot if the group name isn't DEFAULT.

This commit rewrites much of autohelp.py, simplifies the command line,
deletes a ton of code, and reuses small portions of the sample config
file generator for oslo-incubator. In a happier world, this tool and
the config file generator could share more of the module importing
and option munging code.

This commit does not add group information to the DocBook, even though
it's now available in the code, along with the importing module name.
I want to minimize differences in DocBook output for testing, then add
more info to the DocBook.

Change-Id: I1b12659a80fa7989890c8b9b855c9130b85b7f3b
2014-01-15 14:50:46 -05:00
Andreas Jaeger
086e22e466 Require hacking for additional checks
Require hacking for additional pep8 checks to follow
OpenStack python hacking conventions.

Fix problems found by hacking.

Disable autogenerate-config-docs from check, it needs further
work to be clean enough.

Change-Id: Ib1dedf2e8262ba3d8ae1b58c4e4dbab82bbb5297
2014-01-03 11:25:56 +01:00
Andreas Jaeger
cac7a82126 Explicitely add license information to code files
Following OpenStack conventions, let's add a license header to
all code files.

Change-Id: Ia1992f3e8aba45e96cff6482613ec50df4fca980
2013-12-30 16:08:52 +01:00
Andreas Jaeger
bbf9427b38 Fix issues found by flake8
Fix overlong lines, remove unused imports, remove unused
variables

Change-Id: Ic30640891af5413d57c82a1666f81518168e4a88
2013-12-18 21:23:12 +01:00
Tom Fifield
d0abb8c290 Add Autogenerate-config-doc code to tools
This patch brings the auto-generate-config doc tool into
the openstack-manuals repo, where it can be used to update
the configuration option tables.

patchset2 fixes obvious things noted by reviewers, likely
needs more fixing.

patchset 4 adds update feature, fixes pep8

patchset 5 removes debugging print

patchset 6 adds warning to tables regarding their
           automatically generated nature

patchset 7 updated nova flagmappings for H2 and
           adds updated nova tables

patchset 8 adds a seciton in the readme with a worked example
           from a recent use of the script

patchset 10 fixes for cinder
patchset 11 testing, fixing
patchset 12 testing, fixing
patchset 13 adds categories to cinder.flagmappings, generates
            docbook tables for cinder
patchset 14 adds mappings for neutron, and generates docbook
            tables based on these

patchset 15 adds list of bugs this patch will fix

patchset 16 fixes whitespace error in automatically generated tables :(

fixes bug 1192225
Partial-Bug 1207550
Partial-Bug 1207549
fixes bug 1206827
Partial-Bug 1206336
fixes bug 1204484
Partial-Bug 1204205
fixes bug 1202260
fixes bug 1201710
fixes bug 1200794
Partial-Bug 1200740
Partial-Bug 1200418
Partial-Bug 1200047
Partial-Bug 1199209
Partial-Bug 1197657
fixes bug 1197653
fixes bug 1197295
Partial-Bug 1197088
Partial-Bug 1195900
fixes bug 1195560
fixes bug 1195433
Partial-Bug 1192752
fixes bug 1187278
Partial-Bug 1106428
Change-Id: Icd3f4496850c375c9359a10eddb25ab5c722595e
bp:autogenerate-config-tables
2013-08-10 09:43:55 +08:00