6009 Commits

Author SHA1 Message Date
Zuul
3b9cfe126f Merge "Handle access rules on share replicas." 2023-07-27 05:59:21 +00:00
Kiran Pawar
0e7812657b Add count info in 'snapshot list' API
Added support for display count info in share snapshot
list&detail APIs:

1. /v2/snapshots?with_count=True
2. /v2/snapshots/detail?with_count=True

New microversion added 2.79

Closes-bug: #2024556
Change-Id: I37d8ca9022e2ea2c107c6695e20e951d7950043a
2023-07-25 08:33:15 +00:00
Zuul
e31be16130 Merge "fix to get soft-deleted objects on db model query" 2023-07-17 21:33:47 +00:00
Zuul
a01cdc7719 Merge "Fix duplicate entries in share_server_backend_details" 2023-07-10 19:06:46 +00:00
Maurice Escher
945579aefc Handle access rules on share replicas.
Currently rules that are copied from source share would hang in
'queued_to_apply' forever. To fix this check access_rule_status of
the created replica and accordingly update access rule and state.

Change-Id: Ie7ddd9f631510ba97e92a1eb0eb9a5d944ec1b3b
Closes-Bug: #2000253
2023-07-10 15:44:19 +00:00
Zuul
68127fe444 Merge "skip periodic update on replicas in 'error_deleting'" 2023-06-27 12:50:34 +00:00
Maurice Escher
ca90c87c47
skip periodic update on replicas in 'error_deleting'
Change-Id: I737dbc5138c81e6708b9ebae7e7c11622e124a3d
Closes-Bug: #2024578
2023-06-26 13:28:22 +02:00
Goutham Pacha Ravi
4351805302 [Doc] Annotate max api microversion in Antelope
Change-Id: Icc37b55bf17063eb3796d2934c35e53cd34011b2
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-06-24 00:31:11 +00:00
Kiran Pawar
37278df338 Fix duplicate entries in share_server_backend_details
share_server_backend_details_set() add entries in db table without
checking existing entries with given combinaton of share_server_id
and key. This causes duplicate records. Fix it by validating presence
of share server id and key.

Closes-bug: #2024658
Change-Id: I58dcd9716cf95d0d696c13a4c831df787726bcda
2023-06-22 15:01:12 +00:00
Takashi Kajinami
5daf9bd6ca Stop overriding auth/identity options of tempest
... because these options are configured by devstack. This allows us to
honor some options which determine whether these accounts should be
used(eg. TEMPEST_HAS_ADMIN)

Also, this fixes the inconsistent default value of admin password (it
defaults to 'secret' in devstack).

Change-Id: I6221168ad400346bf1542ed7715c481295e42e04
2023-06-20 01:26:46 +00:00
Zuul
c976f041dd Merge "[DOC] Add doc for Scheduler Hints" 2023-06-10 17:52:40 +00:00
Zuul
f5df898cd4 Merge "[DOC] Add doc for Share Transfer" 2023-06-09 13:16:31 +00:00
Nahim Alves de Souza
21356fee2d [DOC] Add doc for Scheduler Hints
Closes-bug: #2008029
Change-Id: Icfdba020267bc1270f7d581b635730f20d99135e
2023-06-09 11:15:44 +00:00
Zuul
ff417fe2d9 Merge "[api-ref] Enhance quotas per share types doc" 2023-06-08 17:52:37 +00:00
Zuul
76feed440f Merge "Enhance quota documentation" 2023-06-06 01:47:34 +00:00
Zuul
f23264d0d2 Merge "Update the generic driver 'Known restrictions' section" 2023-06-05 23:02:26 +00:00
MelloCaique
e9f4bf7474 [DOC] Add doc for Share Transfer
Change-Id: Id60a0e009320a1e7b7ae7a84faf76c8bc3a50828
2023-06-02 14:07:44 +00:00
Zuul
3b7360abad Merge "Add max share extend size limited by share_type" 2023-06-01 14:27:53 +00:00
Kiran Pawar
7a4a81b53c Add max share extend size limited by share_type
Allows set max share extend size that can be created in extra_specs
for each share_type. At API level as part of share extend for admin,
max share extend size will be checked whereas for non-admin users,
max share size will be checked.
New extra_specs key is added to set max extend size of share
i.e.'provisioning:max_share_extend_size'

Closes-Bug: #1987253
Change-Id: I61e590ed1851e8fa15996dc61e8e17e9413a9d91
2023-05-31 03:32:10 +00:00
Zuul
bc70c12b89 Merge "db: Migrate "share metadata" APIs to enginefacade" 2023-05-30 22:53:26 +00:00
Zuul
86c32784ce Merge "db: Migrate "share network subnet metadata" APIs to enginefacade" 2023-05-30 22:47:20 +00:00
Zuul
3ee707d48e Merge "db: Migrate "share network subnet" APIs to enginefacade" 2023-05-30 22:47:18 +00:00
Zuul
b70e609d67 Merge "onlyHostFilter: Fix follow-up suggestions." 2023-05-30 09:51:06 +00:00
Vida Haririan
52445fde2e Update the generic driver 'Known restrictions' section
This change addresses some limitations for considering this
driver in a production deployment of OpenStack Manila.

Closes-Bug: #1867950
Change-Id: If45d1eabb33b57440c8946a56b5af39447514792
2023-05-26 18:01:27 -04:00
silvacarloss
de0a0e6321 [api-ref] Enhance quotas per share types doc
Further instructions have been added to the quota API reference,
mentioning what needs to be done in order to retrieve and modify
quotas for a given share type. The workflow is similar to the user
and the responses too, but one parameter must be different.

Change-Id: Ib613e6aabaa8707c6311ae30a02e7a68c90aba08
2023-05-26 17:15:16 -03:00
Goutham Pacha Ravi
70ecf89cd9 Enhance quota documentation
These doc enhancements still use the "manila"
CLI/shell utility. It makes it easier to
backport to older branches. A future commit
will update all documentation to use OSC.

Change-Id: I18c4ac2d4134314da9df0d3e0b7d45acafce2b22
Closes-Bug: #1941057
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-05-25 17:00:51 -07:00
Kiran Pawar
8eb38ac41a onlyHostFilter: Fix follow-up suggestions.
1. Change context as first argument to function.
2. Fix spelling mistake in version history
3. Add new host_admin RBAC policy which is applied in onlyHostFilter
since non-admin user as well needs to create share on specific host.

Change-Id: Id2c09ebab874ec983da7f26370932d46a0447801
2023-05-23 07:08:11 +00:00
Kiran Pawar
a372e53098 Report PortLimitExceeded error to customer
When share creation fails due to missing ports quota (
'manila.exception.PortLimitExceeded: Maximum number of ports
exceeded.'), error message propogated to user is not useful.
Improve user message in this scenario.

Closes-bug: #2019846
Change-Id: I1f010c4ff9faf837bd50b6c2823cbc526f3a42df
2023-05-21 16:02:52 +05:30
Zuul
b3951d06dd Merge "db: Migrate "share network" APIs to enginefacade" 2023-05-19 03:43:29 +00:00
Zuul
74f22b911e Merge "db: Migrate "security service" APIs to enginefacade" 2023-05-18 21:05:01 +00:00
Zuul
9cfbf89ba3 Merge "db: Migrate "share server" APIs to enginefacade" 2023-05-18 16:13:52 +00:00
Zuul
20ce21a9d8 Merge "sqlalchemy: add generic repr to base model" 2023-05-18 12:22:18 +00:00
Zuul
9a7738a6b3 Merge "db: Migrate "availability zone" APIs to enginefacade" 2023-05-16 14:08:40 +00:00
Zuul
9762d87726 Merge "db: Migrate "driver private data" APIs to enginefacade" 2023-05-15 23:05:21 +00:00
Zuul
3a4303748d Merge "db: Migrate "network allocation" APIs to enginefacade" 2023-05-15 22:53:09 +00:00
Zuul
9aa9993d4e Merge "db: Migrate 'purge_deleted_records' API to enginefacade" 2023-05-15 22:53:07 +00:00
Zuul
32acda17f0 Merge "db: Migrate "share type extra specs" APIs to enginefacade" 2023-05-15 22:53:05 +00:00
Zuul
ba203fe71b Merge "db: Migrate "share type access" APIs to enginefacade" 2023-05-11 22:39:41 +00:00
OpenStack Proposal Bot
a0eea6af5c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I40afd088e3051b95bd76623255dd15ea6204e554
2023-05-09 02:53:29 +00:00
Zuul
8fb52dcde9 Merge "db: Migrate "share type" APIs to enginefacade" 2023-05-05 22:30:50 +00:00
Zuul
3e6d99c8c6 Merge "db: Migrate "async operation" APIs to enginefacade" 2023-05-05 03:21:19 +00:00
Zuul
4e738f4267 Merge "db: Migrate remaining quota APIs to enginefacade" 2023-05-05 03:21:17 +00:00
Zuul
68bb9bfa55 Merge "Fix Share Network Subnet Metadata policy error" 2023-05-04 23:37:36 +00:00
Maurice Escher
e34e8f7fc3
sqlalchemy: add generic repr to base model
Instead of
`<manila.db.sqlalchemy.models.ShareServer object at 0x7f603645bf40>`
we now get
```
ShareServer(created_at=datetime.datetime(2023, 4, 18, 15, 44, 43, 741302),
updated_at=datetime.datetime(2023, 4, 19, 10, 18, 59, 614018),
deleted_at=datetime.datetime(2023, 4, 19, 10, 18, 59, 613577),
id='3363dcd4-fcdd-4cfa-b02d-5899fba3d413',
deleted='3363dcd4-fcdd-4cfa-b02d-5899fba3d413',
share_network_subnet_id='8d4365dc-0869-4896-8049-6455f84ad08f', ...)
```
e.g. in error messages of failed purges or in interactive shell sessions.

Change-Id: I5e6513e7ca7b4a9d4d7261f873cbf3f5bf3c83ab
2023-04-19 10:20:37 +02:00
Stephen Finucane
e53a461c51 db: Migrate "share metadata" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ied3fb602aa690ee16c7e4a9744aa053e89dd9ae8
2023-04-14 16:59:36 +01:00
Stephen Finucane
60c64d4d95 db: Migrate "share network subnet metadata" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ica4b56f871b0a85298d8bac4511eb2dd46ebfeeb
2023-04-14 16:59:36 +01:00
Stephen Finucane
3ec91a7990 db: Migrate "share network subnet" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I20adb1598f74f36cb64fa9843b03271227d75464
2023-04-14 16:59:36 +01:00
Stephen Finucane
56ab504160 db: Migrate "share network" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic3795e26e538b85a178e3a2b6bf0a810c953c387
2023-04-14 16:59:36 +01:00
Stephen Finucane
1f9f5c1bf8 db: Migrate "security service" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I911960c2988bd7aa6dcff81abac3089f22e59c24
2023-04-14 16:59:36 +01:00
Stephen Finucane
c4306e04bc db: Migrate "share server" APIs to enginefacade
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I2e114c54d679a78208ada1821109187b2f645e76
2023-04-14 16:59:36 +01:00