Commit Graph

370 Commits

Author SHA1 Message Date
OpenStack Proposal Bot c05f4ae341 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If1332455a7bd57919d475f351d139d5751865545
2024-04-19 04:47:24 +00:00
Zuul 946b9d50ba Merge "Create share network panel workflows" 2024-03-01 19:05:28 +00:00
Cameron Kolodjski d1428c5fc5 Create share network panel workflows
Implements: bp share-network-subnets
Co-Authored-By: Cameron Kolodjski <cdkolod@gmail.com>
Co-Authored-By: Shkoh Hamasoor <shkoh.hamasoor@ndsu.edu>
Co-Authored-By: melakualehegn <melakualehegn34@gmail.com>
Change-Id: I4c539b151cbbf69e4a2a3580906b2a8bd5f3a452
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2024-02-22 08:57:48 +00:00
Takashi Kajinami 5c150c8cf4 Bump hacking
hacking 3.1.x is too old.

Change-Id: I111e9aabea6470611b1eb1a83cbdc34d2f1e1c59
2024-01-27 23:34:44 +09:00
Zuul de047b0cf7 Merge "Fix python shebang" 2024-01-17 07:28:13 +00:00
sehun.jeong e1b7aceff9 Avoid server error caused by UnicodeDecodeError
Sometimes b32decode may generate data which can't be decoded.
Ignore UnicodeDecodeError so that a few other formats can be tried.

Closes-bug: #2043572
Change-Id: I5d978e8eb3931a218b1946625baa28aa23890cd6
2023-11-28 09:32:03 +09:00
Takashi Kajinami bcd67420ce Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

This also removes unnecessary shebangs.

Change-Id: I046542e43d993ba201cc035554b4dcc4d364ed0a
2023-10-17 16:04:49 +00:00
Corey Bryant 9c7912238d Fix test failures with Django 4.x
The wsgi.input environment variable is expected to be a stream
instead of a string.

Closes-Bug: #2034952
Change-Id: I72e88dcf07c90051ddf1c9030a2466501482de5d
2023-09-08 14:23:32 -04:00
Vadym Markov 8ffea4c82e Remove empty choices added to required fields
Almost all selectors in dashboard forms add empty string as option. It
is ok for non-required fields, but invalid for required fields like
"Share Group type" at "Share Group create" form. Proposed patch removes
this empty string where it is invalid

Change-Id: I0eef44eec858dfbf287930a7d318fb1570450e3c
2023-07-31 17:57:07 +03:00
OpenStack Proposal Bot e4aaf24c1b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I38a10207c51d65fa53e53e48fa0202f64c72ded7
2023-05-09 03:03:25 +00:00
Zuul 33467dba15 Merge "Fix getting len() attr from boolean values" 2023-02-21 00:02:16 +00:00
Zuul c4ec74c284 Merge "Add update share-type name description and/or public access" 2023-02-21 00:02:15 +00:00
Zuul fb9cd73dde Merge "Fix "Set as Active" button's display for replicas" 2023-02-18 00:27:30 +00:00
Hassan Asghar 6a2597007c Fix "Set as Active" button's display for replicas
Previously "Set as Active" button was displayed during replicas in
transitional states such as deleting or replication change which
is fixed with this patch.

Closes-Bug:  #1624425
Change-Id: I32ecf22ce1df0a752d0e66f989ad15fd776e4175
2023-02-17 16:27:55 +00:00
Vadym Markov 8057a622ff Support capital letter in share type name
Patch fixes switching on of Share Network widget for share types with
upper-case letters in their name

Change-Id: I3422d9b17159e2a3c5b7df859f797413962afca2
2023-02-04 13:48:41 +02:00
silvacarloss 4f66162e3a Fix getting len() attr from boolean values
Address the issue by ensuring that the boolean value of extra
specs or metadata being read are from string type. If they are
not, we convert them before getting the length.

Closes-Bug: #2004165
Change-Id: I96c7a6bf862ad81ed756f16f0c398ce68bcf5e66
2023-01-30 11:40:57 -03:00
haixin 0e971152f7 Add update share-type name description and/or public access
Currently, only the name and public access of share-type is set when the
share-type is created, and not allowed to be edited after the share-type
is created. We can only set extra spec for share-type. This commit
suppport update name,description or public access of share-type.

Change-Id: Ia59ae574482fa8015f0151cd983ef880e180640a
Partially-Implements: blueprint update-share-type-name-or-description
2023-01-27 16:43:23 +00:00
OpenStack Proposal Bot 089ea2a134 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie901fb567ffbf47b5b7f77caf8f5309ce5342976
2022-06-21 03:16:50 +00:00
Goutham Pacha Ravi 3ba70dc3e6 Fix share replica creation
The manilaclient SDK not accept a "share_network"
argument anymore with the share_replicas.create()
method.

Change-Id: If21408291fcb4ccd778b24145effcb253227df55
Closes-Bug: #1968925
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-04-14 02:15:46 +05:30
Zuul bdfde968cb Merge "Use re_path instead of url" 2022-04-13 19:54:57 +00:00
Zuul 7b16d79b9b Merge "Use gettext_lazy/ngettext_lazy instead of ugettext_lazy/ungettext_lazy" 2022-04-13 14:58:43 +00:00
Victoria Martinez de la Cruz 151a023adb Use gettext_lazy/ngettext_lazy instead of ugettext_lazy/ungettext_lazy
In Django 3.0 ugettext_lazy/ungettext_lazy have been deprecated in favor of
gettext_lazy/ngettext_lazy [0]. 

We are now using Django 3.2, so we should update our code
with the gettext_lazy/ngettext_lazy aliases.

[0] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3

Closes-Bug: #1956220
Change-Id: I488c2230b4ea4e7803522c3b99773cffe76f49bd
2022-04-13 11:44:26 +00:00
Goutham Pacha Ravi 3221aceb34 Workaround SDK bug in listing shares
python-manilaclient 3.3.0 [1] has a bug that causes the shares
panel to fail to load with an error:

Error: Unable to retrieve share list. Details
'NoneType' object has no attribute 'pop'

Workaround this problem so we don't have to add the client
version to a block-list in the UI's requirements files.

Closes-Bug: #1967312
[1] https://pypi.org/project/python-manilaclient/3.3.0/

Change-Id: I9e79972d9aca4fc7845f4d274751351d948f41ef
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-04-13 00:48:28 +05:30
Victoria Martinez de la Cruz 627301d305 Use re_path instead of url
In Django 3.1 url has been deprecated in favor of
re_path [0]

We are now using Django 3.2, so we should update our
code with the re_path alias.

This has been fixed in Horizon as well [1]

[0] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[1] d9266fd82c

Closes-Bug: #1967172
Change-Id: Ibb5d5b726a836738b616e42f2cd9c6ee49835e0f
2022-03-30 18:17:41 +00:00
Zuul 299e102ba5 Merge "API v2.46, added 'is_default' field to share group types" 2021-09-03 22:33:08 +00:00
Zuul de4ee55714 Merge "API v2.46, added 'is_default' field to share types" 2021-09-03 22:33:06 +00:00
Dina Saparbaeva 3d499a623f Follow up patch for API v2.45, fixes bug on rule metadata form
Follow up to change #783041. Fixes bug of missing "share_id"
argument in redirection url in Exception case.

Change-Id: Iaadf24c839296e44c51dd1da2399bb63f757829a
2021-09-02 21:46:38 +03:00
Zuul 9b9d0c26fe Merge "API v2.45, adds metadata support to access rules" 2021-09-02 17:56:15 +00:00
haixin 748b25f04f API v2.46, added 'is_default' field to share group types
Partial-Bug: #1823078
Change-Id: I3f2b4e6ebf715615b0f65cc26451f9ba406ba236
2021-09-02 17:31:50 +00:00
haixin 957240e778 API v2.46, added 'is_default' field to share types
Added 'is_default' field to share types and share group
types list. 'is_default' field will show Yes if the share type
or share group type is default.

Partial-Bug: #1823078

Change-Id: I923cb2ae90612fb8d5d3af467654a71b83266ffc
2021-09-02 10:09:37 -07:00
Zuul a97e726d59 Merge "Set parent share az when creating a share from snapshot" 2021-08-27 07:21:58 +00:00
Dina Saparbaeva 8b5b9cb83b API v2.45, adds metadata support to access rules
Added access metadata for share access and also introduced the GET /share-access-rules API.
The prior API to retrieve access rules will not work with API version >=2.45

Closes-Bug: #1920687
Change-Id: Iec3a3fad5e2bdf854f04ae974248d899f90bd894
2021-08-20 14:22:34 +03:00
Dina Saparbaeva 4d333690c4 Set parent share az when creating a share from snapshot
This patch-set modifies how we manage user input when creating a share
from snapshot. Since we use the same form for the basic create share workflow
and for the create share from snapshot workflow, we need to add a check
to distinguish both cases: when creating a share from snapshot, the
parent share availability zone is picked by default. Otherwise, if it's a
regular share create, the user can pick up the availability zone they need.

Closes-Bug: #1915706

Change-Id: I8d93c2214cb187a763df861555ddd7b444c9ca89
2021-08-20 00:00:38 +03:00
Zuul c20037c4b0 Merge "Fix share group creation with share types" 2021-06-22 17:19:27 +00:00
Goutham Pacha Ravi 803ab32358 Fix share group creation with share types
A recent change [1] introduced an encoding for
problematic field names. On the share group
creation form, an encoding was missed causing
a silent failure where the share type/s chosen
were ignored in the API request.

[1] 37e5b2f053
Change-Id: I0983359acc489513a5a0940ac379e0a078870548
Partial-Bug: #1931641
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-06-21 23:12:38 +00:00
Goutham Pacha Ravi 37e5b2f053 Fix parsing names in switched fields
In the share creation form dialog, share network
selection is optionally provided based on whether
the share type chosen supports the DHSS extra-spec.
This selection breaks often when dealing with share
types that have a name matching the format: ".*-\d+.*".
For example: test-700. The root cause of this seems to
be in javascript code for "switchable" fields [1] that
doesn't get triggered as expected.

A similar issue manifests in the share Network Creation
form where we setup switched fields with the Neutron
network IDs (dashed format UUIDs) and in the Share
Group Creation form where we setup switched fields
with the Share Group Type IDs (dashed format UUIDs).

So, we could encode the "-" in these field names to
workaround this issue.

Closes-Bug: #1931641
[1] 647c2b7530/horizon/static/horizon/js/horizon.forms.js (L491-L613)

Change-Id: Id924fc55debdc38ae2131bf8cef396f28caa3e77
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-06-16 12:14:17 -07:00
Goutham Pacha Ravi 4edb837a1b Remove nova networking
This is essentially dead code elimination
from manila-ui at this point since manila
and python-manilaclient dropped support
in the Ocata release.

Change-Id: I92e87282020047c7fad055cae92f2382c4193597
Partially-implements: bp remove-nova-net-plugin
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-04-16 18:45:45 -07:00
Takashi Kajinami 89a90ff977 Support policy-in-code and deprecated policy
This change adds support for policy-in-code and deprecated policy
following the change in horizon.

Depends-on: https://review.opendev.org/750134
Change-Id: I408af56e6a54b135d38a486101b4bb3108d4f0d5
2021-04-06 10:48:08 +09:00
Zuul ee3fd09af6 Merge "filter search by extra spec for share type list" 2021-03-24 23:20:26 +00:00
Zuul a0da8534ab Merge "Define the default policy file" 2021-03-19 21:35:37 +00:00
Zuul 8a98b99415 Merge " API v2.44, added 'ou' field to security service" 2021-03-18 01:39:56 +00:00
Dina Saparbaeva f8a8004792 follow up fix to share-shrinking
changed break to Exception on timeout while resizing the share.

Change-Id: Ic1460667f2c69d1ef1188d912a6bd04ebe0c0723
2021-03-17 18:31:28 +00:00
Dina Saparbaeva b748f23ed1 API v2.44, added 'ou' field to security service
Added 'ou' field to security service field. Also, 'description'
field was added to display in both project and admin module.
Options to update dns_ip, ou, server, domain, password and
user fields were added as well. As this options are available
for command line interface.

Partial-Bug: #1823078
Change-Id: I03c0cb01cc04745e67d94a45e3f7570c1609ede0
2021-03-12 10:15:13 +00:00
Dina Saparbaeva cbff6b7326 filter search by extra spec for share type list
Added filter search by extra spec for share type list.

Change-Id: I30133667419322be816f4168e3704fb4d5bc4efc
2021-03-12 09:23:07 +00:00
Zuul 0c39bd8436 Merge "Addition of share shrinking feature to Manila-UI" 2021-03-12 09:07:06 +00:00
Takashi Kajinami 03caca6932 Add example of logging setting for Manila
This change demonstrates how we can define logging setting specific to
manila-ui, so that operators can easily understand how to customize
logging level and so on.

Change-Id: Ia8505d988ed75e0358452b5b3c2889b364680f22
2021-03-11 17:45:43 +00:00
Zuul 23b345e745 Merge "remove unicode from code" 2021-03-08 18:35:50 +00:00
Dina Saparbaeva f0d83a6ed2 Addition of share shrinking feature to Manila-UI
Currently, share shrinking feature in Manila-UI is not supported.
Only "Extend Share" feature exists. "Extend Share" feature was
renamed as "Resize Share" and share shrinking feature was added.
Now it works both ways, if value in "New Size" field is less than
original size, it will shrink, and if value is more it will extend.
Also, minimal value was added to "New Size" field to ensure the
value doesn't decrease to zero.

Implements: blueprint share-shrinking
Change-Id: I8553bed01b529c1b3a57b1e900d171db1d5f28d2
2021-03-04 14:55:43 +00:00
wu.shiming c69afd7046 remove unicode from code
In Python 3, all strings are represented in Unicode.In Python 2 are
stored internally as 8-bit ASCII, hence it is required to attach 'u'
to make it Unicode. It is no longer necessary now.'

Change-Id: Ib739730cf74a880fc07f0279f55dd00e9c003465
2021-03-04 10:55:21 +08:00
OpenStack Proposal Bot 44437c364d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9f10880eb870ecc0cd13b014d32d38cc7673644c
2021-03-03 07:00:13 +00:00