1332 Commits

Author SHA1 Message Date
Richard Theis
003ff67dc8 Add image user guide
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
2016-01-05 15:53:20 -06:00
Jenkins
004bad9f1f Merge "Add support for availability zone request" 2016-01-04 15:34:53 +00:00
mountainwei
73c1e2a64d Add support for availability zone request
Change-Id: Ic5109b5361de6b492cdb7fcb1c117d7109c55076
Co-Authored-By: xuhaiwei <hai-xu@xr.jp.nec.com>
2016-01-04 17:06:47 +09:00
tengqm
fb8d77f1db Add proxy methods for node actions (cluster)
This patch adds proxy methods for node actions of cluster service.

Change-Id: Ida716ea5c75609976674f7f6d35e64e5b9c30ef1
2016-01-03 22:07:57 -05:00
tengqm
ce09f5a4dd Rename timestamp fields for cluster service
This is a change following the senlin service API change.

Change-Id: Iced4496f1da656a32af493af38701ab44bd17791
2016-01-03 11:02:46 -05:00
tengqm
71da203e88 Add cluster actions to cluster proxy
This patch adds the cluster action calls to the cluster proxy.

Change-Id: I97dddd2f06c7eb82592a2e01470ddc6eaa6351e8
2015-12-31 21:27:06 -05:00
Jenkins
efb8a97453 Merge "Add Receiver resource to cluster service" 2016-01-01 02:26:25 +00:00
Jenkins
990dec6cbf Merge "Fix server action resource call" 2015-12-31 02:12:37 +00:00
yanyanhu
b37bced0e7 Fix server action resource call
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
2015-12-29 21:02:24 -05:00
Jenkins
930712af46 Merge "Add 'resize' action to cluster" 2015-12-25 01:13:42 +00:00
tengqm
9f20c04803 Add Receiver resource to cluster service
This is the last missing resource type Senlin needs from the SDK.

Change-Id: I6f4eda44f9d303c17d4d6b3977d1608ff544de2e
2015-12-24 20:09:50 -05:00
Doug Hellmann
00baca6b39 remove python 2.6 trove classifier
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
2015-12-23 01:31:15 +00:00
tengqm
74fd82f842 Add 'resize' action to cluster
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
2015-12-22 07:15:58 -05:00
Tang Chen
2574e9585a Return None when getting an attr which is None when using resource.prop()
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
2015-12-21 15:17:06 +08:00
Jenkins
6637e74fd2 Merge "Add Network mtu and port_security_enabled properties" 2015-12-17 21:29:54 +00:00
Jenkins
e4bd103ea2 Merge "Support block_store types where IDs are taken" 2015-12-17 18:33:52 +00:00
Richard Theis
21708663ca Add Network mtu and port_security_enabled properties
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
2015-12-17 09:48:01 -06:00
Brian Curtin
8c7ca1e62e Support block_store types where IDs are taken
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
2015-12-16 14:54:42 -06:00
Brian Curtin
27f044df4f Remove requests from requirements
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
2015-12-16 14:51:40 -06:00
Jenkins
db1125990e Merge "cluster: Use typed props instead of *_id" 2015-12-16 15:17:13 +00:00
Jenkins
ed8d4e4356 Merge "Updated from global requirements" 2015-12-15 23:44:01 +00:00
Brian Curtin
a5bf184ebd cluster: Use typed props instead of *_id
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
2015-12-15 17:39:57 -06:00
Jenkins
a4238bb8d0 Merge "Rename key_management to key_manager" 2015-12-15 21:36:48 +00:00
OpenStack Proposal Bot
cff5bd5076 Updated from global requirements
Change-Id: Iddb7a0c39aa8143b1bf7d7636bae2a876aadaa21
2015-12-15 21:29:32 +00:00
Jenkins
9bb5b2f60d Merge "Replace 'value' arguments in network proxy" 2015-12-15 21:18:37 +00:00
Jenkins
088e9adda4 Merge "Replace 'value' arguments in telemetry proxy" 2015-12-15 21:18:35 +00:00
Jenkins
988b3aa2bb Merge "Replace 'value' arguments in orchestration proxy" 2015-12-15 21:18:12 +00:00
Jenkins
3544ceda6a Merge "Replace 'value' arguments in object_store proxy" 2015-12-15 21:17:40 +00:00
Brian Curtin
1c739d307e Rename key_management to key_manager
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
2015-12-15 12:15:51 -06:00
Brian Curtin
111e588228 Replace 'value' arguments in telemetry proxy
Replace 'value' arguments with more appropriate names.

Change-Id: I4dd7827b6dfe5474b0e14b98184ec118b11c7d8f
2015-12-15 11:11:34 -06:00
Richard Theis
0f128eb037 Add Port port_security_enabled property
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
2015-12-15 11:07:37 -06:00
Brian Curtin
475d14d910 Replace 'value' arguments in orchestration proxy
Replace 'value' arguments with more appropriate names.

Change-Id: Ic9f636ba52f84e983954cdad2c144ac367154dd1
2015-12-15 10:58:42 -06:00
Brian Curtin
83798e68ec Replace 'value' arguments in object_store proxy
Replace 'value' arguments with more appropriate names.

Change-Id: I07fe66c6dfd4c1f3ad50647bbeacc76e9b66ec64
2015-12-15 10:39:05 -06:00
Brian Curtin
c0ed486c6c Replace 'value' arguments in network proxy
Replace 'value' arguments with more appropriate names.

Change-Id: Iaf3877437635b5ecfbc8c55c04a15b551042802b
2015-12-15 09:48:03 -06:00
Jenkins
f3f06b2067 Merge "Replace 'value' arguments in image proxies" 2015-12-15 06:12:59 +00:00
Jenkins
3dd4b89d1b Merge "Updated from global requirements" 2015-12-15 06:00:17 +00:00
Jenkins
ab5773663d Merge "Fix exceptions to catch for ignore_missing" 2015-12-15 05:50:03 +00:00
Brian Curtin
f7d64de43c Replace 'value' arguments in key_management proxies
Replace 'value' arguments with more appropriate names.

Change-Id: Ic6aea91967db6707be75d86924c37a9c1a5f4422
2015-12-14 16:33:29 -06:00
Brian Curtin
fb64dcc54f Replace 'value' arguments in image proxies
Replace 'value' arguments with more appropriate names.

Change-Id: Ifadb3003f412d215ddcd533d33b2cbc034a4ac43
2015-12-14 16:25:59 -06:00
Jenkins
d2c9174b9d Merge "Add Router ha, distributed and routes properties" 2015-12-14 17:54:33 +00:00
tengqm
c7bca6a1ec Fix exceptions to catch for ignore_missing
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
2015-12-14 10:25:31 -05:00
OpenStack Proposal Bot
e2c57b1a9e Updated from global requirements
Change-Id: I79073f5df6fa076c03494dee7e842a3bb03ebda2
2015-12-13 04:38:34 +00:00
Terry Howe
355945c7f5 Add admonition to telemetry code
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
2015-12-11 14:09:01 -07:00
Richard Theis
ad9564f706 Add Router ha, distributed and routes properties
Explicitly parse the ha, distributed and routes properties
for a Router object based on their definition in the networking
v2 API [1].

[1] http://developer.openstack.org/api-ref-networking-v2-ext.html

Change-Id: I03b9d3313415f18dfc1797286c20d8e15752daf9
Closes-Bug: #1525298
2015-12-11 14:40:50 -06:00
Andreas Jaeger
eeedb20a60 Fix "report a bug" launchpad project
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
2015-12-11 17:39:53 +01:00
tengqm
f47cd8ef17 Add PolicyType resource for clustering
This proposes the PolicyType resource for clustering (senlin) service.

Change-Id: I5857b301661409262af4054941a36f53633ff2aa
2015-12-11 08:16:21 -05:00
tengqm
0f3efa3ca0 Add 'ProfileType' resource for senlin
This proposes a 'ProfileType' resource for senlin clustering service.

Change-Id: I48b0934f6be500d7c9d12ba2643269aaa95988e8
2015-12-11 08:09:30 -05:00
Brian Curtin
7480a69a71 block_store and cluster: replace 'value' arguments
Replace 'value' arguments in proxy methods with more useful names.

Change-Id: Ied0b28c40568fb962f7f4f67e10dd1d94b96aa6d
2015-12-10 22:17:08 -06:00
Jenkins
265578097e Merge "Skip orchestration functional tests" 2015-12-11 03:34:35 +00:00
Jenkins
b7731fd9f9 Merge "Replace 'value' arguments in identity proxies" 2015-12-11 02:58:22 +00:00