23 Commits

Author SHA1 Message Date
Felipe Rodrigues
edf064a335 Add commands for share server migration
Implements the commands for performing the share server migration.
They are: share-server-migration-reset-task-state,
share-server-migration-complete, share-server-migration-cancel,
share-server-migration-start, share-server-migration-check
and share-server-migration-get-progress.

Co-Authored-By: Daniel Tapia <danielarthurt@gmail.com>
Co-Authored-By: Andre Beltrami <debeltrami@gmail.com>
Co-Authored-By: Douglas Viroel <viroel@gmail.com>

Change-Id: Id829a375d828a4808306fd1a42bc7548721feb19
Partially-implements: bp share-server-migration
Depends-On: Ic0751027d2c3f1ef7ab0f7836baff3070a230cfd
Depends-On: I46a0cee0a4625d950f02fa7a5bf612de926451b5
2020-09-10 07:40:32 -03:00
silvacarloss
b7d0d0d128 Add CLI commands for Share Networks with multiple Subnets
- Added CLI commands for subnets creation, deletion and exhibition.
- Updated commands for share server manage and added a new
  parameter to share server list.

API microverion has been bumped to 2.51.

Closes-Bug: #1588144
Partially-implements: bp share-network-multiple-subnets
Change-Id: I55c85285cbdc9aaf2c0bab2f12477212b32b799a
Depends-On: Id8814a8b26c9b9dcb1fe71d0d7e9b79e8b8a9210
Co-Authored-By: lseki <luciomitsuru.seki@fit-tecnologia.org.br>
2019-09-12 22:36:36 -03:00
Rodrigo Barbieri
07564879ae Add CLI commands for Manage-Unmanage of Share Servers
- Added CLI commands for managing and unmanaging share servers.
- Updated CLI command for managing shares to accept
  share_server_id parameter.

API microversion has been bumped to 2.49.

Partially-implements: bp manage-unmanage-with-share-servers
Change-Id: If1403079b20471645bf869da74bf4db37d59811c
2019-03-06 14:41:47 -05:00
Goutham Pacha Ravi
359a96ba58 Add support for replica export location APIs
- Add share_replica_export_locations module to the
  manilaclient SDK.
- Add 'share-replica-export-location-list' and
  'share-replica-export-location-show' commands to
  the manilaclient shell module.
- Add export_locations attr to 'share-replica-show'
  command in the shell module.

Change-Id: I0edb0d56f5c8f439932c18d510aad0457112b75e
Depends-On: https://review.openstack.org/#/c/628069/
Implements: bp export-locations-az
2019-01-07 11:40:21 -08:00
Vladyslav Drok
66ef564036 Mark functional tests passwords as secrets
Just in case these values are being logged somewhere.

Change-Id: I6126b5b362dd2b89292d348ae58639d087d5a63b
2018-04-25 14:27:43 +00:00
tpsilva
c0fdf827b9 Add mountable snapshots support to manila client
This patch adds support to manila client for the mountable snapshots
feature.

Co-Authored-By: Miriam Yumi <miriam.peixoto@fit-tecnologia.org.br>
Co-Authored-By: Alyson Rosa <alyson.rosa@fit-tecnologia.org.br>

Implements: blueprint manila-mountable-snapshots
Change-Id: I785a784bcae7cf3bcef4fa6c64ba28ee58328389
Depends-On: I65f398a05f82eef31ec317d70dfa101483b44b30
2017-01-24 20:30:57 -02:00
Rodrigo Barbieri
ff9963a712 Implement Share Migration Ocata improvements
- Added 'preserve-snapshots' parameter
- Driver-assisted parameters are now mandatory (thus
compatibility with previous versions is broken)
- Updated parameter descriptions

Change-Id: Icfdefdee88040464d19ab95dba50b88c8f90a1d3
Depends-On: I764b389816319ed0ac5178cadbf809cb632035b4
Implements: blueprint ocata-migration-improvements
2017-01-21 16:36:20 +00:00
vponomaryov
6f8f7d8c94 Use dummy driver in functional tests CI job
For testing of manilaclient we need just some backend and
not some specific one. So, use dummy driver to avoid
possible real-driver-dependent problems in manilaclient functional
tests CI job.
Also fix NameError in functional tests that appears/reproducible
with such switch.

Change-Id: I14f3faf4c88eaca8d1cdec006fd1b4403dace66d
Closes-Bug: #1614981
Closes-Bug: #1631441
2016-10-12 20:02:35 +03:00
Alexey Ovchinnikov
1c35a0a269 Add support of Identity API V3 in functional tests
and use it in CI job.

Co-Authored-By: Alexey Ovchinnikov <aovchinnikov@mirantis.com>
Co-Authored-By: Valeriy Ponomaryov <vponomaryov@mirantis.com>

Change-Id: Ic5c495e8b712370a30da31c57c7ea1565c46537e
Closes-Bug: #1516562
2016-10-10 16:56:28 +03:00
Jenkins
62b9c38f58 Merge "Fix share-server-delete command" 2016-10-07 14:23:46 +00:00
Valeriy Ponomaryov
3b8f24ea81 Fix share-server-delete command
and add functional tests for it.
Which can be enabled/disabled using
'run_share_servers_tests' config option.

Change-Id: I07c5b03d576b41a61867a90d828a112c8a3f4f4b
Closes-Bug: #1629317
2016-10-06 15:05:29 +03:00
xiaozhuangqing
fb9be544a5 Config: no need to set default=None
By default oslo.cfg sets the default values as None, there is
no need to explicitly do this.

Change-Id: If2ff71d5339c7a8b3dbdcd1111606af460e7865c
2016-09-26 14:25:21 +08:00
zhongjun
5de1ef3844 Add snapshot instances admin CLIs
Support new API entry points for share snapshot instances:
- share-snapshot-instance-list
- share-snapshot-instance-show
- share-snapshot-instance-reset-status

Implements: blueprint snapshot-instances
Change-Id: Ica1e81012f19926e0f1ba9cd6d8eecc5fbbf40b5
2016-08-14 06:16:58 +00:00
Jacek Tomasiak
3639d73061 Fixed description of auth_url config parameter
The description was the same as for admin_auth_url and stated that
it should be set to admin endpoint URL while public one should be
used instead.

Change-Id: I2b12b7436aa535212e65deae25e82da842d3b3f7
Closes-Bug: #1554587
2016-03-08 16:54:12 +01:00
John Spray
6bad71c9e6 Add 'cephx' authentication type
This duplicates the validation that is
done server side, as is the case for
the existing auth types. This auth type
is supported for cephfs protocol.

Also a unit test that was unnecessarily
testing a helper text was removed.

Co-Authored-By: Ramana Raja <rraja@redhat.com>

Change-Id: If33e6d847d3c1e6a72ce334b645b45538576058d
2016-03-04 01:05:14 +05:30
Vincent Untz
f132c48648 Fix functional tests to respect insecure SSL option
People might want to run functional tests with SSL, but without
certificates that can be verified.

Change-Id: Id9151178d8c5e62247d55058a3f78fe17075aebe
Closes-Bug: #1545697
2016-02-16 08:18:29 +01:00
Valeriy Ponomaryov
28263b936d Add support of new API URLs after port of extensions to core API
Make manilaclient support API URLs and actions rename after port of
extensions to core API.

Depends-on: I82f00114db985b4b3bf4db0a64191559508ac600

Implements bp ext-to-core

Change-Id: I44f71ca094f230f3c22ade241884a1b23865c81a
2015-11-17 19:37:56 +02:00
Julia Varlamova
e919065a2e Add functional tests for access rules
Add read-write tests for access_rule.

Add functions 'get_access', 'list_access', 'access_allow',
'access_deny' and 'wait_for_access_rule_status' to
manilaclient.tests.functional.client.ManilaCLIClient.

Partially-Implements bp rw-functional-tests

Change-Id: Id1a5698a124bad8d68e093faa32b1ad5cccd67c7
2015-07-16 06:59:53 -04:00
Valeriy Ponomaryov
ada9825bf6 Add rw functional tests for shares
Add base client methods for shares and use them in rw functional tests.

Partially implements bp rw-functional-tests

Change-Id: Ibc611ed5c54d2635f36018f3590ca56f4f2eb7dd
2015-06-02 12:46:34 +03:00
Doug Hellmann
25d9af18bc Drop use of 'oslo' namespace package
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: Ib86c36f81f6fdbee64d88dd0b1d126bcc16649ac
2015-05-06 19:35:22 +00:00
Valeriy Ponomaryov
4243d8731b Add rw functional tests for public share types
Add base client methods for share types and use them in rw functional tests.
This commit covers case of 'public' share types.

Partially implements bp rw-functional-tests

Change-Id: Ia35dbe7f42ada319853642b893bc5c2fa2db4175
2015-04-27 16:31:38 +00:00
vponomaryov
93fb5977ae Add gate hook scripts for functional tests
Add gate hook to contrib/ci dir to be able to configure functional tests job.

pre_test_hook just imports devstack extension for manila project to the
devstack project.
post_test_hook configures config file for manilaclient based on devstack
installation and runs related tox job.

Also fix default config file path within config module.

Partially implements bp functional-tests

Change-Id: Ibf90af083b9a8e0ec646e1bff676893528ff1914
2014-11-15 13:54:45 +02:00
vponomaryov
8760b9cde9 Implement functionality for functional tests using tempest-lib
Add generic functionality for functional tests using tempest-lib and
create related tox jobs.

Run of functional tests requires:

1) Access to deployed OpenStack with running, at least, Keystone and Manila
services.

2) Defined config options to be able to execute requests to Manila,
Manilaclient should know auth related information like username, password,
tenant_name, etc...

3) Run of functional tests searches for following optional env vars to be set:
'OS_MANILACLIENT_CONFIG_FILE' - name of conf file, default 'manilaclient.conf'
'OS_MANILACLIENT_CONFIG_DIR' - path to conf dir,
  default '%project_dir%/etc/manilaclient'
'OS_MANILA_EXEC_DIR' - path to dir with manilaclient executable,
  default '%project_dir%/.tox/functional/bin'

4) Config sample can be generated by following new tox job:
$ tox -egenconfig
it will create sample in
"%project_dir%/etc/manilaclient/manilaclient.conf.sample"
then just rename it removing ".sample" part and set option values.

To run functional tests use following new tox job:
$ tox -efunctional

To run only some specific tests use following:
$ tox -efunctional manilaclient.tests.functional.foo.bar

Partially implements blueprint functional-tests

Change-Id: I95a4e441d2143e51c54ec4fb47a069a91ed77dd7
2014-11-12 13:05:24 +02:00