Commit Graph

19 Commits

Author SHA1 Message Date
Valeriy Ponomaryov 0f97552757 Port share actions to core API
Changes:
- Register share actions API as core API.
- Remove extension code for share actions.
- Leave rename of share actions API 'put' data for future update which
  will be done with bump of microversion
  after port of all extensions to core API.

Partially implements bp ext-to-core

Change-Id: I7fef38c37ae539473b6e3d2a0758c336b2a7d33c
2015-11-09 13:55:12 +00:00
Igor Malinovskiy 36fae29ea5 Add share shrink API
Implement optional API for shrinking shares:
"manila shrink <share-id> <new-size>"

- Implement tenant-facing API for shrinking shares
- Add appropriate unit tests

Partially implements bp share-shrink-api

Change-Id: I48f8e05793a992b11fb180b0b4dbf43bcffb4229
2015-06-04 09:46:24 +03:00
Igor Malinovskiy f67bcf81ae Add share extend API
Implement API for extending shares similar to Cinder:
"manila extend <share-id> <new-size>"

- Implement tenant-facing API for extending shares
- Add appropriate unit tests

Partially implements bp share-extend-api

Change-Id: Ic63ecb1c2881ac9c8b59010efe3a37413f18f28d
2015-05-18 17:23:04 +03:00
Igor Malinovskiy a26824818f Remove Limited XML API Support from Manila
Remove the broken XML support presently available in Manila
in order to comply with the general direction among other
OpenStack projects to support JSON only.

Change-Id: Ibb542fa223f7f7d1bf95f3d1f568987ef839cd12
Closes-Bug: #1440782
2015-04-13 15:43:47 +03:00
Clinton Knight f23c482445 Manila access-allow API doesn't accept backslash
The access-allow API should accept backslash characters so
that one may enter a Windows domain user, such as MYDOMAIN\Administrator.
This must also be fixed in the client.

Change-Id: I955b67781d4d9361ab79389a8d3a1dc0159d2cd4
Closes-Bug: #1426099
2015-02-28 18:26:52 +00:00
Julia Varlamova c4b73508ec Add access levels for shares
Add new migration which adds 'access_level' column to ShareAccessMapping table.
Change model description for ShareAccessMapping - include new column.

Add an ability to pass 'access_level' param to 'allow_access' method in share API,
pass 'access_level' to driver interface.

Add 'access_level' to return value of 'access_get_all' method.

Add unit and tempest tests.

Implements bp level-of-access-for-shares

Change-Id: I6c295b66261489544fc343948b960e39ec870b5c
2015-01-29 10:56:15 +03:00
Andreas Jaeger 7b659fc4e0 Use oslo.i18n
oslo.i18n provides the i18n function that were provided by
oslo-incubator's gettextutils module

Import _ where needed, oslo.i18n deprecated the builtin method.

Closes-Bug: #1382187
Change-Id: I12aa1c725aa4bb52a9aa46e9c3d2b303839de48b
2014-10-19 19:21:03 +02:00
Deepak C Shetty 7251433609 Add support for cert based access type
This patch adds support for cert based access type in Manila.
It introduces a new 'access_type' called 'cert' in access-allow API.
'access_to' argument passed by the user is the certificate's CN
(common name) to which access is allowed by the backend.

Per the Manila IRC discussions, the cert based trust setup between
instances and backend is out-of-band to Manila. See the log @
http://eavesdrop.openstack.org/meetings/manila/2014/manila.2014-07-24-15.01.log.html
(15:27:19 onwards)

Partially-implements blueprint cert-based-access-type

Change-Id: Ib48430deccece66a740ce05471db70eaadf634b3
2014-09-02 06:13:25 +00:00
Valeriy Ponomaryov 1de1a187d5 Rename 'sid' to 'user' in access rules and sec services
Rename 'sid' (secure identifier) to 'user' for better understanding by user.
Changed parts:
- db entities
- db migration
- share access rule type
- security services
- tempest tests

Change-Id: I527064508f13bd4dc658746970c2606098199c1c
2014-08-15 13:29:40 +00:00
vponomaryov 4e5c1847e6 py3.x: Use six.text_type() instead of unicode()
Python 3 doesn't support unicode(), use six.text_type instead.
Partial-Bug: #1284677
Partially-implements blueprint py3-compatibility

Change-Id: I5f66ce70e838fedc955f5284c3c480bc37420107
2014-07-25 06:02:48 +00:00
Christian Berendt 799319baab Enabled hacking checks H305 and H307
* H305  imports not grouped correctly
* H307  like imports should be grouped together

Change-Id: I9dc5f995ea07d7c319d944e847a9d1c126937240
2014-07-20 18:48:31 +02:00
Dirk Mueller f1f0cb64b2 Use Python 3.x compatible except construct
except x,y: can be rewritten as except x as y: which
works with all Python versions >= 2.6

Change-Id: I3fb2dd9c0e1c292accffc934e45983cb9e12b171
2014-05-23 00:35:36 +02:00
Andrei V. Ostapenko b103503d07 Fixes handling of duplicate share access rule creation
Closes: bug 1274163
Change-Id: Id6d649dcf03c5be9ce6fd7204dfa725d59582412
2014-01-29 18:22:59 +02:00
Andrei V. Ostapenko fe8acf0ef6 Adds validation of access rules
Partially implements: bp improve-acl-functionality
Change-Id: I46d3edcadf33afef6fac242284dc6d61b4712bc1
2013-12-20 17:45:39 +02:00
119Vik 14301ca01e Added XML serialization for access actions
Resources related to share access management hasn't xml
serrialisation so it returns incorrect response for xml
requests. XML temptates constructors added to
share_actions.py ato solve this problem

Change-Id: Ie76e768fc696c15dac4f18757ffcfe84335e04ce
2013-09-25 05:03:14 -04:00
Yulia Portnova 27b3074627 fixed pep8 2013-09-18 15:30:22 +03:00
Yulia Portnova 69f3128dbc Access create empty boy fix 2013-09-12 15:48:14 +03:00
Yulia Portnova 1a253971c2 Removed v2 api.
Moved shares and snapshots from contrib to v1
2013-09-10 15:51:26 +03:00
Yulia Portnova dc4ce932ed Renamed cinder to manila.
Fixed setup.py, fixed bin scripts.
2013-09-02 09:59:07 +03:00