Commit Graph

14 Commits

Author SHA1 Message Date
Anthony Lee a6d7e90714 Refactor HP 3PAR share driver to now be HPE
This patch refactors the HP share driver to now be
the HPE share driver.

This is being done because the company responsible for
this driver is now Hewlett Packard Enterprise (HPE).

The driver is now located in the manila/share/drivers/hpe
folder.

DocImpact
Implements: blueprint rebrand-hp-3par-share-driver
Change-Id: I36efc04fa6da088ccb06070d8cd4fe29269cd7ca
2015-11-16 12:56:36 -08:00
Mark Sturdevant 7537951be6 HP 3PAR driver handles shares servers
HP 3PAR driver can use driver_handle_share_servers=True
mode to automatically setup the FSIP using the IP
address, subnet and VLAN tag obtained from the share
network.

The driver_handles_share_servers=False is still supported
with a pre-configured IP address.

Implements Blueprint: hp3par-share-server-support

Change-Id: Iae63a22923a5d7622a8810629071f5ea9823b0ed
2015-08-31 12:31:02 -07:00
Jenkins 9b77e13302 Merge "HP 3PAR add more info to the share comment" 2015-08-27 06:41:11 +00:00
Valeriy Ponomaryov af6814f9ca Add possibility to filter back ends by snapshot support
On last midcycle meetup was decided to make snapshots optional feature.

Features:
 - Add new boolean capability 'snapshot_support' to base share driver
   so every existing share driver will inherit it. Make value of it be
   calculated from the fact of redefinition of three main driver
   methods for snapshots 'create_snapshot', 'delete_snapshot' and
   'create_share_from_snapshot'.
- Set extra spec 'snapshot_support' with share type creation by default
  to 'True'
- Restrict deletion of extra spec 'snapshot_support' that is expected
  to exist
- Allow to redefine new extra spec 'snapshot_support'
- Restrict API 'snapshot create' for share created with
  share type that has extra spec 'snapshot_support' equal to 'False'.
- Add migration where new extra spec 'snapshot_support' is added
  to all share types that do not have it yet.

Partially implements bp snapshots-optional
Change-Id: I069d9e911c7d7a708fa518b38ed10572a45e5f42
2015-08-26 23:05:37 +03:00
Mark Sturdevant d7b1fb9b85 HP 3PAR add more info to the share comment
Put host and original name in comment to help
troubleshoot and clean up test systems.

Implements blueprint: hp3par-share-comment

Change-Id: Ibdbb561553086eeb6da4b94254b1d643b39b767a
2015-08-25 13:23:03 -07:00
Mark Sturdevant 512e891f7b HP 3PAR reports capabilities
Report dedupe, thin_provisioning and hp3par_flash_cache
capabilities for 3PAR. Also report provisioned_capacity_gb
when thin_provisioning is True.

Implements Blueprint: hp3par-capabilities

Change-Id: I9dcba1bff5eba21b9b4b8cd4ed78beab75c2a8b6
2015-08-24 17:05:06 -07:00
Mark Sturdevant 8895ea2254 HP 3PAR uses scoped extra-specs to influence share creation options
Add support for share type extra-specs that can be used to influence
share creation options that are specific to 3PAR. These extra-specs
are scoped (use 'hp_3par:' prefix).

CIFS extra-specs include 'smb_abe' (access based enumeration),
'smb_cache' and 'smb_ca' (continuous availability). 'smb_ca' is
ignored until hp3parclient > 3.2.1.

The NFS extra-spec is 'nfs_options'. This value is a comma-separated
string as needed for the 3PAR createfshare -options value in the CLI.
The following values are not allowed because the driver uses
specific settings (for now): (no_)root_squash, (in)secure.
The following values are not allowed per HP 3PAR CLI support
requirements: no_subtree_check, fsid.
'rw' and 'ro' are not allowed because read-only access should be
controlled by Manila and not by extra-specs.
Additional value validation is left to the 3PAR CLI to handle.

Implements Blueprint: hp3par-extra-specs
Change-Id: Ia311cae718bf3998346b068aebb08a64924195de
2015-07-16 10:32:27 -07:00
Alex O'Rourke 2b7c63487d HP 3PAR driver config has unused username/password
Removed all references to hp3par_username and hp3par_password in the
code and documentation as it is currently not used.
Closes-Bug: 1463942

Change-Id: I4dd459077fdeb3387f08cfc0ea08948685e6f4cb
2015-06-19 09:57:18 -07:00
Jenkins d157756bcb Merge "Share_server-pool mapping" 2015-06-16 17:19:44 +00:00
Mark Sturdevant 7c822401f6 HP 3PAR Add version checking and logging
Check for the minimum supported hp3parclient. The older ones are
not supported and this minimum fixes a bug.  Log the hp3parclient,
3PAR WSAPI and driver code versions as requested by support.

Change-Id: I32cff4c5d9f71a9d110a9b08f73e064c178c796a
Closes-Bug: #1463552
2015-06-15 11:13:10 -07:00
Julia Varlamova abd5a75da2 Share_server-pool mapping
Manila scheduler needs information about relationship between
pools and share_servers to make Manila scheduling decisions smarter,
as it would be based on pool capacity/capability.

Add new share driver method called 'get_share_server_pools'
which takes a share server and returns a list of pools.

Share manager calls that method for every share server on every stats update
and adds mapping to share_stats.

Add new function 'share_server_get_all_by_host' to DB API.

Change-Id: I41041cc247da5e25383c2f3f827d7d96b4347427
2015-06-15 12:43:11 +03:00
Mark Sturdevant 0ca5d97f94 HP3PAR driver log the SHA1 for driver and mediator correctly
The HP3PAR driver is logging this information for support, but
it was calculating it incorrectly.

Change-Id: I8c325298b833b10d681d0082d12fe1a37dba4424
Closes-Bug: #1431559
2015-03-12 20:48:13 -07:00
Mark Sturdevant b3aee0a201 HP 3PAR use one filestore per tenant
Using one filestore per tenant allows more shares to be
created on an array.  The original behavior of one filestore
per share can still be used with the hp3par_fstore_per_share=True
configuration (default is False).

Change-Id: I17a8ee138eef0157819ea33c74a43c30ee644817
Implements: blueprint hp3par-filestore-per-tenant
2015-03-02 15:02:01 -08:00
Mark Sturdevant 2e709aa87d HP 3PAR Driver for Manila
Implement share driver for HP 3PAR arrays with File Persona capabilities.

NFS and CIFS shares can be created and deleted.
Snapshots can be created and deleted.
Read-only shares can be created from snapshots.

Does not support handling of share servers.

A pre-assigned IP address and a pre-configured VFS is used
instead of share networks.  This is done by setting 'hp3par_share_ip_address'
to the desired IP address in the manila.conf.

DocImpact

Change-Id: I90e19a1d34d568eba6178ca3dbb605f37c598439
Implements: blueprint hp3par-manila-driver
2015-02-07 02:10:26 -08:00