110 Commits

Author SHA1 Message Date
Sean McGinnis
1021aee31f
Add directive to document CLI
Our CLI docs are very out of date. These used to be generated by the
docs team with some tooling they had. Since the docs moved in-repo, that
tooling has gone away, and for the most part no one has done any updates
to the CLI docs.

This adds a sphinx directive that will generate these docs every time
the docs are built. This way, whenever someone makes a CLI change, they
do not need to have to know to also edit a documentation file to match
their change. Any code changes will automatically be picked up and
reflected in the docs.

Change-Id: I4406872ab6e9335e338b710e492171580df74fa5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-03 22:19:10 -05:00
Andreas Jaeger
1a81faf86a Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames. A
couple of variables are also not needed anymore, remove them.

Set openstackdocs_auto_name to use project as name.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I2cc022495b162bec1424ec69611acb879900c005
2020-05-22 17:25:19 +00:00
Zuul
3bc8ac4aa2 Merge "Remove autogen warning" 2020-04-07 17:19:00 +00:00
Zuul
9d72ca21b0 Merge "Add support for Block Storage API mv 3.60" 2020-04-06 17:26:09 +00:00
wanghao
26a55de681 Add support for Block Storage API mv 3.60
Change I1f43c37c2266e43146637beadc027ccf6dec017e adds time-comparison
filtering to the volume list calls (summary and detail) in the Block
Storage API microversion 3.60.  The current cinderclient filter
support will pass these filters correctly, so the only change needed
on the client side is to bump the MAX_VERSION so that the client
can make calls to mv 3.60.

Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Change-Id: Ib4b7cbc7e527c0524336e139e127f19accfb7568
Partially-Implements: bp support-to-query-cinder-resources-filter-by-time-comparison-operators
2020-04-06 10:19:39 -04:00
Ian Wienand
aa85c7b310 Remove autogen warning
This isn't autogenerated ... it would be good if it was, but it isn't.

Change-Id: Iaf8b2375051e2dbd8cf6fd653fac4cdc60b4e7ea
2020-03-25 06:08:42 +11:00
Ian Wienand
9c5a850f5a Remove --bypass-url documentation
This was removed with I3b951cc4eb3adff23f3d2cbe674971816261ef56;
cleanup old references.

Change-Id: I71e6da99dff04d86b9dd67a754764b1e742d366a
2020-03-24 18:41:21 +11:00
Zuul
7e8d5ca15a Merge "Fix doc bug filing link" 2020-03-11 12:37:00 +00:00
Eric Harney
5fe5c63b51 Fix doc bug filing link
This needs to go to "python-cinderclient"
to work instead of "cinderclient".

Add a "doc" tag to these bugs as well.

Change-Id: I45ae03e9c071dd9b159b1c0183b53db4dd837453
2020-03-06 11:47:24 -05:00
Brian Rosmaita
9191d76450 Ussuri contrib docs community goal
This patch standardizes the CONTRIBUTING.rst file and adds
doc/source/contributor/contributing.rst

Change-Id: I892e49f96573b77b46bd8847a5d2ac8254e8e5e1
2020-03-05 09:31:16 -05:00
xuanyandong
658de38c20 Drop support for python 2
Also adds support for py3.6 and py3.7 check and gate jobs.

Co-authored-by: xuanyandong <xuanyandong@inspur.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Closes-bug: #1853372

Change-Id: Ia978b692ade23ee6482957f41b17cb879c96fea7
2020-01-16 08:34:30 -05:00
jacky06
e2436b310f Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I1ae708f0753249226ceb47610a1a4d0b558c1d0e
2019-10-30 11:00:12 -04:00
Sean McGinnis
61fec71adb Update docs to refer to PROJECT instead of TENANT
Updates several references for things like OS_TENANT_NAME and
--os-tenant-name.

Change-Id: If71710740b4d4573a1b3f515a5762a4f82bc727d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-09-10 15:56:27 -05:00
Zuul
4bd9000edd Merge "Autonegotiate API version for shell" 2019-09-04 23:41:36 +00:00
Andreas Jaeger
6f761f6bf0 Change PDF file name
The previously choosen PDF file name conflicts in some repos with the
project logos (badge). Thus change https://review.opendev.org/679777
renames the desired PDF name to be doc-PROJECT.pdf to allow using the
badge in PDF files.

Follow this rename.

Change-Id: Ife8461f00ba2206d18ae45837bbc31d211e29841
2019-09-04 06:53:40 +02:00
Eric Harney
d1b044b82a Autonegotiate API version for shell
If OS_VOLUME_API_VERSION is not set, use the highest
supported by both the client and the server.

If OS_VOLUME_API_VERSION exceeds that supported by the server,
use the highest supported by both the client and the server.
A warning message is printed for the user indicating that this
happened.

(This is similar to the behavior of the manila CLI, and is
mostly code from manilaclient tweaked to work in cinderclient.)

Change-Id: Ie1403eca2a191f62169e60c0cde1622575327387
2019-08-28 11:57:02 -04:00
Walter A. Boring IV
4c031b9294 Add support for building pdf documentation
This patch updates tox.ini to build the pdf version of
cinderclient documentation.

run tox -epdf-docs

Change-Id: If1f43e593db6ff6740b8a88b517c4505e39a3edd
2019-08-27 01:49:02 +00:00
Zuul
c4b50a10b3 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-08-08 13:43:10 +00:00
pengyuesheng
2134e92b66 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I1d923d9922bdaaca381611cba299522c21546736
2019-07-30 16:54:58 +08:00
Zuul
a5a0b03571 Merge "Remove the hard-coded version number." 2019-07-19 21:00:05 +00:00
Zuul
8c2c094115 Merge "Remove promote/reenable replication" 2019-07-10 16:29:36 +00:00
翟小君
95a469f986 Bump openstackdocstheme to 1.20.0
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Icbfa21da1e83f745a98822a2f33c4ebc8d11fd0c
2019-07-04 13:53:20 +08:00
cychiang
203e02e769 Remove the hard-coded version number.
Reference the python-novaclient cli doc. And removed the
"cinder version 2.2.0." in python-cinderclient cli doc to
avoid confusing users.

Closes-Bug: #1831636
Change-Id: I67ef7e532ba46932d9f5d2835a611162140b354c
2019-06-26 16:07:04 +08:00
Minmin Ren
5cd22bb18a Remove promote/reenable replication
The replication 1.0 API os-promote-replica and os-reenable-replica
were removed[1], then remove useless code from
cinderclient.

[1]: https://review.openstack.org/#/c/275797/

Change-Id: Icf98f294c089942e11607786e932abc959f77b3b
2019-06-19 03:16:42 +00:00
pengyuesheng
94d8e77325 Update sphinx dependency
Change-Id: I798f826c1da97b20ccf9decd177754a7a0b055fa
2019-05-22 13:57:59 +08:00
Zuul
0c89c0143b Merge "Cleanup the home page" 2019-02-06 20:33:28 +00:00
Eric Harney
2505e2a903 Fix doc build error
Doc build keeps failing w/

Recursion error:
    maximum recursion depth exceeded while pickling an object

Sphinx recommends bumping up the recursion limit to
get around this, and it appears to work.

Change-Id: If0a78f9af2e4ddd5fd88c44757642355b3a5bf2e
2018-12-14 11:43:56 -05:00
Matt Riedemann
85a3f0e30d Cleanup the home page
Good lord this thing needed some love. This change
does a few things:

* Remove the duplicate man page.
* Rename some titles to drop the CINDERCLIENT yelling -
  this is docs about cinderclient, I get it, no need to
  repeat in all caps.
* Fixed the sub-section title formatting in the home page.
* Dropped the duplicate usage guide wording and simply linked
  to the user docs from the home page.

Change-Id: I259787a40151e8c875ad87021f655a141e06b15e
2018-12-04 17:32:19 -05:00
unknown
4a9e9208ad update the value of OS_AUTH_URL and OS_VOLUME_API_VERSION
In the file doc/source/cli/index.rst, doc/source/user/cinder.rst,
doc/source/user/shell.rst, update OS_AUTH_URL and OS_VOLUME_API_VERSION.

Change-Id: I543bb2fedf3a1326bf1a46804f0d026ad8e21680
2018-05-21 10:24:35 +08:00
Zuul
3f6aa2a648 Merge "Support availability-zone in volume type" 2018-05-20 06:05:13 +00:00
TommyLike
5a1513244c Support availability-zone in volume type
Since 3.52, new option '--filters' has been
added to 'type-list' command, and it's only
valid for administrator.

Change-Id: I140f6d61a2747d4fcaabfbccea864dcc7eb841d1
Depends-On: I4e6aa7af707bd063e7edf2b0bf28e3071ad5c67a
Partial-Implements: bp support-az-in-volumetype
2018-05-02 10:25:27 +08:00
j-griffith
d6c6011fc8 Update python usage docs
The keystoneauth1 get_plugin_loader method requires that a
OS_USER_DOMAIN be specified.  Our docs don't include that
detail.

This change adds the extra needed field.  There's also some
problems currently with loading the client directly as it's
currently documented, which appears to be a bug in the client
code itself.

Change-Id: Idacbb47f9aae1e461379eec4a5e224b0157a8dc4
Partial-Bug: #1758104
2018-03-22 10:50:51 -06:00
OpenStack Proposal Bot
3b3dc95c1c Updated from global requirements
Change-Id: I24bc426d17cd29ba4c162de3fbdda6248214b7be
2018-03-15 07:55:02 +00:00
Yuanbin.Chen
c89272335a Update unit_test.rst doc unit test py34 to py35
CinderClient unit test use py27 or py35, Look:
https://github.com/openstack/python-cinderclient/blob/master/tox.ini#L3

Change-Id: Ibc3ada82337c6393ab86b3159fa1b4f032495879
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-03-05 13:45:57 +08:00
Zuul
6b40cae36d Merge "Remove unit tests about run_test" 2018-03-01 21:47:41 +00:00
Yuanbin.Chen
0ddf6c6b76 Remove unit tests about run_test
This patch remove unit tests about flags, beacuse the flags
about run_test.sh has delete.
About run_test.sh delete, look this patch.
https://review.openstack.org/#/c/502120/

Change-Id: Ib0e04ed6d48ec5c52cc62abf59174c313d843792
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-02-24 13:10:50 +08:00
OpenStack Proposal Bot
06df11e3ac Updated from global requirements
Change-Id: Ie7534a355e2b884707b9326243efa10c866bd97a
2018-01-24 01:27:56 +00:00
OpenStack Proposal Bot
0a4c8010c1 Updated from global requirements
Change-Id: I25be0e60459c2dc652b4ee8672984a65d3cf143e
2018-01-18 03:26:33 +00:00
OpenStack Proposal Bot
801ec5a44a Updated from global requirements
Change-Id: I4d4efd8f1713972164a6ede13f3aa7d62f8e9717
2018-01-02 07:14:06 +00:00
jiansong
7d76c405e4 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I7615e33c0d00c56b3ee6cb856a0553e32a1664c6
2017-12-21 18:23:48 -06:00
Jenkins
a1ce89b956 Merge "Update old url for cinderclient's document" 2017-09-20 14:29:47 +00:00
zhangbailin
7aba0e9026 Update old url for cinderclient's document
Update the URL in the document library, and use https instead of http
due to openstack document migration.

Change-Id: I991dff678ce613b0a50e3d0c9ab5ecd8cdf3e272
2017-09-05 23:06:16 -07:00
Stephen Finucane
bda535e15d doc: Remove cruft from conf.py
Change-Id: I0c0c77c25d3c96dd3c6a2a01be4f196c02e71dd6
2017-08-22 11:44:35 +01:00
Stephen Finucane
5d0b4bdc6e Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate the
setting from the old warnerrors one.

Change-Id: Ifd411ead74497a43ab22c57090ece2e1c7cfddb5
2017-08-22 11:41:50 +01:00
Thomas Bechtold
3dc824599c Fix man page build
Ia3b5ee2b6aaf17781d3de7546a9477f1c928092f moved cinder.rst from the
doc/source/man directory into doc/source/cli, so we need to adjust
the path in conf.py to avoid issues when running:

python setup.py build_sphinx -b man

Change-Id: I32ca20e0e184b11c68c9b81a9ff3d1247330ade4
2017-07-29 08:36:35 +02:00
chenxing
a3f9f4f16d Rearrange existing documentation to fit the new standard layout
The layout is configured to follow the design from this spec:

https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

This change is necessary to continue the doc migration process.

Change-Id: I5ab2e47b67baf90bdd808cb831493a010d23a070
2017-07-26 21:54:59 -05:00
chenxing
b5eaca8712 import content from cli-reference in openstack-manuals
This patch is part of the great doc migration from
openstack-manuals to the individual repos.  The
changes are based on the spec here:

https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

The cinder.rst file needs to be renamed index.rst so
that the template that is being used by OpenStack
manuals team will magically find the documentation.

Change-Id: Ia3b5ee2b6aaf17781d3de7546a9477f1c928092f
2017-07-26 20:46:02 -05:00
Jenkins
b4abd9cdef Merge "Update cinder.rst and shell.rst" 2017-07-26 22:18:37 +00:00
junboli
9c36efa39c Update cinder.rst and shell.rst
In the file doc/source/man/cinder.rst, add cinder command
examples, In the file doc/source/shell.rst, update OS_AUTH_URL
and OS_VOLUME_API_VERSION

Change-Id: I6ed2c5228daad8dd6dcab1d7278f8a0b049c0490
2017-07-26 02:03:25 +00:00
Hangdong Zhang
0b52b49b57 Update URLs in documentation
Update URLs according to OpenStack document migration
BTW: Do some optimization as well (http -> https)

Change-Id: I9239e2012442f3e459a21f50afd380c8f58a6a98
2017-07-20 15:20:11 +08:00