d4e86c31c78f0b7a10a8b78b2f86eafef9492ff2
Commit Graph

950 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Nahim Alves de Souza
4246d0b9fe [RBAC] Tests for Share Instance Export Locations
The tests validate policy of share instance export locations
actions for admin, member and reader users in a project scope.
Co-Authored-By: Renan Vitor <renanpiranguinho@gmail.com>
Change-Id: I5996a1fb5365e80acc3d1cb5418a62fd60eae4b2
2023年05月11日 13:01:45 +00:00
Goutham Pacha Ravi
7afdada46d [CI] Fix cephfs-nfs job by running on centos-stream-9
Package based installation of ceph via devstack-plugin-ceph
is deprecated. Recently, we broke support for Ubuntu 20.04 LTS
(Focal Fossa) [1] because we're trying to advance all OpenStack
CI jobs to Ubuntu 22.04/Jammy Jellyfish or Centos Stream 9. The
community's plan is to retire package based installation of ceph
on devstack during the 2023.2/Bobcat release cycle, and move all
efforts onto "cephadm" [2].
With CephFS/NFS, cephadm deployment works, but seems to require
more CI resources than a single test node can afford. So, we're
working in parallel to create a multi-node job [3][4] to ensure more
stable testing without foregoing coverage. As a temporary workaround,
we can run the ceph-nfs job (which doesn't use cephadm) on
centos-9 stream.
Unfortunately, ipv6 testing would have to be turned off because of
LP bug #1998489. We'll remedy this separately.
[1] https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/865315
[2] https://docs.ceph.com/en/quincy/cephadm/index.html
[3] https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/876747
[4] https://review.opendev.org/c/openstack/manila/+/869235
Change-Id: I6abf7a8eb275c5b29cfe29b3a0f54de76c5bb1e8
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年05月08日 17:49:31 -07:00
Goutham Pacha Ravi
797aeb1303 [CI] Run cephfs-native-cephadm job on Jammy Jellyfish
We are trying to drop testing the trunk branch (2023.2)
on Focal Fossa.
Change-Id: I66ac85b735566f8f7dd75234eb8e0be7773fee3a
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年05月08日 14:54:11 +00:00
Goutham Pacha Ravi
82b1e6f64b [CI] Reduce mysql memory in all test jobs
Change-Id: If7bca173830d8d0912873d073d64c6251714817f
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年04月25日 19:49:38 -07:00
Zuul
ad0db6359c Merge "[CI] Add cephadm based native cephfs test job" 2023年04月13日 16:09:49 +00:00
Victoria Martinez de la Cruz
60626d51e9 [CI] Add cephadm based native cephfs test job
Add a new job for testing manila's Native CephFS driver
with a cephadm deployed Ceph cluster. This job inherits
from the existing "base" job and overrides the
ceph deployment strategy to use cephadm.
With this commit, we will use this new cephadm based job
instead of the package based deployment to test this
repository. As with the existing job, this new job is
non-voting as well. If the job's stable for a period of
time, we can decide to promote it to being "voting".
Once all CI consumers adopt the new cephadm job, we'll
rewrite the "base" job definition to only care about
cephadm based deployment.
Change-Id: I6e4db6b89f89d2374580827e2334635dc5ead5b9
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年04月06日 15:13:48 +00:00
Goutham Pacha Ravi
3d6c65f7e8 Fix incorrect extend syntax
A syntax issue introduced in I9d2bba8d87643abfc626346427e90569d9ed7a3e.
Change-Id: I5d07e6f08ac2a8d49ae45888852746ab29453702
Partially-implements: bp/metadata-for-share-resources
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年03月23日 16:51:35 -07:00
Goutham Pacha Ravi
6661800272 Fix failing subnet test on stable/2023.1 branch
We haven't added tests for share network subnet
metadata yet, howver, if you set the max_microversion
to the version supported by the server in stable/2023.1 (2.78),
one of the tests fails since the API responds with
the new "metadata" key.
Change-Id: I9d2bba8d87643abfc626346427e90569d9ed7a3e
Partially-implements: bp/metadata-for-share-resources
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年03月17日 19:41:21 -07:00
Zuul
5380c955f3 Merge "Correct share group tests cleanup order" 2023年03月13日 23:48:59 +00:00
silvacarloss
dab53f8e2b Correct share group tests cleanup order
Some share group tests were taking advantage of a bug in Manila.
Share network subnets were being allowed to be deleted even when
its share servers were tied to a share group. With that bug being
fixed, we need to ensure that the share groups are deleted before
the share network subnet alongside the share servers are.
Related-Bug: #2004212
Change-Id: I05607883c34bca586c795c7efab1df8d0edd6cff
2023年03月06日 18:58:38 +00:00
Goutham Pacha Ravi
7669e94f4d [CI] Ceph/NFS: skip data-intensive tests with ipv6
We're running test_create_shrink_and_write
and test_create_extend_and_write tests twice,
changing only the client VM's IP address family.
Not much value in running all of these since we're
exhausting the disk space with these tests. We can
choose to re-enable these tests when the situation
changes with either the footprint of the tests
or the form factor of the devstack node.
Partial-Bug: #2009083
Change-Id: I868b2e40934e5d10eb0c5cc6fa867e6adc2cc9fc
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年03月03日 18:43:00 +00:00
Raffaela Cunha
f59050e162 Change test manage share server with invalid id
Changes Tempest test according to Manila manager change 857960 to
prevent a share server to be managed only if its identifier is a
suffix of any existing identifier.
Closes-bug: #1982429
Change-Id: I14df0c9c7326ac49274699dc0ef1adb99570784b
2023年03月02日 09:38:39 -03:00
lkuchlan
41d38ba53e Fix incorrect url request for share_group_reset_state
Use "/share-groups" for POST action instead of "/groups"
Closes-Bug: #2002940
Change-Id: I0d22cca0607e9bdc4835137cc0bf587061af92bf
1.13.0
2023年03月01日 20:42:52 +00:00
Zuul
0f4e845830 Merge "[RBAC] Generate unique arguments for access rule creation" 2023年02月21日 17:19:18 +00:00
lkuchlan
721c0e3a69 Use delete_resource helper method
This method deletes the resource and waits for
the deletion to finish.
Change-Id: Iacbf69545e2459526a594ce995511d11e320c066
2023年02月21日 14:28:28 +02:00
lkuchlan
c586d4965e [RBAC] Generate unique arguments for access rule creation
It's prefered to use unique value for 'access_to' variable.
It prevents granting the same value of 'access_to' to the
same share which will lead to 400 execption.
Change-Id: I99ed8136266541731df157b25566e73255bca3bd
2023年02月20日 13:00:47 +02:00
Zuul
07f29e172b Merge "Revert "Use ddt.named_data decorator to avoid random test names"" 2023年02月14日 20:59:19 +00:00
Zuul
e37f0596e8 Merge "[RBAC] Add share access rules tests" 2023年02月12日 17:30:34 +00:00
lkuchlan
72c3228a39 [RBAC] Add skip condition for share manage
In case a backend doesn't support this feature
the tests will fail.
Change-Id: I69fd7a3747986ce287c3a59cdc0f374fdd5b0099
2023年02月08日 10:25:10 +02:00
Zuul
a93fc98451 Merge "Prepare the stable/wallaby jobs with pinned manila-tempest-plugin" 2023年02月08日 01:02:30 +00:00
Zuul
6783ad72e9 Merge "[RBAC] Add quota tests" 2023年02月07日 14:59:41 +00:00
Zuul
cec2e19991 Merge "[RBAC] Add share manage/unmanage tests" 2023年02月07日 14:41:25 +00:00
Carlos Eduardo
add7740f9b Revert "Use ddt.named_data decorator to avoid random test names"
This reverts commit 4b26d79ba7.
Reason for revert: This can be backwards compatible. We want to revert it for now.
Change-Id: Ica4a6ff8f655d372baee73c2daab8517188655aa
2023年02月06日 10:43:14 -03:00
Ghanshyam Mann
667bcbe7a4 Prepare the stable/wallaby jobs with pinned manila-tempest-plugin
As stable/wallaby is in EM phase, and currently broken
with the Tempest master. We are pinning tempest there (depends-on).
We are using the tempest 29.0.0 on stable/wallaby (depends-on) and
compatible tag for tempest 29.0.0 is manila-tempest-plugin 1.8.0
(for ddt version compatible with stable/wallaby constraints and tempest
version)
- https://github.com/openstack/manila-tempest-plugin/blob/1.8.0/requirements.txt
- https://github.com/openstack/requirements/blob/stable/wallaby/upper-constraints.txt#L80
Otherwise it fail for ddt incompatible version
- https://zuul.opendev.org/t/openstack/build/4dad3a22fe5d485a96722cb6d68da63d
Preparing the new set of jobs with manila-tempest-plugin pin to 1.8.0
which will be used to test the stable/wallaby.
Needed-By: https://review.opendev.org/c/openstack/manila/+/871864
Depends-On: https://review.opendev.org/c/openstack/devstack/+/871782
Change-Id: Ibf8c885529098417e8ff9b417bf172218f8d684a
2023年02月01日 16:43:46 +00:00
kpdev
2521fbf86a Add tests replica create with 'share-network' option.
This patch update positive and negative tests using the
share replica create API. For version >= 2.72.
Partial-Bug: #1925486
Depends-On: I9049dcd418fbb16d663ab8ed27b90c765fafc5d3
Change-Id: I76175e33f506e35112ab9e86724caa3aea8f546d
2023年01月27日 08:34:45 +00:00
Goutham Pacha Ravi
54e31e8f5b Skip replication test if microversion is not supported
Without the skip, we break testing against old/stable branches.
Change-Id: Ia679ab28d9fd9d79294e990c39cd4cd9631f1742
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年01月25日 11:04:54 -08:00
Zuul
e4f923feb7 Merge "[RBAC] Add Tests for list share services" 2023年01月24日 18:19:43 +00:00
Vida Haririan
85bc9c4c16 [RBAC] Add Tests for list share services
The tests validate policy of share services list action
for admin, member and reader users in a project scope.
Change-Id: Iafa8377368e7f37feb3ff756733bd5930fd1040d
2023年01月24日 05:59:51 -05:00
Zuul
21e0131149 Merge "Ignore replicas in error state during allow/deny access." 2023年01月23日 22:14:21 +00:00
Kiran Pawar
e46e2a6e41 Ignore replicas in error state during allow/deny access.
Allow/deny access will be blocked only if share or its replica will be
in invalid state i.e. transitional states. Error state will be ignored.
Related-bug: #1965561
Change-Id: I180061a50fec8a9e76ef7ceb2787239ff82a2e12
Depends-on: Id23d04f8d18a0e30b511c4d501a1910f2f2b4ca6
2023年01月19日 14:40:31 +00:00
Goutham Pacha Ravi
ad43e935bc Fix share network subnet cleanup
The resource cleanup initiated within
'create_share_network_subnet' is currently
being ignored in the tests:
WARNING [manila_tempest_tests.tests.api.base] Provided unsupported resource type for cleanup 'share-network-subnet'. Skipping.
The resource name is a typographical error.
Change-Id: If7359cb1ff8fab6fad194fc7efdb51a8ab3f8077
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023年01月16日 13:06:46 -08:00
Zuul
e42249631e Merge "[RBAC] Making sure export locations are viewable" 2023年01月13日 00:39:47 +00:00
lkuchlan
4db10d48ac [RBAC] Add share type extra specs tests
The tests validate policy of share type extra specs actions
for admin, member and reader users in a project scope.
Change-Id: I26303d012cc2c75233cc01cd297f364d4cd0ce7c
2023年01月12日 12:54:44 +00:00
Zuul
6238ad6efc Merge "Move general methods under utils file" 2023年01月12日 11:13:33 +00:00
Goutham Pacha Ravi
f47cefe169 Remove pypy from default envlist
TrivialFix
Change-Id: I75b0d2c1a07a407e7bae4fdc14928adfc46156de
2023年01月05日 16:17:42 -08:00
Zuul
c142317fa2 Merge "Move "get_access_rule_data_from_config" method under utils.py" 2023年01月04日 21:29:10 +00:00
silvacarloss
36623bf215 Fix tox4 erros
tox.ini started failing with Tox4 which had some
incompatible changes. This change adresses the issues.
Change-Id: Iacdc525b2411b4e256c4d8b742975d8043dd2825
2023年01月04日 14:26:14 +00:00
Zuul
7189bd18b4 Merge "[RBAC] remove 'project_member' credentias" wallaby-last 1.12.0 2022年12月21日 03:40:48 +00:00
Zuul
a79fe0ea4d Merge "[RBAC] Add availability zones tests" 2022年12月18日 11:06:05 +00:00
lkuchlan
5e2a5a1486 [RBAC] Making sure export locations are viewable
If the user has list operation privileges it does not
necessarily mean that the exports are viewable.
Change-Id: I45ffd85824df1551645f8d3d3a2ee402211f6b47
2022年12月18日 10:24:03 +02:00
Zuul
908d6c9ef7 Merge "[RBAC] Add share user message tests" 2022年12月15日 21:52:12 +00:00
lkuchlan
edc7ebb1d8 [RBAC] remove 'project_member' credentias
There is no need to use 'project_member 'credentials
in reader class.
Change-Id: I80e7e1ccef4ef3ef45e2a013610602e003deaf84
2022年12月15日 21:42:08 +00:00
lkuchlan
162216cb77 [RBAC] Add share manage/unmanage tests
The tests validate policy of share manage/unmanage actions
for admin, member and reader users in a project scope.
Change-Id: Ia7ce057233374b494f0d078ccf9f6eb07ad8458a
2022年12月15日 11:18:15 +02:00
lkuchlan
3bd44e8be8 [RBAC] Add quota tests
The tests validate policy of quota actions for admin,
member and reader users in a project scope.
Change-Id: I40c45eb6b36688b83cc5803ec99d9a420701a624
2022年12月15日 10:59:31 +02:00
lkuchlan
c99a66ea5a [RBAC] Add share access rules tests
The tests validate policy of access rule actions for
admin, member and reader users in a project scope.
Change-Id: I5d18760eb7f2df2c7364599e2022d9394e0b1f87
2022年12月14日 13:32:18 +02:00
lkuchlan
4a80316fe7 Move "get_access_rule_data_from_config" method under utils.py
This method is based only on tempest configuration, so better to
move it under utils.py method that other classes will benefit it
without having to inherit from it.
Change-Id: Ia0cf15210e697988cd54ae82db8bb76aa17a5996
2022年12月14日 13:02:16 +02:00
lkuchlan
7b63ec7845 Move general methods under utils file
As a follow-up to the patch [1].
Better to move these methods under utils file
so other classes can benefit from it.
[1] Ia0cf15210e697988cd54ae82db8bb76aa17a5996
Change-Id: I31322352dcd7982443fa1f590a643b341c059ff0
2022年12月11日 12:03:59 +02:00
Vida Haririan
937338e055 [RBAC] Add availability zones tests
Validate policy of availability zones actions
for admin, member and reader users in a project scope.
Change-Id: Iecc7b825913dfebe3b5a383bbe56ffc8665ae3eb
2022年12月01日 17:12:54 -05:00
Zuul
8dc1658881 Merge "Fix incorrect url request for share group type extra specs" 2022年11月30日 20:40:46 +00:00
Zuul
77a001df4a Merge "Fix argument name in "delete_share_group_type_spec"" 2022年11月30日 11:10:09 +00:00