Commit Graph

60 Commits

Author SHA1 Message Date
Andreas Jaeger 56023326cb 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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

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

Change-Id: I4ace84f37b5814a54c130f6601baa2275a10d906
2020-06-01 18:49:52 +00:00
inspurericzhang 0514bfb4e5 Mailing lists change openstack-dev to openstack-discuss
Change-Id: Ieeeaee0ba81e55b2f75f96b20d305df5a5112188
2019-07-01 19:23:13 +08:00
zhangboye 05de1cc854 Cap sphinx for py2 to match global requirements
Change-Id: Ie8629c6882feefd388d36905146b3a8255bbc950
2019-06-06 16:52:45 +08:00
Monty Taylor b47fb2af55 Update for opendev
Change-Id: I2cf0463108cf0bea37a221ee1dd74252d13f41c4
2019-04-21 13:00:42 +00:00
Monty Taylor 3b2cad5d31
Decouple OpenStackCloud from Connection
Revert the openstacksdk subclassing from shade. The idea was to
reduce the workload, but trying to make sure that the Cloud abstraction
in openstacksdk doesn't break shade's contract while we update things is
a ton of work to meet the contract that's not really valuable to people.

Instead, we'll put shade on lifesupport and only accept bugfix patches.

Revert "Make OpenStackCloud a subclass of Connection"

This reverts commit ab3f400064.

Revert "Use openstack.config directly for config"

This reverts commit 2b48637b67.

Revert "Remove the task manager"

This reverts commit 28e95889a0.

Change-Id: I3f5b5fb26af2f6c0bbaade24a04c3d1f274c8cce
2018-10-16 08:58:01 -05:00
Monty Taylor 28e95889a0
Remove the task manager
The underlying openstacksdk library is shifting how task manager works,
so stop trying to send it a task manager. This is a feature basically in
place just for nodepool which is being expanded to be more usable by
everyone. The likelihood that anyone other than nodepool is using it is
... very low.

Change-Id: I04be3937589a805a5f9686c91a78933eebcfa022
2018-09-25 07:17:39 -05:00
melissaml d0da0b0323 Update the url in doc
Change-Id: Ifb2183870cff73c03c668926bad47bc131979918
2018-09-24 16:50:54 +08:00
Sean McGinnis df4c5819d2 Remove redundant target in README
An 'example' anchor was being explicitly added that was
redundant with the 'Example' title it preceeded. This
causes failures with `python setup.py check -s -r` which
was added to release validation to prevent pypi package
upload failures.

Since the README is imported into the built docs, and the
docs link to the examples using this hidden anchor, this
renames it to avoid a conflict.

Change-Id: I6947e0ae420402cc9866e3c374626392b1d5194c
2018-07-19 19:52:02 -05:00
Monty Taylor ab3f400064
Make OpenStackCloud a subclass of Connection
The shade code lives in openstacksdk now and is a part of Connection.
Start making shade a subclass of that for backwards compat.

Mostly only deal with the constructor for now, but go ahead and do
list_flavors and get_flavor_by_id while we're looking at the extra
config override. Also remove list_projects because of its use of the
_normalize module.

keystoneauth lower-constraint needs to be bumped because of
status_code_retries.

Change-Id: Ibbe6e167d6285b30a9adbd0c5a89bc679c5645f3
2018-07-13 06:17:25 -05:00
melissaml 3c3132285f Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: Iefc596294090af7f1a87b20183f37726e7c0524e
2018-04-21 18:37:20 +08:00
OpenStack Proposal Bot 76a19e3d26 Updated from global requirements
Change-Id: Iddd98c752cf5d007f3686bfd7c5ab74cc212680a
2018-03-15 06:44:01 +00:00
OpenStack Proposal Bot a5335d482f Updated from global requirements
Change-Id: I4ece8fbfa4877debe94f5b4517e09517bed44dfc
2018-03-10 13:05:50 +00:00
melissaml f672926bc9 Update the invalid url in pages
Change-Id: I5b4c37fcebeb9fc1d165cf70688d212947b0fd3a
2018-02-27 13:55:16 +08:00
Zuul 2b63418e84 Merge "Switch to providing created_at field for servers" 2018-01-31 20:59:31 +00:00
Mohammed Naser 5c7800d2d5
Switch to providing created_at field for servers
All of the current models return the creation date in created_at
with the exception of servers which are currently returned with
a created field instead.

This patch addresses this and gives the ability to get access to
both.

Change-Id: Ifbd59834080eea62dead19d18a9a11a851a4ce2e
2018-01-31 10:17:43 -06:00
OpenStack Proposal Bot b3d9664bc5 Updated from global requirements
Change-Id: I357a7901c00a62b6de8ae6011ab2d67092e0da6b
2018-01-27 17:27:21 +00:00
Monty Taylor 52d7d845b4 Shift doc requirements to doc/requirements.txt
This is the new hotness.

Add doc8 linting to the pep8 target while we're doing it. And, slim down
pep8 tox env. It doesn't need to install shade or any of the
requirements.

Change-Id: I1e73ee503c81f92b4fe84bdd384f856290b6d5dd
2018-01-24 16:03:05 +00:00
Monty Taylor 655c4ce9e2
Remove inner_exceptions plumbing
We've finally gotten out of the business of wrapping exceptions. Since
we don't do that anymore, we don't need the log_inner_exceptions logic.

Change-Id: Id1f709daa2e61c13efeeeffc2a08578c27265e56
2018-01-23 08:42:29 -06:00
Monty Taylor c39d98ccaf Move role normalization to normalize.py
Location has specific semantics for identity resources. Add a method to
get a projectless location. Add domain_id to project since all of the
identity resources have it already, but keep the parent-project
semantics already in place for project.

Change-Id: Ife37833baabf58d9e329071acb4187842815c7d2
2017-10-12 21:43:28 +00:00
Akihiro Motoki 262061afd0 Improve doc formatting a bit
After migrating to openstackdocstheme, some shade document became
not easy to read. This commit fixes them a bit.

- openstackdocstheme assumee only one title per page.
  Use a different level of title for the title.
  Otherwise, titles with the same level are not shown.
- Release notes page has a lot of sections. It leads to a long TOC
  in the user guide index page.
  Use maxdepth=1 explicitly for the release notes.
- Add a link to a simple example to usage.rst.
  It helps users who access the user guide directly.

Change-Id: If51afa471505296b502bed3288cc9bcf30a69ba3
2017-07-12 06:50:19 +00:00
Doug Hellmann 65ce1a2289 switch from oslosphinx to openstackdocstheme
Change-Id: I83c5856a49cdfd912eb2d62314848a4cc4905fe1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-30 10:14:38 -04:00
Doug Hellmann 20b2f1f0c0 reorganize docs using the new standard layout
Move the docs around a little to allow the new templated docs.o.o site
link to things like the user and install guides in the expected location.

Change-Id: I7f3b625c04aa6cd2a7ebe5f2ce4a398cf464b1cc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-30 10:07:41 -04:00
Jenkins 8bd5f485cc Merge "Add normalization and functional tests for keypairs" 2017-06-18 12:48:40 +00:00
Monty Taylor caa69b4117
Add normalization and functional tests for keypairs
Keypairs didn't have functional tests, although they do have ansible
tests. Also, there was no normalization. Add both.

Change-Id: Ib6fab25cf4c88e5f9d224e831a8b5f297b263aea
2017-06-17 12:20:41 -05:00
Monty Taylor c23611a093
Remove future document
This is a write up of an idea from several years ago which is both long
in the tooth and honestly never going to happen. Go ahead and remove it.

Change-Id: I4377cfb24c468f2333ac470a2a58fa97cf35d4bd
2017-06-17 09:47:24 -05:00
Monty Taylor 145a0ab7a3
Add text about microversions
We aren't doing anything with microversions yet, but since we just wrote
down algorithms for version discovery, let's go ahead and talk about
how microversions should work. Also, mention that it's important to
fetch information about them as part of discovery.

Change-Id: Iadd48cd53488240e33db83797a88af689b1497dc
2017-06-17 09:47:22 -05:00
Monty Taylor 5d987eb31e
Add documentation about shade's use of logging
shade logs to some specific named loggers for various things. They are
defined and intentional, but are not documented. So let's document them.

Change-Id: If52553e5478d4e2f8a56f5d899e93fd2b4fe3c2d
2017-05-25 14:39:57 -05:00
Monty Taylor fcaf06c3f2
Add "Multi Cloud with Shade" presentation
Check it out - when we write presentations in presentty, we can
add them to our docs!

First given at the 2017 Boston OpenStack Summit.

Change-Id: Ia46a6f32b6b374974fba7b620b202f8eadc774a1
2017-05-08 13:08:02 -04:00
Monty Taylor 12523389a8
Add normalization for heat stacks
Change-Id: I564268d910a558288e661c15e279ca7fdfcc80f3
2017-03-27 13:43:25 -05:00
Monty Taylor 7311bf0187
Convert magnum service to requests_mock
Also add documentation and normalization, of which there was previously
not.

Change-Id: Ib4ba4fc748117ae4339683ae9fd4f9f958c3cc0e
2017-03-20 16:37:32 -05:00
Monty Taylor f32591ab21
Add normalization for cluster templates
Every time the magic of flexible return schemas rears its ugly head, a
pony becomes a less happy pony.

It's worth noting that this changes behavior to _always_ get detailed
records. This is consistent with our other things and should not break
anyone.

Change-Id: I4932e424ec7db8b6cea014ec668b30bb29f3e1f9
2017-03-20 16:37:29 -05:00
Monty Taylor db45323809
Update sphinx and turn on warnings-is-error
In order to do that, fix the warnings that are now errors.

Change-Id: I1e582a6763fc82496e4ab33f60ced193b0534f28
2017-03-16 12:17:51 +01:00
Monty Taylor 60ce27ea81
Actually normalize nova usage data
Turns out usage reports are empty when there is no usage - so direct
passthrough is not so much a thing. Fix it.

Change-Id: I6a2f2e737f792ba74a191d688b3380dc333e34fe
2017-02-16 12:54:36 -06:00
Monty Taylor e71e79c397
Update coding document to mention direct REST calls
Now that we've got glance and swift done and have started on neutron,
let's update the doc to tell people that it's the way forward.

Change-Id: I16f7ae58f5ae280bc4b1533f62bf3e3a09dbaeb0
2017-01-23 10:26:29 +01:00
Jenkins e4dbb42695 Merge "Basic volume_type access" 2017-01-17 21:59:15 +00:00
Roberto Polli 0f706a7ded Basic volume_type access
Change-Id: I86405e7272c4101f6f03841ff65deec057fbed0b
2017-01-17 21:21:40 +01:00
Jenkins 9cfe7e7009 Merge "Added list_flavor_access." 2017-01-13 20:38:49 +00:00
Roberto Polli 9d145e0be2 Added list_flavor_access.
Change-Id: Ia983486ec4d587dd436e6a9c0b443be8ce1a7102
2017-01-12 18:36:44 +01:00
Jenkins 114d4af140 Merge "Rework limits normalization" 2017-01-10 19:00:10 +00:00
Monty Taylor 11d66e34e4
Rework limits normalization
There isn't good docs or a guide on what we're looking for with
normalization - so rather than nitpick a review to death, I just made a
patch. We should make a doc ...

Changes included:
- We need to be explicit about every key we're going to support. Some of
  the limits keys are deprecated, so just don't return them.
- Change them all from camel case to underscore to match other
  resources.
- Document them in model.rst
- Change the name from limits to compute_limits, since it's only limits
  for the compute service.
- Allow usage by a normal user (it's not an admin function)

There will be a follow up patch to convert this to direct rest calls,
which will be fun due to the ability of this to work against other
projects.

Change-Id: Icfb118d4289263c0dd906f600e370242f191f708
2017-01-08 08:40:50 -06:00
Andreas Jaeger 228b50dea0 Remove link to modindex
The documentation build does not generate any module index, thus remove
the link to the page. The page
http://docs.openstack.org/infra/shade/py-modindex.html does not
exist.

Change-Id: Ibfc9f74bbebe3ad2c0d3d37eba3e65a44a602dfe
2016-12-28 16:13:26 +01:00
Monty Taylor 65f3d49cf7
Add new attributes to floating ips
There are four attributes that show up by default in devstack installs.
They come from the timestamp and standard attributes extensions, so it's
possible they may not always be present. But we can make them always be
present.

Change-Id: I1a05ef735c24600821856c6ec36df11e981b3d36
2016-12-13 12:24:15 -06:00
Monty Taylor 697da6fd4e
Normalize volumes
We had a normalization function in _utils but it was nor documented nor
did it support strict mode. Document the normalization and  be more explicit
about which things we support and don't.

Change-Id: I360af3abcfd69afebd941c5d6e359a84dc956283
2016-11-15 07:48:00 -06:00
Monty Taylor 89cea034fc
Expose visibility on images
Visibility can be public, private and shared - and community is coming
in O1. Make sure that we don't lose that information in our
normalization.

Change-Id: I148547e3026fe155c911d9a51cb51d8901c83650
2016-11-15 07:46:35 -06:00
Monty Taylor 2bf2729bfc
Normalize projects
We were returning projects un-normalized. That's no good for anybody.

Add normalization and documentation of the agreed model.

It's worth noting that because it's a project, information about project
and domain in the location dict is a bit more specific.

Change-Id: I3bbfd010883587857cf09f082124816e701fbe6f
2016-11-10 11:55:34 -06:00
Monty Taylor fa80a51d0f
Add strict mode for trimming out non-API data
shade defaults to returning everything under the sun in every form
possible in order to ensure maximum backwards compatability - even with
systems that are not shade itself. However, passthrough fields from
somewhere else could change at any time. This patch adds an opt-in flag
that skips returning passthrough fields anywhere other than the
properties dict.

Change-Id: I7071a406965ed373e77f9592eb76975400cb426b
2016-11-01 17:03:57 -05:00
Monty Taylor 4dad7b2e69 Document and be more explicit in normalization
Put extra keys in both the root resource and in a properties dict.

Ensure data types are correct. Make sure int, float and bool values
are returned as int and bool.

Change disabled in flavor to is_disabled for consistency with other
bools we've added. There has been no release with the addition of disabled,
so changing it now is still safe.

Add locations and direct_url to images. They're optional in glance, but
that's evil.

Let image schema attribute fall through to extra properties.

Add zone to current_location.

Add readable mappings for power_state, task_state, vm_state, launched_at
and terminated_at for Servers. Also add a non-camel-cased host_id.

This is a big patch, but it's mostly just reorganizing and adding docs.
Looking at the changes to the tests and seeing that the only change is
adding zone and properties into a couple of fixtures is a good place to
start.

Change-Id: If5674c049c8dd85ca0b3483b7c2dc82b9e139bd6
2016-10-22 14:02:56 +00:00
Monty Taylor 9cdd967550
Go ahead and admit that we return Munch objects
There was a point in time in the past where we were gung ho on using
Munch as a halfway house to get us to pure dicts. However, we released
1.0 before we could do that, so we're pretty stuck with them for the
forseeable future. That's not terrible - they're pretty low overhead and
work pretty well.

Depends-On: Ie10099430481ffa76f5a19557e3693189544df6b
Change-Id: I8b7dd2c4038db999280ec0c2c9c43fb9499e6d22
2016-08-03 08:16:54 -05:00
David Shrewsbury 04774d8f80 Add release note doc to dev guide
Add a section to our Coding Standards documentation that describes
the use of reno for shade release notes.

Change-Id: I87973c5b3f68727aa0cb1ccb9a82c90a8a32ebd1
2016-05-04 09:54:26 -04:00
David Shrewsbury ab8a196907 Clarify Munch object usage in documentation
We have pretty much settled on sticking with Munch objects for the
1.x series of shade releases. Change the documentation to note this.

Change-Id: I8b2838c3a5a40b0c74e31081bfb1ed4b0d39280f
2016-02-12 03:44:05 +00:00