123 Commits

Author SHA1 Message Date
Takashi Kajinami
08b0a68a57 Remove unused Makefile for doc
We've not been using this for long since we introduced the tox targets
for doc lint and build.

Also remove .gitignore in the subdirectory to maintain ignored files
in a single place.

Change-Id: Ib1779deb1b7fecbaf04766cae506ae5a25dafec4
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2026-02-21 20:06:26 +09:00
Takashi Kajinami
0549d6d9a1 Fix outdated notes in requirement files
Recent pip no longer requires specific order and can resolve
dependencies automatically.

Also add a note to explain that lower bounds of requirements are no
longer tested and these are now maintained on best-effort-basis.

Change-Id: I8287f379cb8d17254df8064af69279fe3361e7a4
2024-12-12 22:34:31 +09:00
Eric Harney
125e3d71b1 Fix pdf doc build
This gets pdf docs building again.

Change-Id: I11fee23dc75f57a344d5d3adcbbe6813a3ae7703
2024-09-13 12:00:09 -04:00
Brian Rosmaita
cb5235250c Remove v2 classes
Remove all cinderclient.v2 classes, mostly incorporating them into
their v3 counterparts and updating the tests and test fixtures.

Depends-on: https://review.opendev.org/c/openstack/horizon/+/800814

Change-Id: I335db5c1799edb2273bf8bfc9e1bc9de404a4ba5
2021-07-14 14:28:44 -04:00
Brian Rosmaita
a933a69e87 Update requirements for wallaby release
Updates requirements to what we're using now and revises the
lower-constraints file to contain only direct dependencies.

Change-Id: I1a3cc999b94dc6b6482b1ca44218b42ee2638a8c
2021-03-11 15:43:05 -05:00
tushargite96
d9213138b1 Dropping explicit unicode literal
In python 3, all strings are considered as unicode string.

This patch drops the explicit unicode literal (u'...')
or (u"..") appearances from the unicode strings.

Change-Id: I9902966892a1dc4f85d449dfe580fb128647487b
2021-03-11 08:32:54 -05:00
tushargite96
8ea4f1379d Doc: Functional Tests in python-cinderclient
ostestr command is deprecated.

Closes-bug: #1866376
Change-Id: I24398d481002f30754368ac601ff3ac304f3fb82
2021-02-23 16:06:18 +00:00
Zuul
edf13bc87a Merge "doc: Update Py37 instead of py27" 2020-10-15 16:23:27 +00:00
tushargite96
da9728b15b doc: Update Py37 instead of py27
Examples in this section should use a Python 3 environment and not py27.

Change-Id: If082b92e089af980e411b4b4c1319e462862a55f
Closes-Bug: #1866375
2020-09-17 10:43:01 +05:30
tushargite96
7397f70957 Python API in python-cinderclient
"myvol.delete" should be "myvol.delete()"

Change-Id: Iadddfed8deec1f0dee2b71effb3b4de2689d6ada
Closes-Bug: #1866374
2020-09-15 23:05:15 +05:30
Zuul
0a4d3c77b4 Merge "Add doc linting to pep8 target" 2020-08-26 15:02:50 +00:00
Stephen Finucane
8ecbbcd7a1 trivial: Drop references to os-testr
os-testr is dead. Long live stestr.

Change-Id: Ie37f00e2f5ef2230adcff0d662e2d0b214b8c74c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-07-09 11:22:06 +01:00
Sean McGinnis
d6530c48d9 Add doc linting to pep8 target
This adds doc8 to the pep8 job to lint the docs. Also fixes a few issues
it highlighted.

Change-Id: Id0f4b9bee1f6a0103ec581b20037a9b74201aaca
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-05 14:53:12 +00:00
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