Add an image user guide to replace the current placeholder. Also,
add image examples and related tests to go along with the guide.
Much of the content for the guide was pulled from [1].
[1] http://docs.openstack.org/image-guide/
Change-Id: I8b3a1618b09f3570f3b69d8c228bed56d4d1c151
Closes-Bug: #1466183
Currently, action resource call of nova server doesn't work
correctly in case where action API doesn't have response body.
This patch fixes this issue.
Change-Id: I016f74507f7d5b5792c77879969bdc271c25f829
Closes-Bug: #1528145
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.
Change-Id: I2147b18fd9ecc32eef3c8670e33def2a702e7d20
This patch adds the 'resize' action to the cluster resource. It also
adds test cases about 'scale_in' and 'scale_out' which were missing.
Change-Id: I1fd3203dfe1a647df5fa2315d5e75a93dfd9c1f4
In resource.prop, __get__() will do self.type() on the value it got to
construct an object of the type. But the type could be overwritten to any
type. And the type may not be able to construct an object from None.
For example, if self.type=dict, then self.type(None) will become dict(None),
which will give "'NoneType' object is not iterable" error.
This patch fix it by returning None if the attr's value is None.
Change-Id: Ied255c52bc3f0d024ca70d1239956ba17430b13e
Closed-bug: #1527967
Explicitly parse the mtu and port_security_enabled properties
for a Network object based on the property definitions in the
networking v2 API [1].
[1] http://developer.openstack.org/api-ref-networking-v2-ext.html
Change-Id: I45fa298e86afa31c7d63762dca004d14692def31
In an effort to widen support for resource properties that are IDs but
can take the appropriate resource type for that ID, the block_store
service throws a kink into it. The Volume type can contain a Snapshot,
and a Snapshot can contain a Volume. Because of that loop, we can't do
the usual `foo = resource.prop(foo, FooType)`. We can sort of emulate
the behavior users will get out of it in the proxy by doing a type
conversion in the create_volume and create_snapshot methods to support
resource instances being passed in there.
Additionally, Volume can be created from another Volume, but we can't
have a prop refer to its own class, so that problem is solved the same
as above.
Lastly, the Volume resource has two props that can take real types:
image and type.
Change-Id: If8a5b24b05a341ae6bfe9dca6b93429dcfc8f408
With the move to keystoneauth, we no longert depend on the requests
library for anything at runtime. We do still have one test, which is
valid, that depends on requests to ensure that
https://bugs.launchpad.net/python-openstacksdk/+bug/1428342 stays fixed.
This change moves requests to test-requirements and additionally removes
the list of dependencies in the README file, as it duplicates the only
place requirements are truly needed.
Change-Id: I6aa8e71573e685b2748150ea5cec946b65d525ae
This change converts several props on cluster resources to their typed
equivalent, allowing either an ID or an actual Resource to be passed for
that value.
Change-Id: I62894903239160944c1c2ec474b06b25ed64ed28
Some time ago, the Key Management service was renamed to Key Manager
service in the governance repo. We originally stuck to naming it Key
Management *because* it was named as such in the projects.yaml file, and
because it has changed, we should follow how it's named there.
Change-Id: Id5c1bd617a02e21e91f01ec095f817222c535138
Explicitly parse the port_security_enabled property for a
Port object based on the property's definition in the
networking v2 API [1].
[1] http://developer.openstack.org/api-ref-networking-v2.html
Change-Id: Ibd0fdd429abbea44cd56d6901f6709e8c5663f19
Closes-Bug: #1526441
We need to catch the proper exception type after switching over to
keystoneauth1. Currently the ignore_missing parameter is not working.
Change-Id: Ie3c09a3fb9b8b5efc9c072a54236ebe9aea1d3e6
Closes-Bug: #1525943
This code is subject to change in the near future. The alarm
class is probably moving out of here and many of the resource
property have aliases. We have agreed not to support the old
aliases going forward, because it doesn't work well. The
admonition can be pulled after these issues are fixed.
Closes-Bug: #1468086
Change-Id: Ica464a6c1e2281f4acbd25a121a399b6b0c81376
For docs set the launchpad project users report bugs
against to "python-openstacksdk". Users can report bugs
using the "bug icon" that will
directly link to the launchpad project, it currently goes to
"openstack-manuals" which is wrong for this content.
This variable is used by openstackdocstheme 1.2.6.
Also, update comments for the variables passed to openstackdocstheme.
Change-Id: Id036c6373092673ce0c54be1b64ea87d1de89b88
Related-Bug: #1524476