41 Commits

Author SHA1 Message Date
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
Monty Taylor
83159ae486 Use reno for release notes
The OpenStack Release team has created a great release notes management
tool that integrates with Sphinx. Start using it. For reference on how
to use it, see http://docs.openstack.org/developer/reno/

Change-Id: I57692d720174fedb68ab2f52d5a4c496a6d993b2
2015-12-07 15:52:11 -05:00
David Shrewsbury
0f6203f303 Split out OpenStackCloud and OperatorCloud classes
Change-Id: If8a09f52313c07d12c7fe0da66f6599de3120979
2015-10-31 15:18:32 -04:00
Monty Taylor
0ab8b82c6b Move valid_kwargs decorator to _utils
It's not really a public symbol.

Change-Id: Iab016b93697f1e44fd299d6bfbfc80677030102d
2015-10-22 11:32:30 +09:00
David Shrewsbury
eeae22fb7f Add a developer coding standards doc
We have coding standards. Let's tell others about them.

Change-Id: I36456fa706db96ad1abb3d121f90981845065d8c
2015-08-12 16:25:05 -04:00
David Shrewsbury
0af29bda2f Clarify future changes in docs
The README was discussing future design decisions as if they were
already implemented. This can be confusing for new users. This
separates that discussion into a separate doc page and clarifies
its intentions.

Also, fix sphinx doc build warnings.

Change-Id: Ie66b60d972cae25a9805804ad17632aed0932627
2015-08-04 09:11:01 -04:00
Atsushi SAKAI
914d82a33a Fix two typos and one readablity on shade documentation
resouce => resource
expse   => expose

virtualenvwrapper => virtualenv wrapper

Change-Id: Id4dbcb4852eb2ef5dac4e0379e384c945c93a1ae
2015-07-29 14:36:07 +09:00
David Shrewsbury
e71bee318c Stop leaking server objects
We should not be returning raw client objects when creating or
rebuilding a server.

The usage document is updated to indicate that access to resource
values via attribute is deprecated, and the examples in the README
now reflect dict-style access.

Change-Id: Iac38d4c0b29f867cc3cefaccf48c1c3fcd17a3d9
2015-05-12 15:14:04 -04:00
Monty Taylor
5ca933aa7f Add API auto-generation based on docstrings
We've been adding docstrings, maybe we should put them into our
documentation.

Change-Id: I11ee33e1b87854403ec8b4e35f338c2c604d7fa4
2015-04-02 13:50:59 -04:00
Monty Taylor
5b3c005aae Fix up copyright headers 2015-01-07 12:31:15 -05:00
Monty Taylor
c046b39e79 Initial cookiecutter repo 2014-08-30 17:05:28 -07:00