Bug 1974979

Summary: Manila share network not showing at Horizon when using the character "-" into the name of the share type
Product: Red Hat OpenStack Reporter: Goutham Pacha Ravi <gouthamr>
Component: openstack-manila-uiAssignee: Goutham Pacha Ravi <gouthamr>
Status: CLOSED ERRATA QA Contact: vhariria
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: afariasa, apevec, astupnik, gcharot, gouthamr, hguemar, jamsmith, lhh, ndeevy, shrjoshi, spower, tbarron, vhariria, vimartin
Target Milestone: AlphaKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-manila-ui-2.19.3-2.20210528073804.el8ost.2 Doc Type: Bug Fix
Doc Text:
Before this update, the Shared File Systems service (manila) dashboard had dynamic form elements whose names could potentially cause the forms to become unresponsive. This meant that the creation of share groups, share networks, and shares within share networks did not work. + With this update, dynamic elements whose names could be problematic are encoded, which means that creation of share groups, share networks, and shares within share networks functions normally.
Story Points: ---
Clone Of: 1938212 Environment:
Last Closed: 2021-09-15 07:16:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Goutham Pacha Ravi 2021-06-22 21:42:46 UTC
+++ This bug was initially created as a clone of Bug #1938212 +++

Description of problem:
Share network is not displayed for selection when creating a share with Horizon.
The problem is caused by the character "-" into the name of the share type.

Manila CLI works fine, no issue there.

Do we have any workaround for this issue? Can we rename manila share network?

All logs on the supportshell under /cases/02889416

Version-Release number of selected component (if applicable):
openstack-manila-share:16.2
openstack-manila-scheduler:16.2
openstack-manila-api:16.2

How reproducible:
Always

Steps to Reproduce:
1. Create a share type with name "gold-700" and "gold_700". Set "driver_handles_share_servers=True" in both share types
2. Create a share network
3. Attempt to create a share by picking the "gold-700" share type

Problem 2 (From https://bugzilla.redhat.com/show_bug.cgi?id=1950643)
4. Attempt to create a share network
5. Observe that you cannot pick the share network subnet in some cases

Actual results:
Share creation form does not show a field drop down to select a share network to associate with the share
Share network creation form does not display the subnet choices drop down.


Expected results:
Share creation form shows share networks available to create a share
Share network creation form always shows subnet choices corresponding to the neutron network chosen

Comment 10 errata-xmlrpc 2021-09-15 07:16:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:3483