Conditionally Import Parakimo
Separate SSH functions into ssh_utils.py for safe conditional import.
Change-Id: Ia1a3ee69bef76b52e4e6df1e73488c018ac0f3c9
Python2 is no longer supported, so in this patch
set we remove the usage of the six (py2 and py3
compatibility library) in favor of py3 syntax.
Change-Id: I3ddfad568a1b578bee23a6d1a96de9551e336bb4
The first argument of assertFalse should not be False,
otherwise the assertFalse will be useless and always pass.
Change-Id: I3b6303ff3d2fb9b5fee1a8d73af4e5819fadde76
Please read spec for design detail [1].
Support IPv6 in IP drivers, networks and share
type extra specs.
Co-Authored-By: TommyLikeHu(tommylikehu@gmail.com)
Co-Authored-By: Ben Swartzlander <ben@swartzlander.org>
[1] f7202a6cfe32a057f752a4e393f848f8a0211c36
DocImpact
Partial-Implements: blueprint support-ipv6-access
Change-Id: I96d3389262e9829b8b4344870cdf5c76abd22828
QoS is a common attribute, so add the QoS
capability in common capabilities doc.
This is a simple first step towards what the
blueprints proposes.
Partially implements: bp manila-support-qos
Change-Id: I377bf0abcc62239c9a1a5ee5c28c336b2b6c410a
The usage of assertEqual(True/False, ***) should be changed
to a meaningful format of assertTrue/False(***).
This patch fixes the same in Manila.
Change-Id: I0623c17a939e5175c15986dc7b6b64114c346c78
Closes-Bug: #1512207
The extend_share is in Manila core, we can support the new API in
the HDFS drivers. This patch adds methods to the driver along with
its unit tests, and updates related docs.
Implements: blueprint hdfs-native-extend-share
Change-Id: Ia81291eda49dc20c3318f71c51d36682d2aae742
1. HDFS do not support "-r" option when copy data
2. only un-empty directories can be copied
Change-Id: I525556842191be6ca273293457327d3d3480832d
Closes-Bug: 1494568
No longer to locate hdfs command.
Assume the ssh user has the authority to launch hdfs command.
And the user must add hdfs in default PATH manually.
Change-Id: Ia5d118a49ecea092848796067ae48dbead83c40e
Closes-Bug: #1481568
A complete proposal is like below steps:
1. Assume the HDFS user in manila.conf has the authority to launch hdfs command.
2. Set run_as_root to False if there is no argument by default, all the cases in
Manila HDFS Driver don't need be a root to run hdfs command.
3. If root is required, please deliver run_as_root parameter and set it as True
Change-Id: I310713c3c1b74ff9990832f61e777cf4c12696fe
Closes-Bug: #1481567
- Remove passing DB reference to drivers in __init__() method
- Remove db reference from Generic driver and service_instance
- Remove db reference from Netapp share driver
- Remove db reference from Glusterfs share driver
- Remove db reference from Glusterfs_Native share driver
- Remove db reference from Quobyte share driver
- Remove db reference from IBM GPFS driver
- Remove db reference from HDS_SOP driver
- Remove db reference from HDFSNative driver
- Remove db reference from fake driver
- Remove db reference from unit tests.
Change-Id: I74a636a8897caa6fc4af833c1568471fe1cb0987
Add basic support for hdfs native protocol exports.
A manila share in this driver is a sub-dir in hdfs root dir.
Instances talk directly to the hdfs backend with 'hdfs' protocol.
Access to the share is allowed by user based access type, which
is aligned with HDFS ACLs to support access control of multiple
users and groups.
Implements blueprint hdfs-driver
Change-Id: Id9bd391d829e11d332b03c2245691ea42fc30bcc