Commit Graph

33 Commits

Author SHA1 Message Date
Manish Honap 6431b86f19 Add config option reserved_share_extend_percentage
'reserved_share_extend_percentage' backend config option allows Manila
to consider different reservation percentage for share extend
operation. With this option, under existing limit of
'reserved_share_percentage', we do not want user to create new share if
limit is hit, but allow user to extend existing share.

DocImpact

Closes-Bug: #1961087
Change-Id: I000a7f530569ff80495b1df62a91981dc5865023
2022-06-14 23:08:31 +05:30
Zuul b50a0bb9de Merge "Add config option reserved_share_from_snapshot_percentage." 2021-08-30 19:46:52 +00:00
kpdev 6ca10003a9 Add config option reserved_share_from_snapshot_percentage.
This config option allows different value for reservation percentage,
mostly useful on the platforms, where shares can only be created from
the snapshot on the host where snapshot was taken. The lower value of
this config option against existing (reserved_share_percentage) allows
to create shares from the snapshot on the same host up to a higher
threshold even though non-snapshot/regular share create fails.
In case this config option is not set, the shares created from snapshot
will use reservation percentage value set in 'reserved_share_percentage'.
This will be useful for users who want to keep same reservation percentage
for both non-snapshot/regular and snapshot shares.

DocImpact

Closes-Bug: #1938060
Change-Id: I390da933fe92875e3c7ee40709eacacc030278dc
2021-08-27 19:10:36 +02:00
Sam Wan 5bd44e0be3 Change cifs value from string to list for Dell manila drivers
Dell manila drivers use string as value for 'cifs' in
dhss_mandatory_security_service_association.
This fix changes it to a list.

Change-Id: I0c64e574301baf2a41a475af3b3848cbec8d495f
Closes-Bug: #1940072
2021-08-18 09:17:12 +08:00
kpdev 18668d2465 Early validate for CIFS without security service.
To create a share with protocol CIFS it is mandatory to add a security
service to the share network beforehand. If this is forgotten the share
ends up in error. Validate the security service association based on
share protocol from given driver. Raise invalid request exception if
needed association between share_network and security_service is
missing for given driver e.g. ONTAP.

DocImpact

Closes-Bug: #1900752
Change-Id: Ib7e9850e6439ee5d04f826d129afb1ab06950ce7
2021-08-05 22:44:55 +02:00
Tom Barron 5af3b8e68b Remove deprecated config and auth
Remove manila configuration options
and auth classes that were deprecated
before the Ussuri release.

Change-Id: I148225926cd249a0dd8d1f8c02b22ed06487f405
2021-04-26 11:53:58 -04:00
Sam Wan 53f756d065 Fix wrong capacity in pool_stat for DellEMC manila drivers.
DellEMC manila drivers have bugs in returning capacity in pool_stat.
The current powermax/vnx manila return size in MB and unity manila
returns size in bytes.

Change-Id: I1a2c28548d02eee6632313a41a5c4d8ab6ad9532
Closes-bug: #1890372
Closes-bug: #1890375
Closes-bug: #1890376
2020-08-07 02:37:35 -04:00
Yong Huang 47b90fa8fb [Unity]: Failed to enabled ACE for share
It is no need to enable ACE when creating CIFS share, so
remove this process.

Change-Id: Id9d248857c9a02eca486185d41b1fc22520d0919
Closes-bug: #1841035
2020-05-25 14:23:30 +08:00
Yong Huang a5adb0bd11 [Unity] Implements default filter function
Implements the default filter function for Unity driver, if the
share size is smaller than 3GB, will not schedule the share
creation to Unity backend.

Change-Id: Iebb5063d4e1c4c2f5ddce0d5000b7d51dcb0605b
Closes-bug: #1652379
2020-04-30 14:58:39 +08:00
Zuul ba57e90d45 Merge "Create share from snapshot in another pool or backend" 2020-04-09 21:10:13 +00:00
Douglas Viroel 6c47b193b0 Create share from snapshot in another pool or backend
This patch enables the creation of a share from snapshot
specifying another pool or backend. In the scheduler, a
new filter and weigher were implemented in order to consider
this operation if the backend supports it. Also, a new
field called 'progress' was added in the share and share
instance. The 'progress' field indicates the status
of the operation create share from snapshot (in percentage).
Finally, a new periodic task was added in order to constantly
check the share status.

Partially-implements: bp create-share-from-snapshot-in-another-pool-or-backend

DOCImpact
Change-Id: Iab13a0961eb4a387a502246e5d4b79bc9046e04b
Co-authored-by: carloss <ces.eduardo98@gmail.com>
Co-authored-by: dviroel <viroel@gmail.com>
2020-04-09 11:15:22 -03:00
dingd 252a7e8118 [Unity] Manage/unmanage share server/share/snap
1. Try parse share_backend_id from export path in case
it is managed share.

2. Try to take snapshot id from 'provider_location' in case
this is managed snapshot

3. Try to get share server name from property 'identifier'
first in case this is managed share server

4. Add property 'provider_location' when creating snapshot

Implements: blueprint emc-unity-manage-unmange

Change-Id: I676475d0500ecce31a1a863926accec8585ac83a
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-04-08 16:02:12 -07:00
Yong Huang 0103c3aa92 [Unity]: Failed to delete cifs share if wrong access set
If wrong access was set, CIFS share won't be able to delete.

Change-Id: Ie1c47dcbd53f7f49d9a8669e9912bb88abd6ac30
Closes-bug: #1845452
2020-01-21 14:53:09 +08:00
dingd 923edff726 Fix [Unity] verification and convert mgmt ipv6
The IPv6 format need change to [ipv6]

Change-Id: Ic0fd36a4f6f71adbd16b54e074efcd3541ca5cf3
Closes-bug: #1845135
2019-09-24 10:17:39 +00:00
dingd 8d26a34cd1 [Unity] Driver supports the mode that does not create and destory share servers (DHSS=False)
Support 'driver_handles_share_servers = False' in manila.conf.
In such mode, need set unity_share_server in manila.conf, driver
will use this NAS server for share creation.

Change-Id: Iebc30d289fdb9f250e4951257313d630faa8bdf7
2019-09-05 04:01:33 +00:00
Tom Barron 1b8c19bf88 Suppress pylint warnings from dell_emc drivers
The dell_emc driver imports a library that doesn't ship
with OpenStack so suppress the pylint warnings about not being
able to import it.

Change-Id: I0ecb72d85f655a01567a22b9d45b1815e96e3245
2019-02-19 06:34:12 -05:00
dingd a6e1746a2f [Unity] Shrink share in Unity driver.
Change-Id: Iaa29088456e4dd46039511a2bf8bbf789ddd6e7f
2019-02-14 05:07:05 +00:00
Yong Huang e4156ddb08 [Unity] Revert to snapshot support
Implement revert to snapshot support for Dell EMC Unity driver.

Change-Id: I3a4da4a506ae4c2dbcd97207121ce19ecfb98043
Implements: unity-revert-to-snapshot
2019-01-16 15:20:47 -05:00
Yong Huang f96b9d8fcc [Manila Unity] Set unity_server_meta_pool option as required
Change-Id: Ie87b10d4199ac775adba20f645f56650bbdea301
Closes-bug: #1765580
2018-04-24 10:14:17 +08:00
Che, Roger eb65711063 Implement IPv6 support for Manila Dell EMC Unity driver
Major changes:
  * Support to create/delete/extend/access NFS and CIFS share/snapshot
    in the IPv6 network which created by Neutron
  * Support to connect Unity management interface using IPv6 address

Change-Id: I590d569c6fe1a0f8b146bec9c74513269b8358f4
Implements: blueprint unity-manila-ipv6-support
2018-01-19 11:12:45 +08:00
Jenkins de2ad84bf0 Merge "VMAX VNX Manila - Refactor VMAX and VNX to use common code" 2017-07-14 13:58:30 +00:00
Helen Walsh 3898748433 VMAX VNX Manila - Refactor VMAX and VNX to use common code
A large portion of VMAX and VNX manila is common code.
Refactoring for neatness and maintainability

Change-Id: Ib74feeb0e01df9cb1e9d51b4897675562986b7f6
Closes-Bug: #1688605
2017-07-12 10:29:24 +01:00
Ryan Liang ee32ed6a57 Unity: unexpected data in share from snapshot
The share created from snapshot had inconsistent data with the snapshot,
but consistent with the original share. Because the snapshot was
created on wrong `storage resource`.

Change-Id: Ia135c93bd9eedaba549426ea9233a90767de5d46
Closes-bug: 1701458
2017-07-04 10:35:14 +08:00
yfzhao 059fae0ed5 Remove log translations in share and share_group 4/5
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.
This is the 4/5 commit.
Old commit will be abandoned: https://review.openstack.org/#/c/447822/

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ia46e9dc4953c788274f5c9b763b2fed96c28d60e
Depends-On: I9fd264a443c634465b8548067f86ac14c1a51faa
Partial-Bug: #1674542
2017-03-31 10:20:11 +08:00
Tina f07e09cbb8 [Dell EMC Unity] Create with user capacity
The unity driver is creating the file system with allocated capacity
which caused the usable space is less then the size specified by user.
This patch changed the driver to create file system with user capacity.

Besides, change the version to 3.0.0 for Pike release.

Closes-Bug: 1674882
Change-Id: I2acf294d45662fd91a153fcd1f76202c3ad10132
2017-03-25 14:24:55 +00:00
Tina Tang c90515d64e [Unity driver] VLAN enhancement
The enhancement includes:
1. Creates tenant for each vlan on the unity system. So that the nas
server in different vlan will have isolated IP address space.
2. Select the appropriate port on the system to create interface based
on MTU.
3. Remove the option unity_server_container (the old
emc_nas_server_container option) to enable the storage processors load
balance and the auto-selection of ports (by mtu).

DocImpact
Change-Id: Ic1140112f8cfbed7c89d5f66e6bee0c22d64b3ed
Closes-Bug: 1649458
2017-01-18 02:06:38 +00:00
Jenkins 966b1621d3 Merge "Unity/VNX Driver: Rename driver options" 2017-01-10 10:35:37 +00:00
Jenkins d1ef0f2ce7 Merge "Trivial fix LOG.exception issues" 2017-01-05 17:07:57 +00:00
Ryan Liang 01391527ed Unity/VNX Driver: Rename driver options
- Never initialize the log by passing it in to `load_plugin`. Unity and VNX
  driver plugins initialize it in their implementation.
- Move plugins specific options from framework to Unity and VNX plugins.
- Rename driver options for Unity/VNX, the old ones are deprecated:
  emc_nas_pool_names -> unity_share_data_pools/vnx_share_data_pools,
  emc_nas_server_pool -> unity_server_meta_pool,
  emc_interface_ports -> unity_ethernet_ports/vnx_ethernet_ports,
  emc_nas_server_container -> unity_server_container/vnx_server_container.

DocImpact
Closes-Bug: 1652710
Change-Id: I8f1404de8dea9eeb09f1e5f6fc2538cefb0d63d9
2017-01-05 10:42:29 +08:00
zhongjun2 f775c81c89 Trivial fix LOG.exception issues
Remove redundant 'error' parameter in LOG.exception,
and replace some LOG.error with LOG.exception.

Change-Id: I46c14014c9dc38da9ea3b8ae98c9bd2aafe478d7
2016-12-21 20:49:51 +08:00
Tina Tang bf9adef776 [Dell EMC Unity] Support create share smaller than 3 GB
The minimum file system on Unity is 3 GB. This patch changes
driver to create 3 GB underlying file system for shares
smaller than 3 GB.

DocImpact
Change-Id: Ida6ad9ad7e752c25b53390f0fee327c594e03f9f
Closes-Bug: 1648316
2016-12-19 09:39:28 +00:00
Tina Tang c517667298 Change network allocation of Unity driver to 1
One IP port is enough for share server created on Unity system.
This patch change the IP allocation in Unity driver from 2 to 1.

Change-Id: I3e8ea3f5fe1d3e713239d5c0fb19733abc97f5bd
Closes-Bug: 1648328
2016-12-12 03:22:58 +00:00
xing-yang d9be8fa62b Move EMC drivers to dell_emc folder
This patch moves EMC drivers under dell_emc folder and
changes vendor name to "Dell EMC".

The base driver remains as EMCShareDriver.

DocImpact
UpgradeImpact
Implements-blueprint: move-emc-driver-to-dell-emc-folder
Change-Id: I799c7fcb59fbe887045fe81beb1e257586ba2f0e
2016-11-14 20:34:26 -05:00