35 Commits

Author SHA1 Message Date
Petr Kovar
59542bc572 [config-ref] Update README for RHEL/CentOS; diff_branches for Ocata
Change-Id: I3ec93b1fad946de21e2bbb7a4386edaee1267d27
2016-11-30 19:47:02 +01:00
KATO Tomoyuki
01f284ae05 [config-ref] update service names for diff branches
Change-Id: I0d62b5f618808da2fc3c8250d2462b6a282e3506
2016-09-29 13:46:57 +09:00
Gauvain Pocentek
87f23f539f Make diff_branches.py work again
Changes to autohelp.py have broken the diff_branches.py script. This
patch fixes the script:

- add a ``dump`` subcommand and a ``-q`` (quiet) option to
  autohelp-wrapprt
- use these options in diff_branches.py
- remove the dependency on python-git as it is not needed anymore.

Change-Id: I5d5a7e7141e1a0df1c86d52daae35fe5f33f239b
2016-03-20 18:44:17 +01:00
Gauvain Pocentek
f812c4088c [autohelp] Update the component names
Change-Id: I9a808b1bfcba7a51a79b6ca8e33d217183a6dad2
2015-12-21 12:13:56 +01:00
Gauvain Pocentek
164ee157bc [diff_branches] Projects can be passed as arguments
The list of projects being worked on by the script was hardcoded. This
patch adds the possibility to pass the list of projects to work on as
arguments on the command line.

Remove a project-list-related special case for trove on havana.

Change-Id: I7eb282fe9050a9c9367ee1ad72d9adbf6db29063
2015-12-07 14:36:29 +01:00
Gauvain Pocentek
5c930e29bd [autohelp] misc fixes
- wrapper: upgrade setuptools in the generated venvs
- swift: read from docbook on liberty
- swift: ignore :ref: directives
- swift: remove a bogus sys.exit(0)

Change-Id: If983da606e51f39c9e331aa27c3e3598abc695fe
2015-11-25 17:09:10 +01:00
Jenkins
88bb649f57 Merge "diff_branches: master is Mitaka" 2015-11-19 03:46:11 +00:00
Gauvain Pocentek
19fba83f36 diff_branches: fix deprecated opts listing
* Use the proper list (deprecated_opts, not new_opts)
* Sort the elements

Change-Id: I2f16ee72ed389b801590db70708db1bd4d59f88d
2015-11-18 10:18:09 +01:00
Gauvain Pocentek
20784922ae diff_branches: master is Mitaka
Change-Id: I4efd50b200ad1aa9e20a4dde4589899efae61199
2015-11-18 08:39:37 +01:00
Gauvain Pocentek
29922a5cef diff_branches: add RST support
Change-Id: I852222beb8ae66e23a264a594ef8fd8fe01e8cab
2015-11-10 19:30:22 +01:00
Gauvain Pocentek
dd6fd594fd diff_branches: use jinja templates to create the files
Generating docbook using lxml works fine, but the switch to RST tables
will make the code more diffiicult to read and maintain. Using jinja
templates will shorten the code and avoid dealing with complicated code.

This patch implements the use of jinja for docbook tables, and will ease
the implementation of RST output.

Change-Id: Ia5a75ced773b7e6e8faa7f89cb7620d986c47718
2015-11-10 08:53:31 +01:00
Gauvain Pocentek
54a6522345 autohelp: use the same extension for configs
Use the .txt extension for all configuration files used by the autohelp
scripts.

Change-Id: I1c8904f977b40dbf7f60d150b3047219c96beb15
2015-10-30 18:34:36 +09:00
Andreas Jaeger
e35bb7063d diff_branches: Add support for manila
Change-Id: I5fe102aee55470f138ed5b906b32d17a6dc80748
2015-10-12 20:53:02 +02:00
Andreas Jaeger
878fdb463e Add missing comma in output text
Enumerations need a comma before "and".

Change-Id: I11dd74498f8eb4497bd6d896ee0e4e23e3b086ac
2015-09-19 09:35:37 +02:00
Christian Berendt
d5d6deb849 [diff_branches] add note when no options are {new,updated,deprecated}
Change-Id: I4e64e822c85b7a43baec95d8764d35e894b0406b
2015-08-18 07:38:36 +00:00
Gauvain Pocentek
f5c45d41bb Updates to make diff_branches work again
This includes:
* update on requirements/neutron-kilo.txt
* update of autohelp-wrapper to make sure that dependencies are properly
  installed
* update of diff_branches.py itself (to handle the multiple -i arguments passed
  to autohelp.py

Change-Id: I099fba5d09a5e964c93d7e8c677d5556b4fa62eb
2015-08-16 08:07:04 +02:00
Gauvain Pocentek
6c08d8cded diff_branches: master is Liberty
Change-Id: Ic3a58dcfc61999b478164528b105296c825f459d
2015-07-14 21:50:35 +02:00
Gauvain Pocentek
fc33f23051 diff_branches: improve handling of deprecated options
Add options containing DEPRECATED in their help strings to the deprecation list.

Change-Id: Ie61b71754b02c8d97019aea71f0b1e1d4862e95e
Partial-Bug: #1433367
2015-05-09 21:53:51 +02:00
Gauvain Pocentek
feba2086be Autohelp: update the scripts for the juno/kilo diff
* include sahara
* remove the keystoneclient workaround
* ignore a problematic neutron import
* handle "None" values

Change-Id: I8f342dcb39f5ddd69b73baec2ecb1f3c6883c01a
2015-04-29 15:08:56 +00:00
Gauvain Pocentek
a9b5e1293b autohelp: updated to handle juno
The latest patches have broken the diff_branches script because we lost
compatibility with pre-kilo releases. This patch restores support for
juno.

Change-Id: I8b4067ca925fe4ef39d9853020f28b100054e2db
2015-04-29 17:07:21 +02:00
Andreas Jaeger
11b7494d90 Capitalize project names correctly
Update capitalization of project names.

Change-Id: Id816776b594ad4cf0e630d08251fbc7b084c083e
2015-04-14 21:10:26 +02:00
Gauvain Pocentek
223286cadc Rework the autohelp serialization of options
Using oslo.config objects in pickle leads to multiple import problems on
deserialization. Since we don't actually need oslo objects, we convert
them into dicts before dumping them.

Change-Id: Icbd1a3957e4d4ae05fe6227fbdd1cb58e5a3a98d
2015-03-03 17:13:18 +01:00
Ildiko Vancsa
5177dfe361 Change config changes generator script
Change diff_branches.py to generate the config-changes file with an
xml:id that always contains the release name instead of the name of
the new branch. This way it can be avoided that the id changes, when
stable branch is cut close to the end of a release cycle.

Change-Id: I96ef56fef7dac98f344296d1217586326740b46e
2014-12-12 16:12:33 +01:00
Jenkins
3321a489c4 Merge "diff_branches: capitalize the release name" 2014-10-24 18:43:16 +00:00
Gauvain Pocentek
76da0cc724 master is now Kilo
Change-Id: I934d147ad253550e812b08a5b1c4df3811f04377
2014-10-24 13:22:28 +02:00
Gauvain Pocentek
c81c1c98eb diff_branches: capitalize the release name
Change-Id: I518209db820543cf614495ccf986b53634b5c2de
2014-10-24 13:21:27 +02:00
Gauvain Pocentek
9604ad685d diff_branches: improve the generated title
Change-Id: I467ba9f1902d3ce25bf520cec87a7a60f070ff5e
2014-09-09 21:31:50 +02:00
Gauvain Pocentek
38dc33b799 diff_branches: add the project sources in sys.path
Pickle needs to access some classes available during the serialization
in autohelp.py, so add the sources in the python path to make sur that
the deserialization works.

Change-Id: I3295ebd0cf763984b2d052075d3285e1451db2cb
2014-09-09 07:27:34 +02:00
Gauvain Pocentek
d0e1a97df9 Improve the autohelp scripts
wrapper:
- Don't modify the openstack-manuals repo if it exists, keep it as is
  git wise (no branch change, no pull)
- Install oslo.i18n and hplefthandclient
- First setup the environment, then do the update/docbook work

autohelp.py:
- Handle projects not using oslo.i18n (mostly for havana)

diff_branches.py:
- Update the output format
- Setup the venv for the requested projects only

Change-Id: I48c45a56f4b7b7298fef0b7595d62e445c92df39
2014-08-23 09:11:17 +02:00
Jenkins
7d58eaf3f8 Merge "Support swift in diff_branches.py" 2014-06-22 18:25:15 +00:00
Gauvain Pocentek
2644da59a6 diff_branches: don't generate empty tables
Change-Id: I5bed354e7c1765ddf078dac71f5d4bcbdc88c3f5
2014-06-22 07:46:14 +02:00
Gauvain Pocentek
534035665e Improve the output format for option names
The diff_branches script stores the location of options as a simple
string, which differs from what the user actually see in the config
file. This patch improves the output of the option name depending on its
format in the 'dump' output.

We add brackets around the [section_name], and handle the file names for
swift options.

Change-Id: I03e12fc04f1e6f2f0831534cdff6dac048d76d92
2014-06-22 07:38:03 +02:00
Gauvain Pocentek
d389300ce4 Support swift in diff_branches.py
Use the extract_swift_flags.py script to get the list of options for
swift.

Change-Id: I573e83c1ca22058510a2835cc497fa60c5a97ef5
2014-06-22 07:32:08 +02:00
Christian Berendt
d449a6bcd2 Bump hacking to 0.9.x series
Require at least 0.9.1 because 0.9.0. had a minor bug.

This change also fixes all found issues.

Rewrote some docstrings to fit H405.

Change-Id: Ifeef11b783dbe70b2652d2b9ea29d5b20f69f2ce
2014-06-12 09:17:22 +02:00
Gauvain Pocentek
bdb2f2f003 Provide a script to gerenate options changes
diff_branches.py generates a listing of the configuration options
changes that occured between 2 openstack releases.

This involves a few changes in other tools:
- the 'dump' subcommand for autohelp.py generates the serialized dict of
  options
- add a special case for the 'bindir' option to avoid getting different
  default values in different virtual environments
- the autohelp-wrapper -e switch builds the needed venv without
  running autohelp.py commands

Change-Id: I80da172b91b8d2f0a15f89f4c812864da2fea471
2014-06-10 22:50:46 +02:00