194 Commits

Author SHA1 Message Date
zhongjun
f1fbc5952d Add export-location filter in share and share instance list API
Share and share instance list API will accept new query string parameter
'export_location'. It can pass path and id of export_location to
retrieve shares filtered.

APIImpact

Partly-implement: BP support-filter-share-by-export-location
Change-Id: I5fdf6d89d0b6c7fa182ddfaac60979bc6c0fc2a6
2017-06-29 18:06:21 +00:00
Jenkins
490ddb7c1b Merge "Change to share access list API" 2017-05-08 04:40:06 +00:00
yangweiwei
5a8c3c11b9 Change to share access list API
When we do manila access-list, the 'created_at' and 'updated_at' time
should be shown to the user. And then the user could determine which
is the recent access rule. As the design, the recent access-allow
rule caused the error access-status of share instance.

APIImpact
Closes-Bug: #1682795
Change-Id: Iad6070d60ec77b7de9cc9679cfa7478876084da1
2017-05-05 17:19:25 +08:00
YuYang
c7a2b21d7d api-ref:Update ref link
update the manila api-ref link and install-guide like use latest.

Change-Id: I17b18630b5082935b71e29a9edb5e03e58610881
2017-05-02 10:41:55 +08:00
rajat29
1a9768ac58 Fix api-ref doc generation for Python3
Fix the Sphinx html_last_updated_fmt for Python3.
The html_last_updated_fmt option is interpeted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Closes-bug: #1685147

Change-Id: I6afe143d4db08562b253d130d536d701b1606824
2017-04-21 10:22:23 +00:00
Thomas Bechtold
2475f75cd5 [api-ref]: Add missing share statuses
Add missing possible statuses from manila/common/constants.py to the API
reference.

Change-Id: I7300820abd80c6184367620d76e8ae15bfeadbd7
2017-03-09 08:15:05 +01:00
Jenkins
595a2bd73c Merge "[api-ref] Refactor share network documentation" 2017-01-29 06:21:21 +00:00
Goutham Pacha Ravi
6ba74918d5 Mark 'v1' API deprecated in the versions response
We announced the deprecation of the v1 API on
the mailing list during the mitaka release. While we
continue to support it in code and run CI tests on it,
we should allow the consumers of the versions API to
acknowledge this change.

This patch does not remove the API. It only marks the
version as "DEPRECATED".

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-June/096517.html

Change-Id: If80bddb68a5b92b604ef582fe07eef72c47d6f2f
2017-01-27 14:12:39 +00:00
Jenkins
c1fc70b85c Merge "Removes unnecessary utf-8 coding" 2017-01-23 17:53:47 +00:00
Goutham Pacha Ravi
6274c20b78 [api-ref] Fix missing parameters in api-ref
The new version of api-ref raises warnings to indicate
missing parameters. Nothing like an amber alert around
feature freeze.

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-January/110606.html

Change-Id: Ieeb018ef4f42ddb8e4271048b385ae679392c59c
Closes-Bug: #1658494
2017-01-23 02:25:31 +00:00
ji-xuepeng
2eefafe5b4 Removes unnecessary utf-8 coding
TrivialFix

Change-Id: I672c1bae22dd066c80c6ef449e31cde664d0be1a
2017-01-22 21:20:55 +08:00
Goutham Pacha Ravi
64a73b1419 Refactor Access Rules APIs
- Pull up policy check to beginning of the APIs.
- Avoid making access rules changes when one or
  more instances of the share are in an invalid state.
- Add back the per rule share instance access status.
  This restoration provides better visibility for which
  rules were applied successfully.
- Remove 'updating' and 'updating_multiple' as valid
  states for the share instance access rules status.
- Deprecate the access rule state 'new' in favor of
  'queued_to_apply' and the share instance access rules
  status 'out_of_sync' in favor of 'syncing'.

In a new API micro-version:
- Allow access rule changes irrespective of the share's
   access_rules_status.
- Expose new access rule states and share's
  access_rules_status values.

Access rules for each share instance now transition
from 'queued_to_apply' to 'applying' to 'active' or 'error';
and from 'active', 'queued_to_apply', 'applying' or 'error'
to 'queued_to_deny' to 'denying' to 'deleted'.

APIImpact
DocImpact

Partially-implements: bp fix-and-improve-access-rules
Co-Authored-By: Mike Rooney <rooneym@netapp.com>
Change-Id: Ic25e63215b5ba723cbc8cab7c51789c698e76f28
2017-01-19 15:02:58 -05:00
Ha Van Tu
6df2483a7b [api-ref] Refactor share network documentation
This patch makes share network documentation be more readable and
maintainable.

Change-Id: I44adb4a3a4ffd3d2271ef23abfa2cead700ae77a
2017-01-18 12:14:06 +07:00
Clinton Knight
d4a379d083 Implement share revert to snapshot
This commit adds the ability for Manila to revert a
share to the latest available snapshot.

The feature is implemented in the LVM driver, for
testing purposes.

APIImpact
DocImpact
Co-Authored-By: Ben Swartzlander <ben@swartzlander.org>
Co-Authored-By: Andrew Kerr <andrew.kerr@netapp.com>
Implements: blueprint manila-share-revert-to-snapshot
Change-Id: Id497e13070e0003db2db951526a52de6c2182cca
2017-01-17 15:06:01 -05:00
Tom Barron
b213a25c44 Remove NovaNetworkPlugin
Nova network was deprecated in Newton and is no longer supported for
regular deployments in Ocata [1].

Complete the removal of nova network support from manila begun in [2]
by removing support for ''nova_net_id`` in the share networks API,
by removing the corresponding column from the share networks DB model,
and by removing the nova network plugins themselves.  Unit tests for
share network api views were refactored to remove redundancy while
extending coverage to the new microversion introduced with this patch
and maintaining full coverage of earlier microversions.

APIImpact
DocImpact
UpgradeImpact

Partially-implements: bp remove-nova-net-plugin

[1] http://docs.openstack.org/releasenotes/nova/unreleased.html
[2] I846b760fa7c01f7f86768399a2bfad9ced7e57cd

Change-Id: I8b9a559fbea61979f01737ed1dc272276c4f1269
2017-01-13 08:11:16 -05:00
Jenkins
600f9d5f8e Merge "Add the ability to check the tenant quota in detail" 2017-01-07 06:35:45 +00:00
Jenkins
860bf20430 Merge "[api-ref] Refactor share instance export locations API documentation" 2017-01-05 22:47:02 +00:00
Cao Xuan Hoang
a4c2cad1d4 Remove trailing backtick
This patch is removing a trailing backtick (`) from the
api-ref/source/services.inc document.

Change-Id: Ibb02536e02703e2463e0475c5c13e431e1ec048f
2017-01-04 13:40:52 +07:00
Ha Van Tu
4fc3524bf8 [api-ref] Refactor share instance export locations API documentation
This patch makes share instance export locations API documentation
more readable and maintainable.

Change-Id: I4b4771bbe9f2689162c84f085cae159f364ecb20
2017-01-03 09:11:39 +07:00
Jenkins
122446d63b Merge "[api-ref] Refactor share actions API documentation" 2016-12-29 17:47:25 +00:00
Ha Van Tu
46584eeec9 [api-ref] Refactor share actions API documentation
This patch makes share actions API documentation be more readable
and maintainable.

Change-Id: I388bdc4d9f22eda50fbede1106afebba6ceb355f
2016-12-28 14:24:16 +07:00
Ha Van Tu
a42c08e797 [api-ref] Refactor share export location API documentation
This patch make share export location documentation be readable
and maintainable.

Change-Id: I9a43ef525b8c16941df99fe54c0d5483dcb2ed4b
2016-12-28 12:18:24 +07:00
zhongjun
7275aafc9e Add the ability to check the tenant quota in detail
Now the quota-set API only returned single attribute
'limit', this change intends to add a new API
'quota-sets/{project_id}/detail' to retrieve more info
with attributes 'in_use', 'limit', 'reserved'.

APIImpact
Implements: blueprint admin-check-tenant-quota-usage
Depends-On: Ie0eb7d32b7b032ffdb7f7dd47f68841211e7d7a6
Change-Id: I499b099a3ba7704a2108cd15f80ff507e24b7cd0
2016-12-28 10:32:24 +08:00
zhongjun
d5643c75f5 Add share_type filter support to pool_list
Administrators intend to get the pool's information filtered
by share type(actually filtered by share_type's *extra_spec*)
more directly.
The blueprint is to add a filter key 'share_type' to cover
this situation.

APIImpact
Implements: blueprint pool-list-by-share-type
Change-Id: Ifd64bb84d03a02aa0a118cc42e1d1b373c439884
2016-12-09 09:59:34 +08:00
Jenkins
8ed0a25f36 Merge "[api-ref] Refactor Manila availability-zones API" 2016-12-07 17:10:32 +00:00
Ha Van Tu
6e906bacd9 [api-ref] Refactor Manila scheduler stats API
This patch makes the scheduler stats API reference more readable
and maintainable.

Change-Id: I78aeb7e273abc86922de2e69e4c6b0a2e75d0c1c
2016-11-29 10:19:37 +07:00
Jenkins
5328719185 Merge "[api-ref] Refactor Manila snapshot API" 2016-11-25 13:45:38 +00:00
melissaml
319f016fde Fix a typo in parameters.yaml
Removed redundant 'is'.

TrivialFix

Change-Id: Iae1e3c1914a0439b93db62e8c86e25c8b3980c15
2016-10-14 22:16:11 +08:00
Ha Van Tu
b09faaf43e [api-ref] Refactor Manila snapshot API
This patch makes the Manila snapshot API reference more readable
and maintainable.

Change-Id: If34bfb99852bcca61b65edc14ec98c859e995344
2016-10-09 15:00:53 -04:00
Jenkins
360be9607e Merge "[api-ref] Refactor Manila security service API" 2016-09-29 21:45:10 +00:00
Jenkins
a2b79e1d5f Merge "[api-ref] Remove temporary block in conf.py" 2016-09-29 11:00:53 +00:00
Ha Van Tu
9152425f2f [api-ref] Refactor Manila security service API
This patch make security service api reference to be more readable
and maintainable.

Change-Id: I802f09baee7dda91999983947aca8406a57d445e
2016-09-28 09:30:10 +07:00
Ha Van Tu
945aa1826f [api-ref] Refactor Manila availability-zones API
This patch makes availability-zones API be more readable and
maintainable.

Change-Id: I622b2470996b0e43cf9dcefdf72172759b3daec8
2016-09-23 02:31:10 +00:00
Ha Van Tu
02a0cb8b3e [api-ref] Refactor Manila quota set API
This patch refactors Manila quota set API to make it be readable
and maintainable.

Change-Id: I0a275b3ab4dc8e7ba5675562599bd853f03fa30e
2016-09-21 11:04:59 +00:00
Nguyen Phuong An
583aea4949 [api-ref] Remove temporary block in conf.py
The os-api-ref 1.0.0 is out. We can remove the support to older version
now.

Change-Id: I9974796c2e2ccab5d2f4f651d082632de040f3c4
Reference: Ia6245d502fde38cd4d63aa4a786b6296b22a37a1
2016-09-21 08:26:31 +00:00
Ha Van Tu
5e6eef7a60 [api-ref] Refactor limits and services API
This patch refactors limits and services API to make it clear to
understand and maintain.

Change-Id: I0e214f59e193f861e4959dfef951854bea530b7b
2016-09-15 11:02:08 +07:00
Ha Van Tu
0dc2fdc1da [api-ref] Refactor manila extension API
This patch refactors manila extension API to make it clear
to understand and maintain.

Change-Id: I35b8b135acc02238daf7c2fb9f42bf276806f7d8
2016-09-15 11:01:45 +07:00
Ha Van Tu
8eaf23982c [api-ref] Refactor consistency group API
This patch refactors consistency group API to make it clear to
understand and maintain.

Change-Id: I5b48f354cb32d2606e6eaf2c01c49a333921ff4f
2016-09-15 11:00:49 +07:00
Nguyen Phuong An
8118e24826 Fix typo in response status code
This patch fixes a typo error in response status code of
api-ref/source/quota-sets.inc

TrivialFix

Change-Id: I691c80b99b7d86278259fddff59d6aaf26d7bdd5
2016-09-09 10:04:58 +07:00
Ha Van Tu
24a160907f Config logABug feature for Manila api-ref
Currently, Manila api-ref is configured with logABug feature.
When users click "Report bug" button, it leads to "openstack-manuals"
which is default. We should change it to "manila".

Change-Id: I15d9ce4cc6f9648f49f6ad66de766aa55cab6cbb
2016-09-08 10:25:03 +07:00
Jenkins
addb65225d Merge "add access_key to share_access_map" 2016-08-24 17:32:36 +00:00
Ramana Raja
0d4f2ee4e0 add access_key to share_access_map
For backends with internal authentication system,
e.g. Ceph, that return ``access_key`` (credential) for
client identities that are granted share access:

* Retrieve ``access_key`` as return value of driver's
  update_access()

* Store ``access_key`` in ShareAccessMapping model

* Expose it in access_list API

APIImpact

DocImpact

Partially implements bp auth-access-keys

Co-Authored-By: John Spray <jspray@redhat.com>

Change-Id: I486064f117cf3001dba7735ca92a7d89aee3ce5b
2016-08-22 20:41:19 +05:30
Graham Hayes
8210bf5310 Get ready for os-api-ref sphinx theme change
Change-Id: I1c13e4d92d0629361affb5dcd8ae793b33b33c9b
2016-08-19 16:44:03 +01:00
Daniel Gonzalez
3e86e3deac Migrate API reference into tree
The API Documentation team has requires [1] that
projects maintain their api-reference in-tree and
build it to the developer.openstack.org website.

This version of the API reference uses os-api-ref
and compiles API documentation close to that of
the OpenStack compute service (nova).

Co-Authored-By: Goutham Pacha Ravi <gouthamr@netapp.com>

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html

Implements: bp move-manila-api-reference-in-tree
Change-Id: I67bb3354162d6e0e00fa2788edde864cc14920ee
2016-07-25 15:55:00 +00:00