271 Commits

Author SHA1 Message Date
Christian Schwede
c93f4853f6 Make hooks module import optional
There is no hooks module available when running the
extract_swift_flags.py locally, so making this import optional.

Change-Id: I65ebacd1e3e4cf66ece0a9fcbbc785d79278e8bb
2016-12-02 16:26:56 +00:00
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
Jenkins
055b43e4f2 Merge "Remove docbook" 2016-11-22 10:55:27 +00:00
Alexis Lee
855daa63f6 Remove docbook
From autohelp-wrapper and autohelp.py, as it's no longer used.

Change-Id: I44d5c37c70b8b4fc0b938b6ba0c2fed5a448c265
2016-11-22 10:20:20 +00:00
Jenkins
1cf2f2018e Merge "[config-ref] remove unnecessary template files" 2016-11-21 07:24:20 +00:00
Jenkins
ce8c49555b Merge "[config-ref] fix pattern matching for bullet list" 2016-11-21 07:24:08 +00:00
Alexis Lee
3f8ed82319 Gen autogenerate_config_docs/README.rst
Link from index and main README.

Change-Id: Iad0a72544eb4849f0823029d6f7523e421ddc9e0
2016-11-15 13:29:20 +00:00
KATO Tomoyuki
3677deffaf [config-ref] fix pattern matching for bullet list
Change-Id: Ie42afc0fd1c1a75ecb5f599571f2f96f364daf38
Partial-Bug: #1638004
2016-11-12 20:44:00 +09:00
KATO Tomoyuki
e8f0c4c53e [config-ref] remove unnecessary template files
We don't generate DocBook files any more.

Change-Id: I7020ef33e7a6d58123d4c25fba04917f3c5e531d
2016-11-11 16:08:13 +09:00
KATO Tomoyuki
c8f4375527 [config-ref] support URIOpt/HostnameOpt to auto config doc tool
Change-Id: Ib045b60de82cd3761503d2e329eddcbbd044925e
2016-10-13 13:20:18 +00:00
KATO Tomoyuki
858b94199d [config-ref] support IPOpt into auto config doc tool
Change-Id: I319524933eb377a47c9ec5bd862ac3825c967548
2016-10-13 17:25:42 +09:00
Jenkins
99159d1a4b Merge "[config-ref] Remove heading and trailing blanks from help" 2016-10-01 07:54:10 +00:00
KATO Tomoyuki
1057a48575 [config-ref] Remove heading and trailing blanks from help
Not to break the script with the heading and trailing blanks.
It happens at glance with oslo.i18n deprecation messages.

Change-Id: I33ab7a815fc092cef2ed0688b0693c23802b23c6
2016-09-30 21:01:05 +09:00
KATO Tomoyuki
dfa602df09 Remove unnecessary white space
To fix the pep8 warning:

  E211 whitespace before '('
  print ("Duplicate option name %s" % optname)

Change-Id: Id041e12754679538cd6dab6fdc25b357ee628389
2016-09-30 20:41:29 +09:00
KATO Tomoyuki
ff558eb3b1 Move release notes to be handled by reno
Change-Id: I09b42465c834065073e29eecc9603b893ddab978
2016-09-29 20:48:54 +09:00
KATO Tomoyuki
01f284ae05 [config-ref] update service names for diff branches
Change-Id: I0d62b5f618808da2fc3c8250d2462b6a282e3506
2016-09-29 13:46:57 +09:00
Jenkins
787b48019f Merge "Changing 'raise e' to 'raise' to prevent exception masking" 2016-09-05 08:03:27 +00:00
KATO Tomoyuki
6842c4b774 [config-ref] support cfg.PortOpt type by the generation tool
Change-Id: I99aabfadcadbadac6c8cfc552dc4f99837df5e81
Partial-Bug: 1603082
2016-08-03 11:21:47 +09:00
Jenkins
dbd8a0afa0 Merge "[config-ref] skip options marked as disable" 2016-07-26 13:13:21 +00:00
KATO Tomoyuki
3725c14c62 [config-ref] skip options marked as disable
The common configurations are described in the common
configurations table. The corresponding configutations
at each table are not necessary.

Change-Id: Ied2d03d1c7f71f5712fcf57d4499e127db327b7d
Implements: blueprint config-ref-common-sections
2016-07-26 04:03:42 +00:00
KATO Tomoyuki
9dc0ae8498 [config-ref] add murano and senlin
Change-Id: I854bdeffa3b2765837c3449e65b99f631c087148
2016-07-26 09:27:35 +09:00
Matt Smith
8fba1671ef Updating README with additional necessary packages
python-pip and python-virtualenv are necessary to run any 'update'
command with autohelp-wrapper, otherwise the script issues a
'command not found' error for pip and virtualenv

Change-Id: I96186764364eaa80a5c73fe6b019b9fd457c57a2
2016-06-17 11:27:38 -07:00
Matt Smith
307344f7a8 Changing 'raise e' to 'raise' to prevent exception masking
Change-Id: I5786ef33368f251815f6acbf97a15990562ffb85
2016-06-17 09:52:08 -07:00
Jenkins
10c6b0236d Merge "Allow bulleted lists in config reference" 2016-06-16 08:27:16 +00:00
Alexis Lee
f8bff99285 Allow for config option flags
Add a definition list under the help text to detail pertinent flags.
Make 'mutable' one of these flags.

Change-Id: Idc0080be25db12485b33be421c5557d78418823c
2016-06-08 22:31:24 +00:00
Jenkins
6c0fa54f18 Merge "[config-ref] add README for diff_branches.py" 2016-06-01 07:45:07 +00:00
KATO Tomoyuki
1f98fbb1fc [config-ref] add README for diff_branches.py
Change-Id: I2c18ecb92e8b15378420c96b87c7c9671a4b1469
2016-05-31 22:10:56 +00:00
KATO Tomoyuki
ef8d15b85d [config-ref] remove unnecessary RST markup
The help strings for configuration option are text strings,
not a code item. So, they are not necessary.
Also, it breaks literal markups within the help strings.

Change-Id: I4b9279d5f49a03137d9c1369622fde1ed2df684e
Partial-Bug: #1585927
2016-05-29 10:31:56 +09:00
John Garbutt
4f0433ffce Allow bulleted lists in config reference
This is very much a hack, but its really just to see if it is possible
to convert the bullet lists into text that renders correctly with rst.

This was tested with the nova-hyperv.rst:
f0607509e3/doc/config-reference/source/tables/nova-hyperv.rst

Change-Id: Iab063774f6732d52cd8e79f82ff0fc93bd6d306b
2016-05-27 08:41:04 +00:00
Jenkins
b018889fc3 Merge "use environment variables for GITPROJ and GITBASE" 2016-04-24 18:08:37 +00:00
ZhiQiang Fan
1b9920beed use environment variables for GITPROJ and GITBASE
Companies may have VPN, and in China, there is a firewall named
G.F.W., they both may block some protocols or ports, so if I run
autohelp-wrapper, it will fail like this:

/opt/stack/openstack-doc-tools/autogenerate_config_docs$ ./autohelp-wrapper update ceilometer
Cloning into '/opt/stack/openstack-doc-tools/autogenerate_config_docs/sources/openstack-manuals'...
fatal: unable to connect to git.openstack.org:
git.openstack.org[0: 104.130.246.128]: errno=Connection timed out
git.openstack.org[1: 2001:4800:7819:103:be76:4eff:fe06:63c]: errno=Network is unreachable

Now we have -g option, which can set GITPROJ, but GITBASE still
use git://git.openstack.org/openstack, so it still fail:

/opt/stack/openstack-doc-tools/autogenerate_config_docs$ ./autohelp-wrapper -g https://github.com/openstack update ceilometer

Here I proposal to use environment variable value for GITPROJ and
GITBASE if they exist, so some devs, like me, can get rid of
hacking autohelp-wrapper to work then restore it when commit.

Change-Id: If7dc3ebe398c71d6461a5983d4aab1bc87984697
Closes-Bug: #1574224
2016-04-25 03:03:18 +08:00
ZhiQiang Fan
e115fee6a3 safe get deprecated_reason
when run ./autohelp-wrapper rst aodh, it failed with:
AttributeError: 'BoolOpt' object has no attribute 'deprecated_reason'

we need to check the value before we use it

Change-Id: I362606ba186d1582f850bfa4d602503d6ea5079a
Closes-Bug: #1573953
2016-04-24 01:51:38 +08: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
Jenkins
eb02aab480 Merge "autohelp: add zaqar to the default projects" 2016-03-19 08:57:47 +00:00
Gauvain Pocentek
626476352c autohelp: add zaqar to the default projects
Change-Id: I7271af8834ff29ce92cd1c20fd9864a4895f146d
2016-03-19 07:48:13 +01:00
fumihiko kakuma
74a5a0d1c3 Fix a typo in autogenerate_config_docs/README.rst
Fix a parameter order on autohelp-wrapper command line
explained in README.rst.

Change-Id: I30e4c926f830d1dd450a0d10a2bfacae3c3301bf
2016-03-19 10:06:58 +09:00
Ronald Bradford
cba7f7f340 Better identify deprecated configuration options
If a configuration option is tagged as deprecated in the code and the
help text does not start with DEPRECATED: add this to better identify
options that are no longer used.

If the code provides an additional deprecated reason, append this to
the provided help text of the configuration option.

Change-Id: I1a7c76c0109a6e59cc87d0ddc942c6d1cfb9dc91
2016-03-16 18:08:07 -04:00
Ronald Bradford
557d0af6d0 Provide a more human identifable option data type
Update the configuration tables option type from an internal meta type
to a more meaningful description.  E.g. Boolean for BoolOpt, String
for StringOpt, Multi-valued for MultiStrOpt etc.

Inspired by the translation used in Developer Docs

Change-Id: I5bd7aec727292ceef4dc0ff56ab8f334ea2f22bc
2016-03-16 17:32:35 -04:00
Ronald Bradford
4bca964706 Catch sqlalchemy.exc.InvalidRequestError exception
Running update of keystone produces the following exception which
teminates processing. This enables processing to continue, like
capture of other types of errors.
* Table 'federation_protocol' is already defined for this MetaData
  instance.  Specify 'extend_existing=True' to redefine options and
  columns on an existing Table object.

Cater for projects that do not use sqlalchemy, e.g. swift.

Change-Id: I87df4bb784f94b7194374b2448e4c34beadb923f
2016-03-16 17:32:08 -04:00
Ronald Bradford
0c4e6e2e36 Updated prerequisite packages for ironic & swift
Change-Id: Ieab843667b7c3f6eae49ce8fbc3d80d65ed42f99
2016-03-16 15:47:07 -04:00
Gauvain Pocentek
1f17e5daf6 [autohelp] Remove oslo.incubator installation
It is not needed anymore, and is causing setup problems.

Change-Id: Ie0ea8adcb621f1ff873243fa6b23aab3679f148e
2016-02-21 11:25:04 +01:00
Jenkins
a19eef20ce Merge "autohelp: avoid duplicated overriden entries" 2016-01-24 12:11:29 +00:00
Jenkins
3a7ac1a445 Merge "autohelp: fix poor behavior of _sanitize_default" 2016-01-24 12:10:35 +00:00
Gauvain Pocentek
d0c8b278de autohelp: fix poor behavior of _sanitize_default
Change-Id: I9a9d41785c7674056a6d553941510ca1e5b30383
2016-01-24 11:53:25 +01:00
Gauvain Pocentek
5dc95bfb6b autohelp: avoid duplicated overriden entries
Change-Id: I99e3f9735ec1baf8d514088ec3942bfe76895a2a
2016-01-24 11:18:56 +01:00
KATO Tomoyuki
cc8d24c71b Address pep8 warning at autohelp-wrapper
Change-Id: I7f44a6b47f933a01bfa5cea227988d4b17bc6a4d
2016-01-17 18:24:42 +09:00
Jenkins
b60e29dcf1 Merge "Move the config items in the manuals repository" 2016-01-11 09:33:35 +00:00
Gauvain Pocentek
e436173ae2 Move the config items in the manuals repository
Modifying configuration options (ignored modules, extra repositories,
hooks) for autohelp requires an update of the doc-tools repository,
which doesn't make much sense since the goal is to update the manuals
repository.

This patch removes the configuration options from the repository and
updates the scripts to use the configuration items in openstack-manuals.

Change-Id: I630d2a2fea690f6360039aa100331678468d18dc
2016-01-11 08:52:33 +01:00
Gauvain Pocentek
c093aac208 autohelp: remove old files
The flow graph and the tests have not been updated in a long time and
don't match the current state of the autohelp* scripts. Remove them as
they are not used and not accurate.

Change-Id: I6225ac8cfc53564c75fa227d08d2ef6adc661390
2016-01-08 14:37:38 +01:00
Jenkins
b06f7e1349 Merge "autohelp update can create the flags file" 2016-01-08 10:29:56 +00:00